@tilde-nlp/website-translator 8.2.0-beta.21 → 8.3.0-beta
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.
- package/README.md +25 -1
- package/dist/widget.js +1 -1
- package/dist/widget.js.LICENSE.txt +1 -1
- package/package.json +4 -3
- package/src/js/interfaces/IPluginOptions.ts +7 -0
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": "8.
|
|
4
|
+
"version": "8.3.0-beta",
|
|
5
5
|
"main": "dist/widget.js",
|
|
6
6
|
"directories": {
|
|
7
7
|
"doc": "docs",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"scripts": {
|
|
29
|
-
"lint": "standardx --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin
|
|
30
|
-
"lint:fix": "standardx --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin
|
|
29
|
+
"lint": "standardx --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin index.ts src/**/*.ts",
|
|
30
|
+
"lint:fix": "standardx --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin index.ts src/**/*.ts --fix",
|
|
31
31
|
"test": "jest --runInBand",
|
|
32
32
|
"patch-version": "node auto_version_patch.js",
|
|
33
33
|
"build:prod": "webpack --mode production",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"ifdef-loader": "^2.3.2",
|
|
43
43
|
"jest": "^27.5.1",
|
|
44
44
|
"node-sass": "^7.0.1",
|
|
45
|
+
"sass": "^1.105.1",
|
|
45
46
|
"sass-loader": "^12.6.0",
|
|
46
47
|
"standardx": "^7.0.0",
|
|
47
48
|
"style-loader": "^3.3.1",
|
|
@@ -56,6 +56,13 @@ export interface IPluginOptions{
|
|
|
56
56
|
*/
|
|
57
57
|
mode: TranslationMode,
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Inactivity window before dynamic content discovery completes in single-batch and word-count modes.
|
|
61
|
+
* The window restarts whenever another discovery pass runs.
|
|
62
|
+
* @default 5000
|
|
63
|
+
*/
|
|
64
|
+
dynamicContentDiscoveryDelayMs?: number,
|
|
65
|
+
|
|
59
66
|
targetLanguages:Array<string>
|
|
60
67
|
/**
|
|
61
68
|
* Translate only tags and their children which have [translate="yes"] attribute
|