Repository navigation
fix(core): Table, Chat, CommandPalette and the date and time inputs carry only their own English - #9452
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 9efe454 |
There was a problem hiding this comment.
The English-fallback wiring itself looks right: the remaining Table, Chat, CommandPalette and date and time input modules resolve through their own maps, the strict check and the parity test pass, and the record update matches. One change is needed before approval: the title says PowerSearch now carries only its own English, but PowerSearch still bundles the whole catalog, as the description and changeset say, and grows slightly. Please retitle, for example fix(core): Table, Chat, CommandPalette and the date and time inputs carry only their own English.
[Automated review]
9efe454 to
b2ce5ab
Compare
|
/approve-spec b2ce5ab |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
This looks ready to merge: the remaining Table, Chat, CommandPalette and date and time input modules now resolve through their own English maps, the strict wiring check and the 31-locale parity test pass, and each affected component's import drops 7.1 to 8.0 KB gzip with no string change. The retitle resolves the earlier request, since PowerSearch still carries the whole catalog for caller-defined operator keys, as the changeset says. Nothing else is needed from you.
[Automated review]
…arry only their own English The remaining Core modules that name catalog keys register their own derived English map and use the internal translator. The wiring check is strict again: every such module registers its own map, and no Core module imports the public useTranslator or the public context export. PowerSearch operator labels keep the whole catalog, since a custom operator may name any Astryx key, so PowerSearch still bundles it.
b2ce5ab to
d63585c
Compare
|
/approve-spec d63585c |
There was a problem hiding this comment.
This looks ready to merge: the remaining Table, Chat, CommandPalette and date and time input modules now resolve through their own English maps, and each affected import drops 7.2 to 8.1 KB gzip with no string change in any shipped locale. PowerSearch keeps the whole catalog for caller-defined operator keys, as the changeset says. Nothing else is needed from you.
[Automated review]
Why (maintainer impact)
Follow-up to #9429, which moved most Core components onto per-module English fallback maps. Table, Chat, PowerSearch, CommandPalette and the date and time inputs still resolved their keys through the public
useTranslator, so every component that renders one (including Markdown, which renders Table) still bundled the whole English catalog, about 7 KB gzip, andarchitecture:internationalizationINV15 recorded that as a known conformance gap.Intended invariant
Nothing anyone sees changes (INV3–INV5, INV15). Every key these components resolve today resolves to the same English in every locale's fallback path. PowerSearch operator labels keep the whole catalog, because a caller-defined operator may name any Astryx key in
i18nKey.What changed
useComponentTranslator; TouchDateTimeField reads the internal context module.resolveOperatorLabelregisters the whole catalog, and joins the publicuseTranslatorand the public context export in the allowed full-catalog list.i18n/imports the publicuseTranslatoror the publicInternationalizationContextexport.Size (import cost, gzip bytes)
Same method as the per-pull-request size report (
.github/scripts/lib/component-size.js,measureComponentImport), base and head on the same main commit.Risk
Scope
Testing
packages/core/src/i18n/__tests__/englishFallback.test.ts): every key each of the 112 key-naming Core modules names, in all 31 shipped runtime catalogs, from its own map versus the whole catalog: identical.scripts/i18n-english-fallback.test.mjs: strict wiring failures on fixtures (public hook or context import, missing map), and the import-cost check on the built package now also covering Table and DateInput.check:repo, Core typecheck, Core build, eslint on changed files (no errors).CI impact
No workflow changes and no new jobs; the generator and tests are unchanged in cost.
Writing rubric results
R1 narration: none; the record edit removes the gap sentence and states the full-catalog paths in the present tense.
R2 research: none in the record.
R3 evidence: unchanged verification cells name tests and checks.
R4 rejected alternatives: none.
R5 change references: none.
R6 open questions: none.