Import translations

Import translations from a file. Check importOptions section to learn more about possibilities. Using this endpoint requires authorization.

Learn more about supported file formats.

POST Endpoint

https://api.simplelocalize.io/api/v1/import

POST Formerly

https://api.simplelocalize.io/api/v1/files

Example cURL

curl
--request POST \
--url https://api.simplelocalize.io/api/v1/files?importOptions=REPLACE_TRANSLATION_IF_FOUND \
--header 'x-simplelocalize-token: <API_KEY>' \
--form [email protected]/path/to/your/file.json

Import options

Use query param importOptions to do invoke custom logic after or during the import. You can pass more than one import option. If you need more import options let us know: [email protected]

importOptions Description
REPLACE_TRANSLATION_IF_FOUND Replaces translation for key if the key already exists. Without this option SimpleLocalize will only add new translations.
PUBLISH_AFTER_IMPORT Translations will be published automatically to the CDN after successful import. Option available only in Developer and Team plan.