Skip to content

chore(i18n): harden Weblate/Jigsaw translation sync flow#381

Merged
vitormattos merged 9 commits into
mainfrom
chore/i18n-weblate-sync-hardening
May 7, 2026
Merged

chore(i18n): harden Weblate/Jigsaw translation sync flow#381
vitormattos merged 9 commits into
mainfrom
chore/i18n-weblate-sync-hardening

Conversation

@vitormattos
Copy link
Copy Markdown
Member

Summary

This PR hardens the translation workflow to keep lang changes controlled by Weblate automation and improve Jigsaw temporary-file cleanup.

Changes

  • Simplifies translation maintainer notes in README.
  • Adds composer extract-strings script.
  • Refactors string tracking to in-memory collection and persists source catalog only in extraction mode.
  • Removes legacy listener that pruned translations via to_translate.json.
  • Improves cleanup of temporary translation artifacts and adds emergency shutdown cleanup.
  • Adds dedicated listener to persist extracted source strings after build.
  • Adds a daily GitHub Actions workflow (03:15) to refresh source strings and open a PR.

Validation

  • PHP syntax checks for updated listeners.
  • Containerized normal build succeeds and does not mutate lang/.
  • Containerized extraction-mode build succeeds and updates source catalog flow as expected.
  • No leftover _tmp translation directories after build.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://libresign.github.io/site-preview/pr-preview/pr-381/

Built to branch main at 2026-05-07 20:33 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos force-pushed the chore/i18n-weblate-sync-hardening branch from 5e1ea46 to 1d05021 Compare May 7, 2026 20:32
@vitormattos vitormattos merged commit a4bb960 into main May 7, 2026
4 checks passed
@vitormattos vitormattos deleted the chore/i18n-weblate-sync-hardening branch May 7, 2026 20:35
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