Repository navigation
refactor(i18n): reactive translate in status bar - #39401
Conversation
fe3dbf3 to
359fc64
Compare
a082b8b to
ceb2644
Compare
359fc64 to
8408bf8
Compare
ceb2644 to
6d6dc03
Compare
8408bf8 to
1114ddc
Compare
6d6dc03 to
958e088
Compare
1114ddc to
81ec8b5
Compare
958e088 to
998033a
Compare
81ec8b5 to
fbcb7f4
Compare
…atus bar Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates to translate() and helpers default the threaded parameter.
998033a to
17aa831
Compare
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
This is a batch of the reactive-translate rollout from #39353. It applies
pnpm i18n:reactive-translate --helpersto status bar:components/status-barCodemod result: Rewrote 366 call(s), threaded 80 helper(s) into 100 render call site(s), in 85 file(s); left 7 for manual review. Total diff: 92 files, including helper files outside the directory that gain a defaulted
t/intlLocaleparameter.This is a mechanical rewrite and behavior is unchanged with React Compiler off:
tfromuseTranslate()delegates totranslate(), so every string is identical. Only its identity changes, and only on a language or resource change, when the tree already re-renders.t: Translate = translate), so callers that don't pass it are unchanged.useMemodeps gaintonly where they already include auseUiLanguageRevision()value.Left for manual work because the rewrite would push these files over the
max-linesbudget. They stay untouched until someone splits them:src/renderer/src/components/automations/use-external-automation-actions.tsSkipped by the codemod (7 call sites, still counted by the ratchet):
tis already bound here (catalog extraction needs that name)tis already bound here (catalog extraction needs that name)tis already bound here (catalog extraction needs that name)The render-path-translate ratchet baseline drops to 4536.
Testing
pnpm tcORCA_CODE_QUALITY_BASE=origin/main pnpm check:changed(lint, ratchets, related unit tests)