From 15dcb89aac22bbf4e2f77c5a41f676ac6cf11454 Mon Sep 17 00:00:00 2001 From: Vladislav Pavlik <78815019+Inv1x@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:49:31 +0300 Subject: [PATCH] [l10n] Improve Russian (ru-RU) locale (#13871) Signed-off-by: Vladislav Pavlik <78815019+Inv1x@users.noreply.github.com> Co-authored-by: Lukas --- docs/data/date-pickers/localization/data.json | 2 +- packages/x-date-pickers/src/locales/ruRU.ts | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/data/date-pickers/localization/data.json b/docs/data/date-pickers/localization/data.json index 100bebc0be0c4..eda4bb64d8385 100644 --- a/docs/data/date-pickers/localization/data.json +++ b/docs/data/date-pickers/localization/data.json @@ -203,7 +203,7 @@ "languageTag": "ru-RU", "importName": "ruRU", "localeName": "Russian", - "missingKeysCount": 14, + "missingKeysCount": 0, "totalKeysCount": 50, "githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/ruRU.ts" }, diff --git a/packages/x-date-pickers/src/locales/ruRU.ts b/packages/x-date-pickers/src/locales/ruRU.ts index a5adda58e7644..c91b2a4a594ee 100644 --- a/packages/x-date-pickers/src/locales/ruRU.ts +++ b/packages/x-date-pickers/src/locales/ruRU.ts @@ -26,10 +26,10 @@ const ruRUPickers: Partial> = { // DateRange labels start: 'Начало', end: 'Конец', - // startDate: 'Start date', - // startTime: 'Start time', - // endDate: 'End date', - // endTime: 'End time', + startDate: 'Начальная дата', + startTime: 'Начальное время', + endDate: 'Конечная дата', + endTime: 'Конечное время', // Action bar cancelButtonLabel: 'Отмена', @@ -78,24 +78,24 @@ const ruRUPickers: Partial> = { fieldYearPlaceholder: (params) => 'Г'.repeat(params.digitAmount), fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'ММММ' : 'ММ'), fieldDayPlaceholder: () => 'ДД', - // fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE', + fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'ДДДД' : 'ДД'), fieldHoursPlaceholder: () => 'чч', fieldMinutesPlaceholder: () => 'мм', fieldSecondsPlaceholder: () => 'сс', fieldMeridiemPlaceholder: () => '(д|п)п', // 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 ruRU = getPickersLocalization(ruRUPickers);