Crowdin projenizin yerelleştirilmesini deponuzda ayarladığınız iş akışına dahil edin. Bu, Crowdin’e otomatik olarak yeni kaynak dizgiler yüklemeyi ve çevirileri indirmeyi içerir. This approach ensures effective synchronization of all translatable texts and helps to avoid potential translation delays before the application deployment.
One way to accomplish that is by using Crowdin CLI with your CI tools. You can use Crowdin CLI with built-in CI tools or third-party alternatives. Eğer iş akışı otomatikleştirmeniz için GitHub Actions’ı kullanıyorsanız GitHub Crowdin Action hakkında daha fazlasını okuyun.
Continuous Integration (CI) is the development practice of merging code changes from multiple participants into a shared software project several times a day. You can add multiple localization blocks into your workflow to preserve a continuous translation of your app.
Below you can see a visual representation of how you can incorporate localization into your workflow.
To ensure all the texts are localized before final application deployment, you can inject the localization block after each vital step in your CI/CD pipeline (e.g., after initial mockup design, after every app feature development, etc.)
Use Crowdin CLI with tools like Jenkins and Grunt to automate your regular localization tasks (e.g., uploading source files, downloading finished translations, etc.)
Check out the instructions below to configure various synchronization actions when working with Jenkins.
Örneğin, Crowdin projenizden çeviri indirmek için Execute shell yapım adımını ekleyin. For this, in pipeline configuration, select Add build step and insert the following command:
crowdin download -T {your-token} -i {your-project-id} -s "..." -t "..."
Use your Crowdin access token, project id and specify source and translation files.
To use Crowdin CLI with Grunt, follow these steps:
crowdin.yml
for your app containing project id and Crowdin access token.Setting up the grunt-exec plugin allows you to execute shell commands:
Kaynak dosyaları Crowdin’e yüklemek için bu komutu grunt-exec olarak geçirin:
crowdin upload sources
Crowdin’den gelen en son çevirileri indirmek için bu komutu grunt-exec olarak geçirin:
crowdin download