Bitbucket Pipelines Free
ByAndrii BodnarVerified Author

Automate your frequent localization tasks such as uploading source files and downloading translations.

Try Crowdin

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.

Preparing the repository

Copy link

Push the 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.

Pipeline configuration

Copy link

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.

Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.

Learn More
Categories
Development
Works with
  • Crowdin Enterprise
  • crowdin.com
Details

Released on Oct 20, 2023

Updated on Mar 7, 2024

Published by Andrii Bodnar

Identifier:bitbucket-pipelines