forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3c7192
commit 1ff863e
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
(function () { | ||
var lang = { | ||
months : "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), | ||
monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"), | ||
weekdays : "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), | ||
weekdaysShort : "вск_пнд_втр_срд_чтв_птн_суб".split("_"), | ||
longDateFormat : { | ||
L : "DD-MM-YYYY", | ||
LL : "D MMMM YYYY", | ||
LLL : "D MMMM YYYY HH:mm", | ||
LLLL : "dddd, D MMMM YYYY HH:mm" | ||
}, // It needs checking (adding) russian plurals and cases. | ||
relativeTime : { | ||
future : "через %s", | ||
past : "%s назад", | ||
s : "несколько секунд", | ||
m : "минут", | ||
mm : "%d минут", | ||
h : "часа", | ||
hh : "%d часов", | ||
d : "1 день", | ||
dd : "%d дней", | ||
M : "месяц", | ||
MM : "%d месяцев", | ||
y : "год", | ||
yy : "%d лет" | ||
}, | ||
ordinal : function (number) { | ||
return '.'; | ||
} | ||
}; | ||
|
||
// Node | ||
if (typeof module !== 'undefined') { | ||
module.exports = lang; | ||
} | ||
// Browser | ||
if (typeof window !== 'undefined' && this.moment && this.moment.lang) { | ||
this.moment.lang('ru', lang); | ||
} | ||
}()); |