Skip to content
Jakub edited this page Feb 5, 2025 · 1 revision

Auto-translate strings

Auto-translate command starts auto-translation tasks for all languages in the project or for languages specified in --languageKeys parameter. Auto-translation configuration is taken from the last auto-translation job in the project for the given language.

simplelocalize auto-translate --apiKey <PROJECT_API_KEY>

Additional parameters:

  • --languageKeys allows you to specify project language keys to auto-translate, e.g.: --languageKeys en,de,fr.

Translation Hosting: Publish translations

It publishes translation to Translation Hosting. It behaves exactly the same as publish buttons in the SimpleLocalize (Hosting tab).

Publishes translations from Translation Editor to the _latest environment.

simplelocalize publish --apiKey <PROJECT_API_KEY> --environment _latest

Publishes translations from the _latest environment to _production environment.

simplelocalize publish --apiKey <PROJECT_API_KEY> --environment _production

Translation Hosting: Pull resources

Downloads all translation hosting files to given directory in --pullPath parameter. It overwrites existing files and creates subdirectories if necessary.

Pulls translations from the _latest environment.

simplelocalize pull --apiKey <PROJECT_API_KEY> --pullPath ./hosting/ --environment _latest

Pulls translations from the _production environment.

simplelocalize pull --apiKey <PROJECT_API_KEY> --pullPath ./hosting/ --environment _production

If you would like to filter files which should be downloaded you can use --filterRegex param, e.g.: --filterRegex '__index.json' will download only __index.json file.

Get project details

Command gets project details and prints them to the console.

simplelocalize status --apiKey <PROJECT_API_KEY>

Purge translations

Command removes all translations, translation keys and languages from Translation Editor.

simplelocalize purge --apiKey <PROJECT_API_KEY>

Additional parameters:

  • --force allows you to skip confirmation prompt.

Extract translation keys

Extract command finds translation keys and translations from project source code at <SEARCH_DIRECTORY> and exports them to extraction.json file that uses simplelocalize-json file format.

simplelocalize extract 
  --searchDir <SEARCH_DIRECTOR>
  --projectType <PROJECT_TYPE> 

See available project types.

SimpleLocalize CLI

📦 Getting Started

Links


Clone this wiki locally