一个 VS Code i18n 工作流插件,用于 React、Vue、JavaScript 和 TypeScript 项目,重点解决文本提取、区域设置同步、问题扫描等问题。
一个 VS Code i18n 工作流插件,用于 React、Vue、JavaScript 和 TypeScript 项目,重点解决文本提取、区域设置同步、问题扫描等问题。
I18n Workflow Helper is a VS Code extension for JavaScript / TypeScript / React / Vue projects.
It focuses on i18n workflow management instead of translation itself:
t('key')json / jsonc locale files with diff preview before applycode --install-extension i18n-workflow-helper-0.1.5.vsixFor development:
npm install
npm run buildThen open this project in VS Code and press F5.
{
"i18nWorkflow.localeDir": "src/locales",
"i18nWorkflow.defaultLanguage": "en",
"i18nWorkflow.languages": ["en", "zh-CN"],
"i18nWorkflow.functionName": "t",
"i18nWorkflow.include": [
"src/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,vue}",
"app/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,vue}",
"pages/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,vue}",
"components/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts,vue}"
],
"i18nWorkflow.exclude": ["**/node_modules/**", "**/dist/**"]
}Recommended commands:
i18n: Set Default Languagei18n: Set Locale Directoryi18n: Extract Selected Texti18n: Extract Hardcoded Text In Current Filei18n: Scan Workspacei18n: Scan Current Filei18n: Export Locale JSON Filesi18n: Import Locale JSON Filei18n: Apply Pending Importi18n: Discard Pending Importi18n: Set Default Languagei18n: Set Locale Directoryi18n: Extract Selected Text.i18n: Scan Workspace to inspect problems in the Explorer view.i18n: Import Locale JSON File and review the diff before applying.If your page code lives outside the configured include paths, open the file and run i18n: Scan Current File.
If you want to batch-convert a file after reviewing it, run i18n: Extract Hardcoded Text In Current File.
Quick fix is also supported for hardcoded text:
Cmd + .Extract to i18n keyjs, jsx, ts, tsx, mjs, cjs, mts, cts, vuejson, jsonct('key')template, script, script setupicon field in package.json.Fixed unwanted locale file auto-creation on workspace activation, improved multi-workspace scan isolation, added scan caching, and introduced problem type filtering in the sidebar.
Stabilized scan/command execution and added current-file scan + batch extraction command.
Reduced VSIX size and fixed the workspace setting update error during extraction.
Fixed VSIX runtime packaging so commands are available after installation.
Packaging and activation reliability fixes, plus Explorer view placement.
Initial release with text extraction, workspace scan, locale import diff preview, locale export, default language setup, locale directory setup, and Vue support.
暂无开放 Issues,或尚未同步最近议题。