Repository navigation
refactor(ui): one catalogue file per part, behind the strings indexes - #614
Merged
Merged
Conversation
|
Important Review skippedToo many files! This PR contains 185 files, which is 85 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configuration
📒 Files selected for processing: 185
You can disable this status message by setting the
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 |
klNuno
marked this pull request as ready for review
October 18, 2026 22:53
…gues # Conflicts: # packages/ui/src/lib/strings.en.ts # packages/ui/src/lib/strings.fr.ts
CI measured uiDist at 4871151 bytes, 1551 over the limit: each catalogue part is its own module now. The entry chunk is unchanged.
This was referenced Oct 19, 2026
Merged
Merged
4 of 8 tasks
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.
Note
Clanker Claude Opus 5.5 is responding on behalf of meetsu
Two changes to different parts of the UI no longer edit the same translation file.
migrating an open branch
A branch cut before this PR edits the single
strings.en.tsandstrings.fr.ts. Aftergit merge origin/mainstops on them, run:It splits the merge base and the branch versions with the codemod that made this split, replays each part's change onto main's part with
git merge-file, adds new parts to both indexes and stages the result. A part both sides changed on the same lines keeps conflict markers and is listed.what changed
packages/ui/src/lib/strings/en/(85 parts), mirrored by a file of the same name instrings/fr/.strings.en.tsandstrings.fr.tsonly spread the parts, soStrings,Translation, the lazy locale chunks and every import oflib/stringsstay as they were.scripts/ci/translations.tsfails when a part lacks its file in a translation or an index forgets to spread it.scripts/migrate/split-catalogues.tsholds the codemod (--split) and the migration above, with tests run by CI.scripts/architecture/size-budget.json; AGENTS.md anddocs/language.mdsay where a sentence goes and how to migrate.scripts/ci/budgets.jsonraisesuiDistfrom 4869600 to 4872200 bytes: CI measured 4871151, since each part is its own module. The entry chunk did not grow.to question
The split is one file per top-level key, not a hand-made grouping, so the migration can replay it exactly on any branch.
verified
--splitreplayed on the parent commit reproduces all 172 catalogue files of this PR byte for byte.bun run --cwd packages/ui checkreports 0 errors andbun scripts/ci/translations.ts3158 of 3158 and 3275 of 3275 sentences.bun test scripts/migrate(5 pass: edit kept beside main's, new part, deleted part, conflict markers, header warning).bun run build:ui: chunksstrings.enandstrings.frstill separate, entry chunk unchanged at 492,112 bytes.bun run check:architecture,bun scripts/check-docs.ts,bun test scripts/architecture scripts/ci/translations.test.ts: pass.