Repository navigation
feat: JOOWP-277: [CORE] R9.2 Translate the JavaScript strings through the runtime config - #58
Merged
jooservices-aiflow-bot[bot] merged 2 commits intoOct 23, 2026
Conversation
… the runtime config Moved the last hard-coded English strings in the JS and block `view.js` files onto `t()` with new `__()` entries in `JsStrings.php`. Added the ESLint rule `joo/no-literal-ui-string` (wired into `make lint`, with rule tests) and a Vitest test that checks every `t()` key has a PHP entry. Terminal help text was already translated and is now covered by the same guards; command names stay English by design, documented in `docs/modules/terminal.md`. Refs: JOOWP-277 AI-Run: 07a556f2-af58-4301-8afd-d3e0a335ea4f (claude-02, claude/sonnet)
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Contributor
Author
|
AI Flow verify: FAIL (verify failed). Findings:
Checks: composer install ok; npm ci ok; make lint pass; make analyse pass (0 errors); make test-unit pass (51 Vitest files, 394 tests). |
… the runtime config The terminal's "command not found" line, hint, syntax-error and error wrappers are now translated through new `JsStrings.php` keys. The lint rule treats the terminal's `text()` as a sink, with rule tests added. `uname` and the `which` path are documented as English by design and exempted explicitly, which meets AC1 and AC2, and the terminal help text is covered (AC3). Refs: JOOWP-277 AI-Run: c2ee2870-0bdb-4f5f-a04c-ce04a23cb3e7 (claude-03, claude/sonnet)
jooservices-aiflow-bot
Bot
deleted the
JOOWP-277-core-r9-2-translate-the-javascript-strin
branch
October 23, 2026 21:03
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.
Jira: JOOWP-277
Summary
Moved the last hard-coded English strings in the JS and block
view.jsfiles ontot()with new__()entries inJsStrings.php. Added the ESLint rulejoo/no-literal-ui-string(wired intomake lint, with rule tests) and a Vitest test that checks everyt()key has a PHP entry. Terminal help text was already translated and is now covered by the same guards; command names stay English by design, documented indocs/modules/terminal.md.Tests
composer installandnpm cipassed.make lintpassed, including the new rule.make analysepassed after I fixed the TypeScript types on the new rule.make test-unitwas green before the last type-only edit to the rule file (288 PHPUnit tests, 394 Vitest tests). After that edit I re-ran only the rule's own tests (15 passed), not the full suite.Run
Opened as a draft by AI Flow v4; verification runs next (In Verify).