Skip to content

Commit

Permalink
[l10n] Improve Japanese (jaJP) locale (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
daikiojm authored Aug 30, 2021
1 parent 8eabe16 commit 89a8327
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packages/grid/_modules_/grid/locales/jaJP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { getGridLocalization, Localization } from '../utils/getGridLocalization'

const jaJPGrid: Partial<GridLocaleText> = {
// Root
noRowsLabel: '行がありません',
// noResultsOverlayLabel: 'No results found.',
noRowsLabel: '行がありません',
noResultsOverlayLabel: '結果がありません。',
errorOverlayDefaultLabel: 'エラーが発生しました。',

// Density selector toolbar button text
Expand Down Expand Up @@ -59,8 +59,8 @@ const jaJPGrid: Partial<GridLocaleText> = {
filterOperatorOnOrAfter: '...以降',
filterOperatorBefore: '...より前',
filterOperatorOnOrBefore: '...以前',
// filterOperatorIsEmpty: 'is empty',
// filterOperatorIsNotEmpty: 'is not empty',
filterOperatorIsEmpty: '...空である',
filterOperatorIsNotEmpty: '...空でない',

// Column menu text
columnMenuLabel: 'メニュー',
Expand All @@ -83,8 +83,15 @@ const jaJPGrid: Partial<GridLocaleText> = {
footerTotalRows: '総行数:',

// Total visible rows footer text
// footerTotalVisibleRows: (visibleCount, totalCount) =>
// `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
footerTotalVisibleRows: (visibleCount, totalCount) =>
`${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,

// Checkbox selection text
checkboxSelectionHeaderName: 'チェックボックス',

// Boolean cell text
booleanCellTrueLabel: '真',
booleanCellFalseLabel: '偽',
};

export const jaJP: Localization = getGridLocalization(jaJPGrid, jaJPCore);

0 comments on commit 89a8327

Please sign in to comment.