Shows inline translations for _t('translationKey'), t('translationKey'), $t('translationKey'), and their HTML variants in JS/TS files using your project locale files.
How to use
Open this repository in VS Code
Run F5 to start the extension in a new Extension Development Host
The extension automatically searches for zh_CN.js or zh_CN.json files in your workspace
Optionally, configure kucoinI18nHelper.localeFile in settings to specify a custom locale file path
Translations are displayed inline after _t('...'), t('...'), $t('...'), _tHTML('...'), or $tHTML('...') (via VS Code inlay hints)
Long translations are truncated inline with an ellipsis; hover to see the full text
Use the command palette entry "KuCoin I18n Helper: Reload Translations" after changing locale files
Notes
The extension automatically searches for zh_CN.js or zh_CN.json files across your workspace
.json files are preferred over .js files when both exist
.js files should wrap translations in _KC_PAGE_LANG_LOADER("xx", { ... })
.json files should contain a direct JSON object with translation keys and values
A file watcher automatically refreshes translations when the locale file changes
To override auto-detection, configure kucoinI18nHelper.localeFile in your settings