LocaleGuard
Read-only checker for localisation files in VS Code, VSCodium, Cursor and Windsurf. It finds missing keys, placeholder mismatches and broken ICU syntax before they reach production.
What it checks
- Missing and extra keys between a base locale (default
en) and every other locale.
- Placeholder mismatches:
{name}, {{name}}, ${x}, %{name}, %s, %d, %1$s, %@, ICU argument names including nested plural/select branches.
- Empty values, untranslated copies (identical to base), whitespace differences at the start or end, invalid ICU syntax (unbalanced braces, plural/select without
other).
- Right-to-left hints (informational) for Arabic, Persian and Urdu files: ASCII
? , ; inside Arabic-script text and edge punctuation.
Results appear in the Problems panel and in a LocaleGuard view in the Explorer.
|
Free |
Pro (USD 12 one time, 1 user) |
| JSON (flat and nested), ARB |
yes, up to 3 locales per workspace (base included) |
unlimited locales |
.po, Android strings.xml, iOS .strings, YAML (Rails style) |
no |
yes |
| Export report (Markdown) |
no |
yes |
Quick-fix: insert missing keys, base text marked TODO: |
no |
yes (JSON, ARB, PO, Android, iOS; not YAML) |
The free tier never changes your files. Pro quick-fixes edit a file only when you choose the action.
Get Pro: buy a licence key at https://hamedgx.gumroad.com/l/hiodbi (one-time payment, 30-day refund through Gumroad), then run LocaleGuard: Enter licence key from the Command Palette. This is our own product, sold by us.
File naming it understands
en.json, app_en.arb, messages.fr.po, locales/fr/common.json, res/values-fr/strings.xml (values/ is the base), fr.lproj/Localizable.strings, en.yml with a Rails root key.
Privacy
- File contents never leave your machine. LocaleGuard has no telemetry.
- The only network call is the Pro licence check to
api.gumroad.com, made when you enter a key and again after 30 days. It sends the licence key and the product identifier only.
- The licence result is cached locally in extension storage for 30 days, with a further 30 day offline grace.
Commands
- LocaleGuard: Scan workspace
- LocaleGuard: Export report (Markdown) (Pro)
- LocaleGuard: Enter licence key / Remove licence key
Setting: localeguard.baseLocale (default en).
Example (illustrative, matches the shipped test fixtures)
For fr.json compared with en.json:
error missing-key cancel
error placeholder-mismatch app.greet: expected {name}, found {nom}
warning extra-key extra
warning empty-value footer
warning whitespace-diff pad
info untranslated save
Languages
The interface is provided in English plus Arabic, German, Spanish, French, Indonesian, Italian, Japanese, Korean, Brazilian Portuguese, Russian, Turkish and Simplified Chinese. Translations are machine-assisted and have not had native review; a few long messages fall back to English.
Known limits (version 0.1.0)
Line numbers for JSON are approximate. YAML support covers maps, scalars, simple lists and block scalars, not anchors or complex flow syntax. PO plural forms are compared as joined text. See CHANGELOG.md.
Licence: proprietary, source-available. See LICENSE.md. This is not open-source software.