feat(workflow): add string filter for languages #13521
Draft
+33
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
This adds a new setting to the language workflow of a project to exclude units from translation.
With regional languages it can be useful to only translate a subset of units. This avoid duplicating translations which have to be kept up to date, instead relying on a fallback in the localization framework (e.g. #2320 (comment)). By limiting translation to only the relevant units it is clear what is region specific and the progress can be properly reflected. See also #3412.
For example first you label all units that should be regionalized for British English with a label like
uk-regional
. Then configure the project'sen_GB
language workflow with the filterlabel:uk-regional
. Only these units are available for translation toen_GB
.Checklist
Other information
This PR is far from complete and the filter will need to be added in a lot of places. I first wanted to get a feeling if this feature makes sense.
Also the naming might not be ideal...