Automatic merge of Crowdin translations
Goal
To have an automatic trigger of the pipeline created in #250314 so that we do not need manual intervention to get the translation MR ready to be merged.
Pre-requisites
This can be completed after we have:
- Created a script(s) which can execute the steps we currently perform manually: #23256
- Created a pipeline that can be triggered manually: #250314
Notes
Investigation was completed into how we can achieve this here: #227181 (comment 410472981)
It looks like we have two main options for the trigger:
Crowdin triggered
We can set up the Crowdin integration to regularly push to the i18n-master branch. The possible intervals from the Crowdin integration are:
-
10 20 30 40 50minutes -
1 3 6 12 24hours
This will sync the translations, adding to the branch if it already exists or creating a new one if it's missing.
GitLab triggered
We can set up a Pipeline Schedule to trigger our own pipeline on any schedule we want.
This requires a target branch and currently we delete the master-i18n branch after every merge. It also doesn't look like there is an API endpoint on Crowdin for managing integrations. I think to get this working, we would have to leave the integration enabled and always have a master-i18n branch available (with a large number of commits).