Drone CI Free
ByAndrii BodnarVerified Author

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

Try Crowdin

Automate localization tasks with Drone CI

Copy link

Use Drone CI 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.

Drone CI is a self-service, open source continuous integration and delivery platform that automates software build, test, deployment, 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 Encrypted secrets to learn more about defining secrets in Drone CI.

Pipeline configuration

Copy link

You need to set up the .drone.yml configuration file (or extend the existing one):

kind: pipeline
name: default

steps:
- name: Localization

  image: crowdin/cli

  environment:
    CROWDIN_PROJECT_ID:
      from_secret: crowdin_project_id
    CROWDIN_PERSONAL_TOKEN:
      from_secret: crowdin_personal_token

  commands:
  - crowdin push
  - crowdin pull --no-progress --keep-archive
  
  # process downloaded translations

trigger:
  branch:
  - master

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
Tags
cli
ci
Works with
  • Crowdin Enterprise
  • crowdin.com
Details

Released on Nov 1, 2023

Updated on Jul 12, 2024

Published by Andrii Bodnar

Identifier:drone-ci