Skip to content

Commit

Permalink
[l10n] Improve Japanese (ja-JP) locale
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto14 committed Mar 10, 2024
1 parent 7c4ba74 commit 98498c6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"languageTag": "ja-JP",
"importName": "jaJP",
"localeName": "Japanese",
"missingKeysCount": 3,
"missingKeysCount": 0,
"totalKeysCount": 117,
"githubLink": "https://github.com/mui/mui-x/blob/next/packages/x-data-grid/src/locales/jaJP.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"languageTag": "ja-JP",
"importName": "jaJP",
"localeName": "Japanese",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/next/packages/x-date-pickers/src/locales/jaJP.ts"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/x-data-grid/src/locales/jaJP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const jaJPGrid: Partial<GridLocaleText> = {
toolbarExportExcel: 'Excelダウンロード',

// Columns management text
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
columnsManagementSearchTitle: '検索',
columnsManagementNoColumns: 'カラムなし',
columnsManagementShowHideAllText: 'すべて表示/非表示',

// Filter panel text
filterPanelAddFilter: 'フィルター追加',
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/jaJP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const jaJPPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: '開始',
end: '終了',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: '開始日',
startTime: '開始時間',
endDate: '終了日',
endTime: '終了時間',

// Action bar
cancelButtonLabel: 'キャンセル',
Expand Down Expand Up @@ -68,7 +68,7 @@ const jaJPPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `時間を選択してください。選択した時間は ${utils.format(value, 'fullTime')} です`
: '時間を選択してください',
// fieldClearLabel: 'Clear value',
fieldClearLabel: 'クリア',

// Table labels
timeTableLabel: '時間を選択',
Expand All @@ -85,17 +85,17 @@ const jaJPPickers: Partial<PickersLocaleText<any>> = {
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: '',
month: '',
day: '',
weekDay: '平日',
hours: '時間',
minutes: '',
seconds: '',
meridiem: 'メリディム',

// Common
// empty: 'Empty',
empty: '',
};

export const jaJP = getPickersLocalization(jaJPPickers);

0 comments on commit 98498c6

Please sign in to comment.