CSV Translations is the plain text file format that can be used to upload translations from your project. The csv file must start from a header, where the first column
is always a key
column, next are language keys columns. Every value should be separated with a comma (,
), other separators are not supported. Optionally, your values
can be wrapped with single ('
) or double quotes ("
).
Description column
'CSV Translations' file format offers additional description
column for providing a description for translation keys.
This column is optional, and descriptions uploaded via CLI are set as "Code Descriptions" by default.
If you want to update translator descriptions, you have to add --uploadOptions UPDATE_DESCRIPTIONS
to your CLI command.
Namespace column
'CSV Translations' file format offers additional namespace
column for providing translation key namespaces.
File format example
"key","english","polish"
"welcome","Welcome!","Witajcie"
"about-us","About","O nas"
"register","Register","Rejestracja"
File format example with DESCRIPTION, and NAMESPACE
"key","english","polish","description","namespace"
"welcome","Welcome!","Witajcie","","home"
"about-us","About","O nas","Description text",""
"register","Register","Rejestracja","Button text","common"
Upload with CLI
simplelocalize upload --apiKey <PROJECT_KEY> \
--uploadFormat csv-translations \
--uploadPath ./translations.csv
Learn more about SimpleLocalize CLI and translations upload feature.
Download with CLI
simplelocalize download --apiKey <PROJECT_KEY> \
--downloadFormat csv-translations \
--downloadPath ./translations.csv
Learn more about SimpleLocalize CLI and translations download feature.
Import with API
curl
--request POST \
--url 'https://api.simplelocalize.io/api/v2/import?uploadFormat=csv-translations' \
--header 'x-simplelocalize-token: <API_KEY>' \
--form file=@/path/to/your/file.csv
Learn more about importing translations with API
Export with API
curl
--request GET \
--url https://api.simplelocalize.io/api/v4/export?downloadFormat=csv-translations \
--header 'x-simplelocalize-token: <API_KEY>'
Learn more about exporting translations with API