You might also be interested in checking out our Node API SDK.

Prerequisites

Uploading to Lokalise

Upload your translation files to Lokalise:

$ lokalise2 \
 --token <token> \
 --project-id <project_id> \
 file upload \
 --file "myapp/locales/en.json" \
 --lang-iso en

Additional upload options can be found in the CLI docs.

Downloading from Lokalise

As the translators are done you need to download the language files from Lokalise:

$ lokalise2 \
 --token <token> \
 --project-id <project_id> \
 file download \
 --format json \
 --original-filenames=false \
 --bundle-structure "%LANG_ISO%.json" \
 --unzip-to "myapp/locales/"

Additional download options can be found in the CLI docs.

Did this answer your question?