Communicate invalid translations back to Crowdin
Problem
Currently, when we notice invalid translations in linting, this is not communicated back to Crowdin.
Someone needs to manually disapprove the problematic translations in Crowdin in order to merge the rest of the translations, since all languages are in the same merge request (https://gitlab.com/gitlab-org/gitlab-ce/issues/43744).
Goal
- Create a mechanism to disapprove all translations that fail the linter
- Notify the ~"group::import" team of what has been disapproved by the tool
- Update the docs (https://docs.gitlab.com/ee/development/i18n/translation.html) to reflect what we lint for, and with an example of what happens when something is automatically disapproved.
Notes
The intention is that this will be part of a larger automated pipeline which can be run on the master-i18n
branch.
Some investigation was done into this here: #227181 (comment 410472981)
The solution for this issue should result in a script or something that can be run later in a CI pipeline. On completion of this issue, we should be able to manually run this in a local environment, with the intention of it being automatically triggered in a follow up issue.
There is an API on Crowdin that will allow us to change the approval status of a given string: https://support.crowdin.com/api/v2/#tag/String-Translations