百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

i18n-workflow-helper

> 编程语言
开源

一个 VS Code i18n 工作流插件,用于 React、Vue、JavaScript 和 TypeScript 项目,重点解决文本提取、区域设置同步、问题扫描等问题。

200 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个 VS Code i18n 工作流插件,用于 React、Vue、JavaScript 和 TypeScript 项目,重点解决文本提取、区域设置同步、问题扫描等问题。

I18n Workflow Helper

中文文档

I18n Workflow Helper is a VS Code extension for JavaScript / TypeScript / React / Vue projects.

It focuses on i18n workflow management instead of translation itself:

  • extract hardcoded text into locale keys
  • scan i18n issues in code and locale files
  • preview locale import changes with diff before applying them
  • manage locale directories and language files inside VS Code

Features

  • Extract selected text into an i18n key and replace code with t('key')
  • Write locale values automatically and sync empty placeholders to other languages
  • Detect hardcoded text, missing keys, unused keys, and locale mismatches
  • Import json / jsonc locale files with diff preview before apply
  • Export one language or all configured languages as JSON
  • Set the default language from configured languages
  • Set the locale directory for existing i18n projects
  • Show scan results and locale files in the Explorer view

Installation

bash
code --install-extension i18n-workflow-helper-0.1.5.vsix

For development:

bash
npm install
npm run build

Then open this project in VS Code and press F5.

Configuration

json
{
  "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 Language
  • i18n: Set Locale Directory

Commands

  • i18n: Extract Selected Text
  • i18n: Extract Hardcoded Text In Current File
  • i18n: Scan Workspace
  • i18n: Scan Current File
  • i18n: Export Locale JSON Files
  • i18n: Import Locale JSON File
  • i18n: Apply Pending Import
  • i18n: Discard Pending Import
  • i18n: Set Default Language
  • i18n: Set Locale Directory

Quick Start

  1. Set the locale directory and default language.
  2. Select text in a supported source file and run i18n: Extract Selected Text.
  3. Run i18n: Scan Workspace to inspect problems in the Explorer view.
  4. Import locale files with 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:

  • click the lightbulb
  • or press Cmd + .
  • choose Extract to i18n key

Supported Scope

  • source files: js, jsx, ts, tsx, mjs, cjs, mts, cts, vue
  • locale files: json, jsonc
  • translation call pattern: t('key')
  • Vue SFC support: template, script, script setup

Notes

  • The extension does not translate text automatically.
  • Complex AST cases are not fully covered yet.
  • Marketplace icon is configured with the top-level icon field in package.json.

Release Notes

0.1.5

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.

0.1.4

Stabilized scan/command execution and added current-file scan + batch extraction command.

0.1.3

Reduced VSIX size and fixed the workspace setting update error during extraction.

0.1.2

Fixed VSIX runtime packaging so commands are available after installation.

0.1.1

Packaging and activation reliability fixes, plus Explorer view placement.

0.1.0

Initial release with text extraction, workspace scan, locale import diff preview, locale export, default language setup, locale directory setup, and Vue support.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言