Download translations to your local files using CLI. Choose the best matching file format for your project. Invoke 'download' command to get the latest version of translations.
πΏ Installation
Install SimpleLocalize CLI
curl -s https://get.simplelocalize.io/2.0/install | bash
Do you have troubles with CLI? See troubleshooting section.
π¨βπ» Usage
simplelocalize -c config.yml download --apiKey <PROJECT_API_KEY> ...
Example: Download translations into one file
.
βββ locales
βββ all-translations.json
simplelocalize download \
--apiKey <PROJECT_API_KEY> \
--downloadFormat multi-language-json \
--downloadPath ./locales/all-translations.json
Learn more about multi-language-json.
Example: Download translations into multiple directories
.
βββ ca
β βββ translations.json
βββ en
β βββ translations.json
βββ es
βββ translations.json
simplelocalize download \
--apiKey PROJECT_API_KEY \
--downloadPath ./{lang}/translations.json \
--downloadFormat single-language-json
Example: Download translations into multiple directories and files
.
βββ ca
β βββ common.json
β βββ home.json
βββ en
β βββ common.json
β βββ home.json
βββ es
βββ common.json
βββ home.json
simplelocalize download \
--apiKey PROJECT_API_KEY \
--downloadPath ./{lang}/{ns}.json \
--downloadFormat single-language-json
See all available download formats
Download options
Many download formats offers additional options. You can activate them using --downloadOptions
parameter.
simplelocalize download \
--apiKey PROJECT_API_KEY \
--downloadPath ./translations.json \
--downloadFormat multi-language-json \
--downloadOptions WRITE_NESTED,INCLUDE_DESCRIPTIONS
See all available download options