Skip to content

ci: add continuous translation extraction workflow#832

Draft
PascalRepond wants to merge 1 commit into
rero:stagingfrom
PascalRepond:rep-i18n-continuous
Draft

ci: add continuous translation extraction workflow#832
PascalRepond wants to merge 1 commit into
rero:stagingfrom
PascalRepond:rep-i18n-continuous

Conversation

@PascalRepond

Copy link
Copy Markdown
Contributor

Introduce the extraction side of the continuous localization loop. A scheduled job (nightly, plus manual dispatch) keeps the translations branch equal to staging + the not-yet-released translations:

  • merge (never rebase) staging into translations so the buffer is never rewritten;
  • regenerate the i18n catalogs with extract_messages / update_catalog;
  • commit and push back to translations only when the extracted keys change, re-merging any concurrent Weblate commit before pushing.

Weblate tracks the same branch and edits only translation values, so the two never touch the same lines. The buffer is squash-merged into staging once per release, keeping history linear.

This removes the need for force-push, branch locks and Weblate resets in the translation workflow.

Introduce the extraction side of the continuous localization loop.
A scheduled job (nightly, plus manual dispatch) keeps the
`translations` branch equal to `staging` + the not-yet-released
translations:

- merge (never rebase) `staging` into `translations` so the buffer is
  never rewritten;
- regenerate the i18n catalogs with `extract_messages` / `update_catalog`;
- commit and push back to `translations` only when the extracted keys
  change, re-merging any concurrent Weblate commit before pushing.

Weblate tracks the same branch and edits only translation values, so the
two never touch the same lines. The buffer is squash-merged into
`staging` once per release, keeping history linear.

This removes the need for force-push, branch locks and Weblate resets in
the translation workflow.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant