From 98498c691131158128b471bfcad16e8cf40a795e Mon Sep 17 00:00:00 2001 From: makoto14 Date: Sun, 10 Mar 2024 22:57:28 +0900 Subject: [PATCH] [l10n] Improve Japanese (ja-JP) locale --- docs/data/data-grid/localization/data.json | 2 +- docs/data/date-pickers/localization/data.json | 2 +- packages/x-data-grid/src/locales/jaJP.ts | 6 ++-- packages/x-date-pickers/src/locales/jaJP.ts | 28 +++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/data/data-grid/localization/data.json b/docs/data/data-grid/localization/data.json index 65b342c980ad..2d51946c5876 100644 --- a/docs/data/data-grid/localization/data.json +++ b/docs/data/data-grid/localization/data.json @@ -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" }, diff --git a/docs/data/date-pickers/localization/data.json b/docs/data/date-pickers/localization/data.json index 0a76129d0673..1ba2f8bb68bb 100644 --- a/docs/data/date-pickers/localization/data.json +++ b/docs/data/date-pickers/localization/data.json @@ -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" }, diff --git a/packages/x-data-grid/src/locales/jaJP.ts b/packages/x-data-grid/src/locales/jaJP.ts index 03604e992d98..2f98e640ffdb 100644 --- a/packages/x-data-grid/src/locales/jaJP.ts +++ b/packages/x-data-grid/src/locales/jaJP.ts @@ -38,9 +38,9 @@ const jaJPGrid: Partial = { toolbarExportExcel: 'Excelダウンロード', // Columns management text - // columnsManagementSearchTitle: 'Search', - // columnsManagementNoColumns: 'No columns', - // columnsManagementShowHideAllText: 'Show/Hide All', + columnsManagementSearchTitle: '検索', + columnsManagementNoColumns: 'カラムなし', + columnsManagementShowHideAllText: 'すべて表示/非表示', // Filter panel text filterPanelAddFilter: 'フィルター追加', diff --git a/packages/x-date-pickers/src/locales/jaJP.ts b/packages/x-date-pickers/src/locales/jaJP.ts index b75376e3059a..6220e261c23b 100644 --- a/packages/x-date-pickers/src/locales/jaJP.ts +++ b/packages/x-date-pickers/src/locales/jaJP.ts @@ -26,10 +26,10 @@ const jaJPPickers: Partial> = { // DateRange labels start: '開始', end: '終了', - // startDate: 'Start date', - // startTime: 'Start time', - // endDate: 'End date', - // endTime: 'End time', + startDate: '開始日', + startTime: '開始時間', + endDate: '終了日', + endTime: '終了時間', // Action bar cancelButtonLabel: 'キャンセル', @@ -68,7 +68,7 @@ const jaJPPickers: Partial> = { value !== null && utils.isValid(value) ? `時間を選択してください。選択した時間は ${utils.format(value, 'fullTime')} です` : '時間を選択してください', - // fieldClearLabel: 'Clear value', + fieldClearLabel: 'クリア', // Table labels timeTableLabel: '時間を選択', @@ -85,17 +85,17 @@ const jaJPPickers: Partial> = { 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);