Repository navigation
[feat] i18n: remaining 27 components (~55 strings, alias-and-resolve pattern) - #3941
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 14, 2026 22:29
aca77d2 to
abdc95f
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 14, 2026 22:56
eb2f410 to
4121545
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 14, 2026 23:01
abdc95f to
4c1934a
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
2 times, most recently
from
July 15, 2026 16:33
0a198f1 to
4c1934a
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
…iolations
Adds a new ESLint rule that flags any hardcoded user-facing string
literal on JSX attributes / object props / destructure defaults inside
packages/core/src whose prop name matches user-facing conventions:
Exact: label, placeholder, title, tooltip, text, summary, message,
description, hint
Suffix: *Label, *Text, *Placeholder, *Title, *Message, *Tooltip,
*Hint, *Description, *Summary
All aria-* attributes (with a small exclude list).
The rule ignores tests, doc files, stories, and non-user-facing string
shapes (single lowercase word, SCREAMING_SNAKE, URLs, paths).
Configuration follows the plugin convention: 'error' in strict,
'warn' in recommended.
The rule immediately caught 33 hardcoded strings across 22 files that
my hand-inventory missed during PRs #3765/#3922/#3941 — good
validation. All fixed in this PR using the standard alias-and-resolve
pattern for prop defaults, and t() calls for JSX-attr and
config-property cases. 30 new catalog entries added.
Files migrated: Breadcrumbs, Chat (Composer, ComposerDrawer,
ComposerInput, useSpeechRecognition), CommandPalette (root, input,
list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link,
MobileNavToggle, MoreMenu, MultiSelector, Outline, PowerSearch (label,
placeholder, popoverSaveButtonLabel), Resizable/ResizeHandle,
Selector, SideNavHeading, Table/plugins/pagination/useTablePagination,
TimeInput, TopNavHeading, Typeahead.
Placeholders that used '...' (three ASCII dots) are now '…' (Unicode
ellipsis) in en.json — a small typography normalization.
Refs #3641, builds on #3941
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
…iolations
Adds a new ESLint rule that flags any hardcoded user-facing string
literal on JSX attributes / object props / destructure defaults inside
packages/core/src whose prop name matches user-facing conventions:
Exact: label, placeholder, title, tooltip, text, summary, message,
description, hint
Suffix: *Label, *Text, *Placeholder, *Title, *Message, *Tooltip,
*Hint, *Description, *Summary
All aria-* attributes (with a small exclude list).
The rule ignores tests, doc files, stories, and non-user-facing string
shapes (single lowercase word, SCREAMING_SNAKE, URLs, paths).
Configuration follows the plugin convention: 'error' in strict,
'warn' in recommended.
The rule immediately caught 33 hardcoded strings across 22 files that
my hand-inventory missed during PRs #3765/#3922/#3941 — good
validation. All fixed in this PR using the standard alias-and-resolve
pattern for prop defaults, and t() calls for JSX-attr and
config-property cases. 30 new catalog entries added.
Files migrated: Breadcrumbs, Chat (Composer, ComposerDrawer,
ComposerInput, useSpeechRecognition), CommandPalette (root, input,
list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link,
MobileNavToggle, MoreMenu, MultiSelector, Outline, PowerSearch (label,
placeholder, popoverSaveButtonLabel), Resizable/ResizeHandle,
Selector, SideNavHeading, Table/plugins/pagination/useTablePagination,
TimeInput, TopNavHeading, Typeahead.
Placeholders that used '...' (three ASCII dots) are now '…' (Unicode
ellipsis) in en.json — a small typography normalization.
Refs #3641, builds on #3941
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
…iolations
Adds a new ESLint rule that flags any hardcoded user-facing string
literal on JSX attributes / object props / destructure defaults inside
packages/core/src whose prop name matches user-facing conventions:
Exact: label, placeholder, title, tooltip, text, summary, message,
description, hint
Suffix: *Label, *Text, *Placeholder, *Title, *Message, *Tooltip,
*Hint, *Description, *Summary
All aria-* attributes (with a small exclude list).
The rule ignores tests, doc files, stories, and non-user-facing string
shapes (single lowercase word, SCREAMING_SNAKE, URLs, paths).
Configuration follows the plugin convention: 'error' in strict,
'warn' in recommended.
The rule immediately caught 33 hardcoded strings across 22 files that
my hand-inventory missed during PRs #3765/#3922/#3941 — good
validation. All fixed in this PR using the standard alias-and-resolve
pattern for prop defaults, and t() calls for JSX-attr and
config-property cases. 30 new catalog entries added.
Files migrated: Breadcrumbs, Chat (Composer, ComposerDrawer,
ComposerInput, useSpeechRecognition), CommandPalette (root, input,
list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link,
MobileNavToggle, MoreMenu, MultiSelector, Outline, PowerSearch (label,
placeholder, popoverSaveButtonLabel), Resizable/ResizeHandle,
Selector, SideNavHeading, Table/plugins/pagination/useTablePagination,
TimeInput, TopNavHeading, Typeahead.
Placeholders that used '...' (three ASCII dots) are now '…' (Unicode
ellipsis) in en.json — a small typography normalization.
Refs #3641, builds on #3941
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 15, 2026 18:19
4121545 to
0a7243e
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 15, 2026 18:19
4c1934a to
b5fdbf7
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
marked this pull request as ready for review
July 15, 2026 18:35
nynexman4464
requested review from
cixzhang,
ejhammond and
imdreamrunner
as code owners
July 15, 2026 18:35
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 15, 2026 18:48
0a7243e to
5c9488d
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 15, 2026 18:48
b5fdbf7 to
6ece8eb
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 15, 2026 19:43
5c9488d to
fc2d38a
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 15, 2026 19:43
6ece8eb to
5f1da52
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 15, 2026 20:12
5f1da52 to
ac3ee1f
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 15, 2026 22:51
db145c9 to
47fab76
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 15, 2026 22:51
ac3ee1f to
e3022a5
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 15, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 17, 2026 16:26
47fab76 to
d233a3c
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 17, 2026 16:26
e3022a5 to
8d01d60
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 17, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 17, 2026 17:54
d233a3c to
923b9d6
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 17, 2026 17:54
8d01d60 to
22b5f1a
Compare
nynexman4464
added a commit
that referenced
this pull request
Jul 17, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-powersearch
branch
from
July 17, 2026 19:27
923b9d6 to
78ca3d8
Compare
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 17, 2026 19:44
22b5f1a to
4f16c5e
Compare
nynexman4464
changed the base branch from
nynexman4464/feat/i18n-powersearch
to
main
July 17, 2026 19:44
Third wave of the core i18n migration, following the scaffold in #3765 and the PowerSearch migration in #3922. Migrates all remaining ~55 hardcoded user-facing strings across 27 components through useTranslator(). Components: AlertDialog, AppShell, AvatarGroup, Banner, Calendar, Carousel, Chat (ChatMessageMetadata + ChatPastedTextToken), CheckboxList, CommandPalette, DateRangeInput, DateTimeInput, Dialog, DropdownMenu, Lightbox, Markdown, MobileNav, MultiSelector, Popover, Selector, SideNav, TabList, Table (BaseTable, filtering, selection, sortable plugins), Toast (Toast + ToastViewport), Tokenizer, TopNav, TreeList, Typeahead. Prop defaults with translated fallbacks use the alias-and-resolve pattern (`label: labelFromProps` in the destructure, then `const label = labelFromProps ?? t('@astryx.foo.label')` in the body). Notes: - DropdownMenu.button is now truly optional and defaults to `t('@astryx.dropdownMenu.label')` for its aria-label. - ChatMessageMetadata uses `i18nKey` on its STATUS_CONFIG map and resolves at render (pattern established by PowerSearch operators). - Markdown.renderBlock takes `t: TranslatorFn` as a parameter, threaded through from the top-level Markdown component. - TreeList switched from `[aria-label='Toggle children']` querySelector to `[data-tree-toggle]` for row activation, since the aria-label is now locale-dependent. 58 new catalog entries added to packages/core/locales/en.json, all camelCase per the convention agreed in #3641. Zero visible changes for consumers who don't render an InternationalizationProvider. Refs #3641, builds on #3765 + #3922
nynexman4464
force-pushed
the
nynexman4464/feat/i18n-rest
branch
from
July 17, 2026 20:02
4f16c5e to
a8d0b79
Compare
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
nynexman4464
added a commit
that referenced
this pull request
Jul 17, 2026
Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
nynexman4464
added a commit
that referenced
this pull request
Jul 17, 2026
…r() (#4011) Completes the string coverage for the i18n scaffold work in the #3641 series. 30 new catalog entries added to packages/core/locales/en.json. The lint rule that caught these violations lands in a separate PR. Files migrated: Breadcrumbs, Chat (Composer/ComposerDrawer/ ComposerInput/useSpeechRecognition), CommandPalette (root/input/list), ContextMenu, DateInput, DateRangeInput, DateTimeInput, Link, MobileNavToggle, MoreMenu, MultiSelector (trigger placeholder), Outline, PowerSearch (label/placeholder/apply defaults that #3922 missed), Resizable/ResizeHandle, Selector (trigger placeholder), SideNavHeading (nav-menu dialog), Table pagination plugin, TimeInput, TopNavHeading (nav-menu dialog), Typeahead. Placeholders that used '...' (three ASCII dots) are normalized to '…' (Unicode ellipsis) in the shipped en.json catalog — a small typography normalization consistent with existing ellipsis characters in previously-migrated strings. Refs #3641, builds on #3941
31 of 40 tasks
This branch was successfully deployed
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.
Stacked on #3922. Third and final wave of the core i18n migration — migrates all remaining ~55 hardcoded user-facing strings across 27 components through
useTranslator(). Zero visible changes for consumers who don't render anInternationalizationProvider.Components migrated
AlertDialog, AppShell, AvatarGroup, Banner, Calendar, Carousel, Chat (ChatMessageMetadata + ChatPastedTextToken), CheckboxList, CommandPalette, DateRangeInput, DateTimeInput, Dialog, DropdownMenu, Lightbox, Markdown, MobileNav, MultiSelector, Popover, Selector, SideNav, TabList, Table (BaseTable + filtering + selection + sortable plugins), Toast (Toast + ToastViewport), Tokenizer, TopNav, TreeList, Typeahead.
Patterns established
Prop defaults with translated fallbacks — the alias-and-resolve convention (see #3931 for the docs follow-up):
Applied uniformly across 12 prop-default cases (
cancelLabel,ariaLabel,emptySearchText,emptyBootstrapText,timePlaceholder,selectAllLabel,searchPlaceholder,closeButtonLabel,emptySearchResultsText, etc.).Config maps with translated fields —
ChatMessageMetadata'sSTATUS_CONFIGusesi18nKeyfields resolved at render, matching the pattern established for PowerSearch operators.DOM identity across locales —
TreeListswitches from[aria-label="Toggle children"]querySelector to[data-tree-toggle]for row activation, because the aria-label is now locale-dependent.TreeListItemsetsdata-tree-toggle=""on the chevron toggle button as stable identity.Threading
tthrough pure helpers —Markdown.renderBlockis a pure function used to render block-level nodes. It now takest: TranslatorFnas a required parameter, threaded through from the top-levelMarkdowncomponent.renderInlinedoesn't needt(no translated strings). 5 callsites updated.Public API changes
DropdownMenu.buttonis now truly optional (was implicitly-defaulted via a module-levelDEFAULT_BUTTON). When not provided, the trigger usest('@astryx.dropdownMenu.label')("Menu") as its aria-label. Consumers passing abuttonprop see no change.= 'Cancel'/= 'Search...'etc. in destructures are now optional at the type level; the resolved value is computed inside the component body. This is source-compatible: existing consumers passing values continue to work; consumers not passing values now get translated defaults instead of hardcoded English (in the defaultenlocale, the strings are identical).Catalog
58 new entries added to
packages/core/locales/en.json, all camelCase leaf segments per #3641. Now 115 total astryx-owned catalog keys across the library.Testing
encatalog preserves current wording.ttouseCallbackdeps in MultiSelector + Selector).pnpm check:repoall green — sync, package boundaries, changesets, demo media, executable bits.Notes
Chat/ChatMessageMetadata.test.tsxwas already exercising the status labels; it passes unchanged.Follow-ups tracked
Refs #3641, builds on #3765 + #3922