Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[l10n] Improve Russian (ru-RU) locale #13871

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);