Automate your frequent localization tasks such as uploading source files and downloading translations.
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.
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.
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 MoreReleased on Nov 1, 2023
Updated on Jul 12, 2024
Published by Andrii Bodnar
Identifier:drone-ci