Skip to content

Commit

Permalink
Merge pull request #45 from GremL1N/master
Browse files Browse the repository at this point in the history
Add russian locale
  • Loading branch information
shubhadip authored Aug 26, 2022
2 parents 84be505 + addbbb2 commit 3ca098f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/components/datepicker/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,41 @@ const pl = (): ILocale => {
};
};

const ru = (): ILocale => {
const langName = 'Russian';
const monthFullName = [
'Январь',
'Февраль',
'Март',
'Апрель',
'Май',
'Июнь',
'Июль',
'Август',
'Сентябрь',
'Октябрь',
'Ноябрь',
'Декабрь',
];
const shortName = ['Янв.', 'Фев.', 'Мар.', 'Апр.', 'Май', 'Июн.', 'Июл.', 'Авг.', 'Сен.', 'Окт.', 'Ноя.', 'Дек.'];
const days = ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'];
const daysNames = ['Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Субботв'];
const rtl = false;
const ymd = false;
const yearSuffix = '';
return {
months: monthFullName,
monthsAbbr: shortName,
days,
language: langName,
yearSuffix,
ymd,
rtl,
langName,
daysNames,
};
};

export const data = {
af: af(),
hi: hi(),
Expand All @@ -328,4 +363,5 @@ export const data = {
nl: nl(),
pt: pt(),
pl: pl(),
ru: ru(),
};

0 comments on commit 3ca098f

Please sign in to comment.