Merge pull request #4300 from yancat160/feat/datagrid-view-toggle-i18n

i18n: translate DataGrid view-toggle tooltips
This commit is contained in:
Mike Cao authored and GitHub committed 2026-05-26 23:48:46 -04:00
commit 77886a32cc
54 files changed
+109 -1

No files matched your search

+3 -1
View File
@@ -92,7 +92,9 @@ export function DataGrid({
<Icon>{displayMode === 'cards' ? <Table2 /> : <LayoutGrid />}</Icon>
</Button>
<Tooltip>
<Text>{displayMode === 'cards' ? 'Switch to table view' : 'Switch to card view'}</Text>
<Text>
{displayMode === 'cards' ? t(labels.switchToTableView) : t(labels.switchToCardView)}
</Text>
</Tooltip>
</TooltipTrigger>
);
+2
View File
@@ -365,6 +365,8 @@ export const labels: Record<string, string> = {
support: 'label.support',
documentation: 'label.documentation',
switchAccount: 'label.switch-account',
switchToTableView: 'label.switch-to-table-view',
switchToCardView: 'label.switch-to-card-view',
performance: 'label.performance',
lcp: 'label.lcp',
inp: 'label.inp',