Many i18n libraries uses YAML files to keep translation messages. One of libraries which uses YAML format is jekyll-multiple-languages-plugin created by Martin Kurtsson. SimpleLocalize supports yaml format to import and export translations. You can use nested translations keys like shown below.
my-translation-key: My localized message
look:
at:
this: Look at this!
this:
is:
also:
supported: Look this is also supported!
Such example will produce 3 different translation keys in translation editor.
Upload with CLI
simplelocalize upload --apiKey <PROJECT_KEY> \
--uploadFormat yaml \
--uploadPath ./translations_{lang}.yaml
Learn more about SimpleLocalize CLI and translations upload feature.
Download with CLI
simplelocalize download --apiKey <PROJECT_KEY> \
--downloadFormat yaml \
--downloadPath ./translations_{lang}.yaml
Learn more about SimpleLocalize CLI and translations download feature.
Import with API
curl
--request POST \
--url 'https://api.simplelocalize.io/api/v2/import?uploadFormat=yaml' \
--header 'x-simplelocalize-token: <API_KEY>' \
--form file=@/path/to/your/file.yaml
Learn more about importing translations with API
Export with API
curl
--request GET \
--url https://api.simplelocalize.io/api/v3/export?downloadFormat=yaml \
--header 'x-simplelocalize-token: <API_KEY>'
Learn more about exporting translations with API