Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Improve Japanese (ja-JP) locale #2502

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);