This is the README for auto-translate translations. It is used for simplification of translating plain texts for many languages concurrently.
- Select the text, that you want to translate.
- Open command pallete (ctrl + shift + p | cmd + shift + p)
- Type in "AutoTranslate: Extract key and translate"
- Type in key for selected text, that would appear in json file (supported nested objects with dot notation).
- Shortly after, translated text would appear in every language file!
This extenstion assumes, that you are developing in Angular, with use of ngx-translate library for translations. For now it uses DeepL API for translations and requires specifying your personal API key (free one) to make http requests.
This extension contributes the following settings:
autoTranslate.settings.pathToTranslationFiles
: Specify path for translation files. Default 'src/assets/i18n'.autoTranslate.settings.pathToTranslationFiles.deepLApiKey
: Set to your api key, after creating account in deepL service.
- Translate selected text and write translations into
json
files
- Keep translation params untranslated.
- Generate text interpolation in .html files with translate pipe and in .ts files.
Enjoy!
- You tell me!