vue-i18n-extract-plugin 1.0.47
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/.prettierrc +8 -0
- package/LICENSE +20 -0
- package/README.md +292 -0
- package/lib/babel-plugin-i18n.js +13 -0
- package/lib/babel-plugin-import-i18n.js +154 -0
- package/lib/cli.js +54 -0
- package/lib/extract.js +564 -0
- package/lib/import-i18n-transform.js +146 -0
- package/lib/index.js +74 -0
- package/lib/options.js +39 -0
- package/lib/translate.js +308 -0
- package/lib/translators/baidu.js +91 -0
- package/lib/translators/google.js +68 -0
- package/lib/translators/index.js +15 -0
- package/lib/translators/scan.js +24 -0
- package/lib/translators/translator/IntervalQueue.js +60 -0
- package/lib/translators/translator/Translator.js +62 -0
- package/lib/translators/translator/index.js +5 -0
- package/lib/translators/volcengine.js +131 -0
- package/lib/translators/youdao.js +89 -0
- package/lib/utils.js +234 -0
- package/lib/visitors.js +246 -0
- package/lib/vite-plugin-i18n.js +73 -0
- package/lib/vite-plugin-import-i18n.js +46 -0
- package/lib/vue-i18n-loader.js +54 -0
- package/lib/webpack-import-i18n-loader.js +69 -0
- package/lib/webpack-plugin-i18n.js +176 -0
- package/package.json +47 -0
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-i18n-extract-plugin",
|
|
3
|
+
"version": "1.0.47",
|
|
4
|
+
"main": "lib/index.js",
|
|
5
|
+
"bin": {
|
|
6
|
+
"extract-i18n": "lib/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./lib/index.js",
|
|
10
|
+
"./translators": "./lib/translators/index.js",
|
|
11
|
+
"./babel-plugin-i18n": "./lib/babel-plugin-i18n.js",
|
|
12
|
+
"./babel-plugin-import-i18n": "./lib/babel-plugin-import-i18n.js",
|
|
13
|
+
"./webpack-import-i18n-loader": "./lib/webpack-import-i18n-loader.js"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"vue-i18n-extract-plugin",
|
|
17
|
+
"vue-i18n",
|
|
18
|
+
"i18n",
|
|
19
|
+
"i18n-extract",
|
|
20
|
+
"i18n-extract-plugin"
|
|
21
|
+
],
|
|
22
|
+
"author": "501859275@qq.com",
|
|
23
|
+
"homepage": "https://github.com/semdy/vue-i18n-extract-plugin",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"description": "针对vue/react项目,从js/jsx/ts/tsx/vue文件提取语言,并生成语言包到json文件中,并支持将生成的key重写入文件中.",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@babel/core": "^7.27.3",
|
|
28
|
+
"@babel/generator": "^7.27.3",
|
|
29
|
+
"@babel/helper-plugin-utils": "^7.27.1",
|
|
30
|
+
"@babel/parser": "^7.27.3",
|
|
31
|
+
"@babel/traverse": "^7.27.3",
|
|
32
|
+
"@babel/types": "^7.27.3",
|
|
33
|
+
"@rollup/pluginutils": "^5.1.4",
|
|
34
|
+
"@types/tunnel": "^0.0.7",
|
|
35
|
+
"@vitalets/google-translate-api": "^9.2.0",
|
|
36
|
+
"@vue/compiler-dom": "^3.5.16",
|
|
37
|
+
"@vue/compiler-sfc": "^3.5.16",
|
|
38
|
+
"axios": "^1.6.8",
|
|
39
|
+
"c12": "^3.0.4",
|
|
40
|
+
"crypto-js": "^4.2.0",
|
|
41
|
+
"fast-glob": "^3.3.3",
|
|
42
|
+
"fs-extra": "^11.3.0",
|
|
43
|
+
"magic-string": "^0.30.17",
|
|
44
|
+
"prettier": "^3.5.3",
|
|
45
|
+
"tunnel": "0.0.6"
|
|
46
|
+
}
|
|
47
|
+
}
|