i18n CodeLens, makes it easy to find missing language resources, provides various Code Actions, Hover Information, and tips for you to add or edit the language resources.
It can be made to work in various projects by changing the regex information and glob pattern.
- Internal RegExp & Glob Pattern are updated to support better matching.
- Multiple resource key detection fixed at the single line for Hover and Code Action Providers.
- Logs forwarded to the custom i18 CodeLens output channel.
- Minor fixes.
Performance tweaks & refactored with new features
- Resource Tree view added to Explorer with new configs.
- Similar providers centralized.
- All settings and reloading data's moved to SettingUtils.
- Resource delete action added for Code or Resource file
- Action & Configuration settings renamed properly.
- Resource hover text fixed after save.
- Fix: Missing glob validation added to shows properly.
- Definition Provider added so that the language resource references can be found with 'go to definition' command or ctrl + click.
- Unused resources now show as half-transparent and give hover information on
.json
language resource files.
- Initial release
- Enable or disable the CodeLens for missing resource code. Default:
true
- Enable auto save for resource file(s) that saves files after inserted or updated resource data. Default:
true
- Enable or disable the underline decorator for missing resource code(s). Default:
true
- Enable auto focus document after inserted or updated target resource file(s). Default:
false
- Enable or disable the automatic reveal resource item in the Resource Tree View when selected resource file on the editor. Default:
false
- Enable or disable the Resource Tree View. Default:
true
- Language file glob patterns (Language resource files must be key value object files). Default:
**/locales/*.json
- Regex to detect hover or codeLenses for Language Default:
(?<=T\\(['\"])(?<key>[a-zA-Z0-9.-]+?)(?=['\"]\\))