This document describes how to pull & push Crowdin translations via Crowdin CLI.
- Install Crowdin CLI: Crowdin CLI Installation Page.
- Get an API token on Crowdin Profile Settings > API Keys.
- Copy the example
crowdin.yml
config file:
cp crowdin.yml.example crowdin.yml
- Fill in your API token in your
crowdin.yml
config file:
#
# Your Crowdin credentials
#
'project_id': '453244'
'api_token': '<YOUR_CROWDIN_API_TOKEN_HERE>' # <--- HERE
'base_path': './src/locales'
'base_url': 'https://api.crowdin.com'
To pull new translations, do:
crowdin pull
Likewise, to push translations:
crowdin push