Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>CodeLingo for i18nNew to Visual Studio Code? Get it now.
CodeLingo for i18n

CodeLingo for i18n

Ijaz Liaqat

| (0) | Free
Helps developers internationalize applications: detect frameworks, find missing/unused translations, validate placeholders, and translate strings.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeLingo for i18n

Internationalize TypeScript / JavaScript / React apps faster. I18n Copilot finds missing and unused translations, flags hardcoded user-facing strings, validates interpolation placeholders, and can translate missing strings with an AI provider — all from inside VS Code.

Built for react-i18next with JSON/JSONC locale files.

Features

  • Translation dashboard in the Activity Bar — coverage per locale, problems, and quick actions.
  • Missing translation detection — keys used in code (or present in the source locale) but absent from a target locale, shown as diagnostics.
  • Unused key detection — keys defined in locale files but never referenced, with a confirm-gated "Remove unused key" fix.
  • Hardcoded string detection — AST-based detection of user-facing JSX text and attributes (conservative to avoid noise).
  • Convert to i18n — a Code Action that extracts a hardcoded string into a t("…") call, generates a deterministic key, adds the useTranslation() import/hook when needed, and updates the locale file.
  • Placeholder validation — verifies translations preserve {{name}} interpolations.
  • AI translation (optional) — translate missing keys with a provider-independent architecture (OpenAI supported), with a review panel where you accept / edit / reject before anything is written.

Requirements

  • A project using react-i18next (t(), useTranslation()).
  • JSON or JSONC locale files, either layout:
    • flat: locales/en.json, locales/fr.json
    • namespaced: locales/en/common.json, locales/fr/common.json

Commands

Command What it does
I18n Copilot: Scan Workspace Scan open files for hardcoded strings
I18n Copilot: Validate Translations Analyze missing / unused keys
I18n: Translate Missing Keys Translate missing keys via the AI provider
I18n: Set API Key Store the provider API key securely

Code Actions (lightbulb): Convert to i18n, Generate missing translation, Remove unused translation key.

Configuration

Setting Default Description
i18nCopilot.sourceLocale en Source language to translate from
i18nCopilot.targetLocales [] Target languages (empty = infer from locale files)
i18nCopilot.localesDir src/locales Locale directory
i18nCopilot.defaultNamespace common Namespace prefix for generated keys
i18nCopilot.ignoreNamespaces [] Namespaces excluded from unused-key detection
i18nCopilot.sourceGlobs ["src/**/*.{ts,tsx,js,jsx}"] Source files to scan
i18nCopilot.provider null null (no-op) or openai
i18nCopilot.providerModel "" Model id (e.g. gpt-4o-mini)

AI translation setup

  1. Set i18nCopilot.provider to openai.
  2. Run I18n: Set API Key and paste your key.
  3. Run I18n: Translate Missing Keys, review the results, and accept the ones you want.

Your API key is stored in VS Code SecretStorage — never in settings, source, or logs.

Privacy

  • Translation is fully opt-in and only runs when you invoke it.
  • With provider: openai, the strings you translate are sent to OpenAI. Use the null provider to keep everything local.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft