i18n-text-tools
Version:
一个用于自动提取、管理和同步项目多语言文本的命令行工具,支持 Vue3、JS/TS 文件的国际化文本收集、唯一key生成、重复检测、与YiCAT平台集成等功能。
74 lines (73 loc) • 1.77 kB
JSON
{
"name": "i18n-text-tools",
"version": "1.0.11",
"type": "module",
"description": "",
"module": "dist/index.js",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"bin",
"dist"
],
"bin": {
"i18n-text-tools": "bin/index.js"
},
"scripts": {
"dev": "concurrently \"pnpm run build:watch\" \"pnpm run test\"",
"test": "set NODE_ENV=dev_debug && onchange -i \"src/**/*.ts\" \"demo/**/*\" -- esno ./src/dev.ts",
"build": "tsup",
"build:watch": "tsup --watch",
"e": "i18n-text-tools extract"
},
"keywords": [
"i18n",
"vue-i18n",
"i18n-pick",
"i18n-tools"
],
"author": "Ray Chen<ray_chenyuncai@163.com>",
"packageManager": "pnpm@10.12.1",
"devDependencies": {
"@babel/types": "^7.27.7",
"@types/node": "^24.0.7",
"concurrently": "^9.2.0",
"esno": "^4.8.0",
"onchange": "^7.1.0",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"vue": "^3.0.0"
},
"dependencies": {
"@babel/generator": "^7.27.5",
"@babel/parser": "^7.27.7",
"@babel/traverse": "^7.27.7",
"colors": "^1.4.0",
"commander": "^14.0.0",
"dayjs": "^1.11.13",
"figlet": "^1.8.1",
"glob": "^11.0.3",
"writejson": "^3.0.0"
},
"peerDependencies": {
"vue": "^3.0.0"
},
"i18nPickConfig": {
"//": "the project in yicat-dev env",
"srcCodeDir": "./demo",
"outputDir": "./i18n-messages",
"translateFunctionName": [
"$t",
"t"
],
"microsoftInfo": {
"endpoint": "https://api.cognitive.microsofttranslator.com",
"key": "",
"location": "eastasia"
},
"xiaoniuTrans": {
"appId": "",
"apiKey": ""
}
}
}