@tilde-nlp/website-translator 7.1.43 → 8.0.0-beta.2

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.43 */
3
+ /*! WTW version: v8.0.0-beta.2 */
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.43",
4
+ "version": "8.0.0-beta.2",
5
5
  "main": "dist/widget.js",
6
6
  "directories": {
7
7
  "doc": "docs",
@@ -87,4 +87,4 @@
87
87
  "@typescript-eslint/eslint-plugin"
88
88
  ]
89
89
  }
90
- }
90
+ }
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { PluginUILanguageType } from '../enums/PluginUILanguageType'
4
4
  import { PluginToolbarPositionType } from '../enums/ToolbarPositionType'
5
+ import { TranslationMode } from '../enums/TranslationMode'
5
6
 
6
7
  export interface IPluginOptions{
7
8
  /**
@@ -49,9 +50,11 @@ export interface IPluginOptions{
49
50
  autoTranslate: boolean,
50
51
 
51
52
  /**
52
- * Translate whole page immediately, without waiting while content is in screen view
53
+ * Translation scheduling mode.
54
+ * chunked - default incremental translation with chunk limits.
55
+ * single-batch - collect and translate all discovered segments in a single request.
53
56
  */
54
- translateWholePage: boolean,
57
+ mode: TranslationMode,
55
58
 
56
59
  targetLanguages:Array<string>
57
60
  /**