Bitbucket Pipelines Free
ByAndrii BodnarVerified Author

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

Try Crowdin

Automate localization with Bitbucket Pipelines and Crowdin CLI

Copy link

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:20

pipelines:
  custom:
    crowdin:
      - step:
          trigger: automatic
          script:
            - echo $CROWDIN_PROJECT_ID
            - echo $CROWDIN_PERSONAL_TOKEN
            - npm install -g @crowdin/cli
            - crowdin push

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 Oct 4, 2024

Published by Andrii Bodnar

Identifier:bitbucket-pipelines