Skip to content

feat(workflows): add a template linting translation source strings - #846

Draft
DerDreschner wants to merge 1 commit into
masterfrom
feat/noid/lint-translations-template
Draft

DerDreschner wants to merge 1 commit into
masterfrom
feat/noid/lint-translations-template

Conversation

@DerDreschner

Copy link
Copy Markdown
Member

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=github in the translations image. Existing strings never block a PR. The structure follows lint-eslint.yml: a changes job, the check, and a summary job for branch protection. Like the other templates, it uses the org's CI image as latest.

Draft until nextcloud/docker-ci#1035 is merged and the translations image is published with it.

Related

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (Claude Code, claude-opus-5-5)

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>
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Nov 28, 2026
@DerDreschner DerDreschner self-assigned this Nov 28, 2026
@DerDreschner DerDreschner added 3. to review Waiting for reviews enhancement New feature or request github_actions and removed AI assisted This PR contains AI-assisted commits labels Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature or request github_actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants