Skip to content

Commit

Permalink
[l10n] Improve Russian (ru-RU) locale (mui#13871)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Pavlik <[email protected]>
Co-authored-by: Lukas <[email protected]>
  • Loading branch information
2 people authored and DungTiger committed Jul 23, 2024
1 parent ee7d242 commit 15dcb89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
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 @@ -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"
},
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/ruRU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const ruRUPickers: 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 @@ -78,24 +78,24 @@ const ruRUPickers: Partial<PickersLocaleText<any>> = {
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);

0 comments on commit 15dcb89

Please sign in to comment.