@npm-questionpro/wick-ui-i18n 2.0.0-next.12 → 2.0.0-next.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm-questionpro/wick-ui-i18n",
3
- "version": "2.0.0-next.12",
3
+ "version": "2.0.0-next.14",
4
4
  "private": false,
5
5
  "license": "ISC",
6
6
  "description": "Auto-translation AST wrapper for Wick UI",
@@ -21,8 +21,8 @@
21
21
  "vitest": "^4.1.8",
22
22
  "@vitest/coverage-v8": "^4.1.8",
23
23
  "eslint": "^10.4.1",
24
- "@wick-ui/tsconfig": "1.0.0",
25
- "@npm-questionpro/wick-ui-eslint-config": "1.0.0"
24
+ "@npm-questionpro/wick-ui-eslint-config": "1.0.0",
25
+ "@wick-ui/tsconfig": "1.0.0"
26
26
  },
27
27
  "dependencies": {
28
28
  "@babel/parser": "^7.29.0",
@@ -34,13 +34,10 @@
34
34
  "index.d.ts",
35
35
  "src"
36
36
  ],
37
- "prettier": "@npm-questionpro/wick-ui-prettier-config",
38
37
  "scripts": {
39
38
  "test": "vitest run",
40
39
  "test:watch": "vitest",
41
40
  "test:ci": "vitest run --coverage",
42
- "format": "prettier --write . --ignore-path .gitignore",
43
- "format:ci": "prettier --check . --ignore-path .gitignore",
44
41
  "lint": "eslint . --fix",
45
42
  "lint:ci": "eslint --max-warnings 0 ."
46
43
  }
package/src/transform.js CHANGED
@@ -10,7 +10,7 @@ import {parse} from '@babel/parser'
10
10
  import _traverse from '@babel/traverse'
11
11
  import {getComponentTree} from './debug.js'
12
12
  import {transformTemplateLiteralExpression} from './transformTemplateLiteral.js'
13
- import {transformJSXTextWithEntities} from './transformJSXTextWithEntities.js'
13
+ import {transformJsxTextWithEntities} from './transformReactTextWithEntities.js'
14
14
  import {recordWtCall, transformWtTemplateLiteral} from './transformWtCalls.js'
15
15
 
16
16
  const traverse = _traverse.default || _traverse
@@ -213,7 +213,7 @@ export function transformFile(code, id, processor) {
213
213
  // translatable text segments are still wrapped while entities stay put.
214
214
  const rawSource = code.slice(path.node.start, path.node.end)
215
215
  if (HTML_ENTITY_RE.test(rawSource)) {
216
- if (transformJSXTextWithEntities(path, rawSource, ms, processor, id)) {
216
+ if (transformJsxTextWithEntities(path, rawSource, ms, processor, id)) {
217
217
  needsImport = true
218
218
  }
219
219
  return
@@ -73,7 +73,7 @@ function splitSegment(raw) {
73
73
  * @param {string} id - Source file path (for collision warnings).
74
74
  * @returns {boolean} `true` when a replacement was written.
75
75
  */
76
- export function transformJSXTextWithEntities(
76
+ export function transformJsxTextWithEntities(
77
77
  path,
78
78
  rawSource,
79
79
  ms,