Repository navigation
fix(i18n): translate hardcoded data table, actions and inbox filter labels - #1588
Merged
realcodesiman merged 1 commit intoOct 31, 2026
Merged
Conversation
…abels Co-Authored-By: Claude Opus 5.5 <[email protected]>
realcodesiman
approved these changes
Oct 31, 2026
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
…abels (#1588) Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Summary
Several table and inbox labels render in English for every locale because they are hardcoded:
DataTable/DataTablePagination(packages/ui): "No results.", "x of y row(s) selected.", "Rows per page", "Page x of y" and the page-navigationaria-labels. None of the 57DataTableusages in the builder passlabels, so every table shows them in English.Changes
DataTableLabelsProvider/useDataTableLabels(data-table-labels.tsx), mirroringFormOptionalLabelProvider: the app supplies translated defaults once; a table's ownlabelsprop still wins key by key; without a provider the labels stay English, so other consumers are unaffected.DataTablePaginationLabelsmoved there and is re-exported fromdata-table-pagination(no API change).DataTableLabelsBridge(next toFormOptionalLabelBridgein the root layout) feeds the keys the hand-rolled paginations already share (analytics.pagination.*,messages.noResults), so no new keys for the tables.actions.actions. Every affected column already has an explicitid, so column ids, visibility and sorting state are unchanged.fields.botCategory.options.{all,human,bot}in all 21 locale files;human/botreuse each locale's existinganalytics.human/analytics.botwording.Test plan
packages/ui/__tests__/data-table-labels.test.tsx: English fallback without a provider, provider labels (incl.aria-label), per-table override winspnpm --filter @chatbotx.io/ui test(22 files, 96 tests)pnpm --filter @chatbotx.io/ui check-types,pnpm --filter builder check-typespnpm --filter builder i18n:check(no missing/invalid keys)biome checkon all touched filespnpm --filter builder test(1037 files, 9405 tests)Not covered here (follow-ups if welcome): other hardcoded English such as "Agents"/"Inbox Teams"/"All"/"Unassigned" in
useWorkspaceMembers, and the fixedyyyy/MM/dddate format in tables.🤖 Generated with Claude Code