Angular Localization HelperVisual Studio Code extension to help maintaining angular i18n localization files Features
InstallationInstall through VS Code extensions: search for Install through terminal: UsageGenerate/Update the base localization file using the angular-cli, then use the extension to merge the changes into a new or an existing translation file. The extension will try to find corresponding translations units within an existing file for each units in the base file by searching units in the following order:
If no translation unit is found, the unit is added and tagged as missing. The extension can convert translations files from one type to another. Simply generate the base file from the angular-cli with a new file type and then merge the translation files. They will be automatically changed to the new file type. Using the Command Palette
Using keyboard shortcut
By default, the extension expects the base file to be named Find Missing TranslationsMissing Translations are tagged and highlighted. You can use the extension to navigate between missing tranaslations Using the Command Palette
Using keyboard shortcut
On Macbook Pros the extension's commands appear on the touchbar within xlf files. Extension Settingsi18nSync.baseFile (default: messages.xlf)Identifies the base localization file generated by the i18nSync.fileType (default: xlf)Identify the type of localization to process (xlf or xmb) i18nSync.missingTranslation (default: !MISSING_TRANSLATION!)Target tag text for missing translation i18nSync.decoration (default: dark red on yellow with white border)Missing translation highlight decoration Known Issues
Enjoy! |