Skip to content

Check the translation template in CI and refresh it - #522

Merged
dereuromark merged 1 commit into
masterfrom
ci/i18n-lint
Oct 11, 2026
Merged

dereuromark merged 1 commit into
masterfrom
ci/i18n-lint

Conversation

@dereuromark

@dereuromark dereuromark commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Adds a CI job that fails when the POT file in resources/locales/ no longer matches the translation calls in the code, and lints the catalogs.

The template had drifted from the code: 20 string(s) were missing and 2 were stale. It is regenerated here.

The check uses dereuromark/cakephp-i18n-lint, which wraps CakePHP's own i18n extract so it runs without an application. The job runs once, on PHP 8.5.

New Composer scripts:

  • composer i18n-check fails on drift and prints the command that fixes it
  • composer i18n-extract rewrites the template
  • composer i18n-lint validates POT and PO files

Summary by CodeRabbit

  • Localization

    • Updated queue translations for status information, worker health, pending and scheduled jobs, failures, and navigation.
    • Refined the placement of the invalid-connection message and updated the queue status labels.
  • Chores

    • Added automated checks for translation catalogs to the project’s continuous integration process.

A new CI job extracts the translatable strings with cakephp-i18n-lint and
fails when the committed POT file differs, then lints the catalogs. It runs
once, on the highest PHP version.

The template had drifted from the code: 20 string(s) were missing and 2
were stale. It is regenerated here.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e73b81e-6647-4fc3-b136-c2fab75bc6b3

📥 Commits

Reviewing files that changed from the base of the PR and between 51d385a and aef0704.


📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • composer.json
  • resources/locales/queue.pot

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.



📝 Walkthrough

Walkthrough

The pull request adds Composer commands for translation checks, updates the queue translation template, and adds a CI job that runs the catalog check and lint commands.

Changes

Translation Catalog Checks

Layer / File(s) Summary
Queue translation template
resources/locales/queue.pot
Updates the catalog timestamp and reorganizes queue status, worker-health, job-list, failure, and navigation entries.
Composer translation tools
composer.json
Adds the i18n lint development dependency and Composer scripts for checking, extracting, and linting translations.
CI translation checks
.github/workflows/ci.yml
Adds an Ubuntu 22.04 job that installs dependencies and runs composer i18n-check and composer i18n-lint.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other


Merge Risk: ⚪ Minimal · up to aef07

The translation catalog and configured checks appear aligned, with no concrete merge-blocking issue established. The change is ready for normal CI execution.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes both primary changes: adding a CI check for the translation template and refreshing the template.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dereuromark
dereuromark merged commit f43fe21 into master Oct 11, 2026
19 checks passed
@dereuromark
dereuromark deleted the ci/i18n-lint branch October 11, 2026 17:18
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