How it works (youtube.com) | Link to Marketplace
- automatic sort keys in the dictionary
- generated syntax depends on context
- tooltips
- intellisense completions
- fuzzy matching for searching
- easy adding and searching translations
- correctly supports
template: ` `in Angular's@Component
- Install this extension from the VSCode Marketplace (or by entering
ext install 0x8b.ngx-translate-managerat the command palette Ctrl+P). - This extension is only enabled inside an Angular project (ie. with an
angular.jsonor.angular-cli.jsonfile in workspace). - Open an Angular project and create
./src/assets/i18n/en.jsonfile.
- Select the text you want to add to the dictionary.
- Ctrl+T
- Enter the key in dialog box.
Type _. to get intellisense completions list.
- Shift+Alt+T
- Pick the best matching key.
This extension provides options in VSCode's configuration settings. You can find the settings under File > Preferences > Settings > Extensions > ngx-translate-manager.
Some highlights:
ngx-translate-manager.locale- a glob pattern that defines files and folders to search for. The glob pattern will be matched against the paths of resulting matches relative to their workspace. By default**/assets/i18n/en.json.ngx-translate-manager.exclude- a glob pattern that defines files and folders to exclude. By default**/node_modules/**.ngx-translate-manager.pattern- a glob pattern that specify files which can use extension. By default**/*.{html,js,ts}.
Feel free to submit issues and enhancement requests.
Please run tests npm run test before you submit a Pull request.
