Skip to content

Commit 9bcb21f

Browse files
Inv1xLukasTy
andauthored
[l10n] Improve Russian (ru-RU) locale (#13871)
Signed-off-by: Vladislav Pavlik <[email protected]> Co-authored-by: Lukas <[email protected]>
1 parent 06e1e72 commit 9bcb21f

File tree

2 files changed

+15
-15
lines changed
  • docs/data/date-pickers/localization
  • packages/x-date-pickers/src/locales

2 files changed

+15
-15
lines changed

docs/data/date-pickers/localization/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"languageTag": "ru-RU",
204204
"importName": "ruRU",
205205
"localeName": "Russian",
206-
"missingKeysCount": 14,
206+
"missingKeysCount": 0,
207207
"totalKeysCount": 50,
208208
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/ruRU.ts"
209209
},

packages/x-date-pickers/src/locales/ruRU.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ const ruRUPickers: Partial<PickersLocaleText<any>> = {
2626
// DateRange labels
2727
start: 'Начало',
2828
end: 'Конец',
29-
// startDate: 'Start date',
30-
// startTime: 'Start time',
31-
// endDate: 'End date',
32-
// endTime: 'End time',
29+
startDate: 'Начальная дата',
30+
startTime: 'Начальное время',
31+
endDate: 'Конечная дата',
32+
endTime: 'Конечное время',
3333

3434
// Action bar
3535
cancelButtonLabel: 'Отмена',
@@ -78,24 +78,24 @@ const ruRUPickers: Partial<PickersLocaleText<any>> = {
7878
fieldYearPlaceholder: (params) => 'Г'.repeat(params.digitAmount),
7979
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'ММММ' : 'ММ'),
8080
fieldDayPlaceholder: () => 'ДД',
81-
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
81+
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'ДДДД' : 'ДД'),
8282
fieldHoursPlaceholder: () => 'чч',
8383
fieldMinutesPlaceholder: () => 'мм',
8484
fieldSecondsPlaceholder: () => 'сс',
8585
fieldMeridiemPlaceholder: () => '(д|п)п',
8686

8787
// View names
88-
// year: 'Year',
89-
// month: 'Month',
90-
// day: 'Day',
91-
// weekDay: 'Week day',
92-
// hours: 'Hours',
93-
// minutes: 'Minutes',
94-
// seconds: 'Seconds',
95-
// meridiem: 'Meridiem',
88+
year: 'Год',
89+
month: 'Месяц',
90+
day: 'День',
91+
weekDay: 'День недели',
92+
hours: 'Часы',
93+
minutes: 'Минуты',
94+
seconds: 'Секунды',
95+
meridiem: 'Меридием',
9696

9797
// Common
98-
// empty: 'Empty',
98+
empty: 'Пустой',
9999
};
100100

101101
export const ruRU = getPickersLocalization(ruRUPickers);

0 commit comments

Comments
 (0)