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

Add Mongolian locale relativeTime #753

Merged
merged 5 commits into from
Dec 18, 2019
Merged
Changes from 3 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
16 changes: 16 additions & 0 deletions src/locale/mn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const locale = {
months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
weekStart: 1,
munkhorgil marked this conversation as resolved.
Show resolved Hide resolved
weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
ordinal: n => n,
formats: {
Expand All @@ -15,6 +16,21 @@ const locale = {
LL: 'YYYY оны MMMMын D',
LLL: 'YYYY оны MMMMын D HH:mm',
LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
},
relativeTime: {
future: '%s',
past: '%s',
s: 'саяхан',
m: 'м',
mm: '%dм',
h: '1ц',
hh: '%dц',
d: '1ө',
dd: '%dө',
M: '1с',
MM: '%dс',
y: '1ж',
yy: '%dж'
}
}

Expand Down