@npm-questionpro/wick-ui-i18n 0.7.0 → 0.8.0

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.
Files changed (3) hide show
  1. package/index.d.ts +8 -3
  2. package/index.js +3 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6,10 +6,15 @@ export interface AutoTranslateOptions {
6
6
  components?: string[];
7
7
 
8
8
  /**
9
- * Files to include in the transformation.
10
- * Can be string, RegExp, or array of string/RegExp.
9
+ * List of components to ignore text from.
11
10
  */
12
- include?: any;
11
+ ignoreComponents?: string[];
12
+
13
+ // /**
14
+ // * Files to include in the transformation.
15
+ // * Can be string, RegExp, or array of string/RegExp.
16
+ // */
17
+ // include?: any;
13
18
 
14
19
  /**
15
20
  * Enable debug logging for extraction process.
package/index.js CHANGED
@@ -9,19 +9,20 @@ class TranslationProcessor {
9
9
  constructor(options) {
10
10
  this.components = new Set(options.components);
11
11
  this.ignoreComponents = new Set(
12
- options.ignoreComponents || [
12
+ [
13
13
  "WuIcon",
14
14
  "WuTranslateProvider",
15
15
  "WuHelpButton",
16
16
  "WuActivityLog",
17
17
  "WuAppHeader",
18
+ "WuAPpHeadeMenu",
18
19
  "WuCopyToClipboard",
19
20
  "WuMenuIcon",
20
21
  "WuScrollArea",
21
22
  "WuDrawer",
22
23
  "WuLoader",
23
24
  "WuContentEditor",
24
- ],
25
+ ].concat(options.ignoreComponents || []),
25
26
  );
26
27
  this.dictionary = new Map();
27
28
  this.debugEnabled = options.debug || false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm-questionpro/wick-ui-i18n",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "license": "ISC",
5
5
  "description": "Auto-translation AST wrapper for Wick UI",
6
6
  "type": "module",