Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Ran i18n LensNew to Visual Studio Code? Get it now.
Ran i18n Lens

Ran i18n Lens

WuXinRan

|
5 installs
| (0) | Free
Offline i18n assistant: highlight keys, hover translations with open/refs, language matrix, sidebar index, diagnostics & health check, key completion. No API keys.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ran i18n Lens

Offline i18n assistant for front-end developers. See translations in source, and find missing locales, references, and consistency issues. No API keys.

  • Sidebar: browse locale files and language keys
  • Highlight / Hover / Completion: inspect and complete translation calls
  • Language matrix: compare keys across locales; filter and edit
  • Diagnostics & health check: Problems (off by default) and a health check

Works with common stacks such as i18next / react-i18next, vue-i18n, react-intl, WeChat miniprogram, Taro, uni-app, next-intl, and lingui.


Quick start

  1. Install from the Extensions marketplace
  2. Open a project that has locale files
  3. Open Ran i18n Lens in the activity bar; if the sidebar is empty, add ran-i18n.config.json at the project root (see below), then run Rebuild index

Features

1. Sidebar

Browse locale files and language keys. Title bar: Language matrix, Rebuild index, Health check, Settings, Expand all, Collapse all.

Sidebar

2. Key highlight

In a recognised translation call, such as t('…') or $t('…'), the key is coloured. Calls inside comments are not highlighted.

Key highlight

3. Hover

Hover to see each locale, copy the key, open the locale entry, or find references. A missing locale shows in red as “missing”.

Hover

4. Key completion

Inside a translation call, complete an existing key and see a sample translation.

Key completion

5. Language matrix

  • One row per key, one column per locale; filter by status
  • JSON / JSONC / JSON5 can be edited on double-click; empty cells show -
  • Reference counts and Unused reflect use in source

Language matrix

6. Diagnostics and health check

Health check Problems
Contents Summary report; filter by kind and jump to the location Whether to show check results in the editor Problems panel. Off by default
Unused keys Shown Not shown

Health check

Problems

7. Scope

Sidebar / matrix translations Highlight · Hover · Completion · Refs · Unused
Based on Locale files Translation calls in source
Affected by Call prefix No Yes

When Call prefix accepts only $n, t('login.title') is not highlighted, and the sidebar still lists that key.

Scope


Commands & shortcuts

Search Ran i18n Lens in the Command Palette. Rebind under Keyboard Shortcuts (Ctrl+K Ctrl+S).

Command Windows / Linux macOS
Language matrix Ctrl+Alt+I Ctrl+Option+I
Rebuild index Ctrl+Alt+R Ctrl+Option+R
Health check Ctrl+Alt+H Ctrl+Option+H

Settings

Search for Ran i18n Lens in the editor settings.

Setting Default What it does
Call prefix (callPrefix) auto Which i18n functions count as translation calls
Case mode (caseMode) sensitive Whether key names are case-sensitive, and how the sidebar and matrix show them
Strictness (strictness) balanced How recognised calls are marked
Show in Problems (showInProblems) Off Whether to show check results in the editor Problems panel

Call prefix Which names count Detected names Config prefixes
auto Detected for the project Used Added when set
Typed names, commas, such as t, $t, i18n.t Only those names Not used Not used

Case mode Comparison Sidebar and matrix
sensitive Case-sensitive Spelling from the file
insensitive Ignore case Lower case
upper Ignore case Upper case

Strictness Highlight and hover References
balanced Every recognised call Kept
strict Uncertain calls have neither Still kept

Config file

ran-i18n.config.json sits at the project root, next to package.json. It is optional. Without it, every row below stays on Omitted. Run Rebuild index after a change. Paths are relative to the project root.

Field Omitted Set
files Locale files are still found automatically That folder indexes only this list
prefixes No extra call names While auto, added to the detected names, such as tKey. A list typed in settings replaces this
scanRoots Scan the whole workspace Scan only these relative folders
scanExclude No extra excludes Glob excludes. Affects references and Unused only, not sidebar keys
scanConcurrency 4 The number you set
{
  "prefixes": ["tKey", "translate"],
  "scanRoots": ["apps/web", "packages/ui"],
  "scanExclude": ["**/e2e-mocks/**"],
  "scanConcurrency": 4,
  "files": [
    { "path": "locales/zh-CN.json", "locale": "zh-CN" },
    { "path": "locales/en-US.json", "locale": "en-US" }
  ]
}

Config file


Feedback

  • Email: xrdwork@163.com
  • Issues: https://github.com/WuXinRan-Art/ran-i18n-lens-feedback/issues
  • Include editor/extension versions, i18n stack, repro steps, and redacted screenshots when possible

Privacy

  • runs locally
  • no login or telemetry
  • no upload of source or locale files
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft