@tilde-nlp/website-translator 7.1.18 → 7.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
2
2
 
3
- /*! WTW version: v7.1.18 */
3
+ /*! WTW version: v7.1.20 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tilde-nlp/website-translator",
3
3
  "description": "Widget to integrate in to another website to translate it",
4
- "version": "7.1.18",
4
+ "version": "7.1.20",
5
5
  "main": "dist/widget.js",
6
6
  "directories": {
7
7
  "doc": "docs",
@@ -48,6 +48,11 @@ export interface IPluginOptions{
48
48
  */
49
49
  autoTranslate: boolean,
50
50
 
51
+ /**
52
+ * Translate whole page immediately, without waiting while content is in screen view
53
+ */
54
+ translateWholePage: boolean,
55
+
51
56
  targetLanguages:Array<string>
52
57
  /**
53
58
  * Translate only tags and their children which have [translate="yes"] attribute
@@ -6,7 +6,7 @@ $itemHoveredBackground: rgb(238, 238, 238);
6
6
 
7
7
  $machineTranslatedIconColor: $itemSelectedColor;
8
8
 
9
- $languageWidth: 200px;
9
+ $languageWidth: 150px;
10
10
  $itemHeight:45px;
11
11
 
12
12
  .website-translator {
@@ -143,7 +143,7 @@ $fontSize: 14px;
143
143
 
144
144
  .controls{
145
145
  @media (max-width: 768px) {
146
- margin-left: 35px;
146
+ margin-left: 35px !important;
147
147
  margin-bottom: 5px;
148
148
  }
149
149
  }