Repository navigation
feat(workflows): add a template linting translation source strings - #846
Draft
DerDreschner wants to merge 1 commit into
Draft
DerDreschner wants to merge 1 commit into
DerDreschner wants to merge 1 commit into
Conversation
Bad source strings are only noticed after the nightly sync has pushed them to Transifex. The template runs translationtool's lint-source-strings on every pull request, against the base branch, so only strings the pull request adds are checked and existing ones never block it. It uses the translations image as latest, like the other templates use the org's CI images, so it works once that image includes lint-source-strings. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
This was referenced Nov 28, 2026
nickvergessen
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
New workflow template
lint-translations.yml. On every PR it checks the source strings the PR adds against the translations page of the developer manual, with findings as annotations on the changed lines. It's suggested for apps with a.tx/config.It checks out the PR and its base, then runs
translationtool.phar lint-source-strings --base=../base --format=githubin the translations image. Existing strings never block a PR. The structure followslint-eslint.yml: achangesjob, the check, and asummaryjob for branch protection. Like the other templates, it uses the org's CI image aslatest.Draft until nextcloud/docker-ci#1035 is merged and the translations image is published with it.
Related
🤖 AI (if applicable)