尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
🌍 All in one i18n extension for VS Code.
翻译准备中
正在加载完整 README。
查看完整 README ↗t("ns:key") style// .vscode/settings.json
{
"i18n-ally-next.localesPaths": ["src/locales"],
"i18n-ally-next.sourceLanguage": "en",
"i18n-ally-next.displayLanguage": "zh-CN"
}
The framework is auto-detected from your
package.json. See Supported Frameworks for the full list.
| Category | Frameworks |
|---|---|
| Vue | Vue I18n, Vue SFC, Fluent Vue |
| React | React I18next, React Intl, Lingui |
| Next.js | next-intl, next-i18next, next-translate, next-international |
| Angular | ngx-translate, Transloco |
| Others | Svelte, Ember, i18n-tag, Polyglot, Globalize, UI5 |
| Mobile | Flutter |
| Backend | Laravel, Ruby on Rails, PHP Gettext |
| Tools | VS Code Extension, Chrome Extension, Jekyll |
| Custom | Define your own framework |
By default, translations are shown as inline annotations after the key. You can customize this behavior:
// .vscode/settings.json
{
"i18n-ally-next.annotationInPlace": true,
"i18n-ally-next.annotationInPlaceFullMatch": true
}
| Setting | Effect |
|---|---|
annotationInPlace: false | t('key') · translated text |
annotationInPlace: true | t(translated text) — hides the key only |
annotationInPlaceFullMatch: true | translated text — hides the entire function call |
Note: When
annotationInPlaceFullMatchis enabled, moving the cursor to the line will restore the original code for editing. TheannotationMaxLengthlimit is automatically disabled in this mode, so translations are shown in full without truncation.
The translated text color in full match mode defaults to #ce9178 (string color in Dark+ theme). You can customize it:
// .vscode/settings.json
{
"i18n-ally-next.theme.annotationInPlaceFullMatch": "#ce9178" // Dark theme
// "i18n-ally-next.theme.annotationInPlaceFullMatch": "#a31515" // Light theme
}
Some advanced features require additional packages to be installed in your project:
| Feature | When needed | Install |
|---|---|---|
Vue SFC <i18n> block | Using inline <i18n> blocks in .vue files | Bundled with the extension |
| Fluent Vue SFC | Using Fluent syntax in .vue SFC files | npm i -D fluent-vue-cli |
Note: If you use standalone locale files (e.g.
locales/en.json), no extra dependencies are needed. The above packages are only required for SFC inline translation blocks.
📖 Full Documentation — Getting started, configuration, namespace, custom framework, and more.
This extension itself supports i18n. It auto-matches your VS Code display language.
| Language | Language | Language |
|---|---|---|
| English | 简体中文 | 繁體中文 |
| 日本語 | 한국어 | Deutsch |
| Français | Español | Português (BR) |
| Русский | Українська | Türkçe |
| Nederlands | Svenska | Norsk |
| Magyar | ภาษาไทย |
Want to help translate? See Contributing.
This extension was originally inspired by think2011/vscode-vue-i18n. Earlier Vue SFC support used kazupon/vue-i18n-locale-message.
MIT © 2025-PRESENT Lydanne | MIT © 2021-2024 Lokalise | MIT © 2019-2020 Anthony Fu | MIT © 2018-2019 think2011