Automate your frequent localization tasks such as uploading source files and downloading translations.
Use Bitbucket Pipelines with Crowdin CLI to automate your frequent localization tasks such as uploading source files, downloading translations or anything else you can do with Crowdin CLI.
Bitbucket Pipelines is a framework that lets you configure and perform specific operations on your repositories every time you push code to the source. We can run tests, builds, move code, or restart processes, as well as synchronize localization resources between repo and Crowdin project.
crowdin.yml configuration file to the repository.
Use Environment Variables for API Credentials:
"project_id_env": "CROWDIN_PROJECT_ID" "api_token_env": "CROWDIN_PERSONAL_TOKEN"
See the Variables and secrets to learn more about defining variables in Bitbucket Pipelines.
You need to set up the
bitbucket-pipelines.yml configuration file (or extend the existing one):
image: node:16 pipelines: crowdin: - step: trigger: push: file_path: localization/*.json variables: CROWDIN_PROJECT_ID: $CROWDIN_PROJECT_ID CROWDIN_PERSONAL_TOKEN: $CROWDIN_PERSONAL_TOKEN script: - npm install -g @crowdin/cli - crowdin download --no-progress --keep-archive artifacts: - CrowdinTranslations_*.zip
For more information about Crowdin CLI commands visit the official Crowdin CLI website.