ember-rails-i18n 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +339 -0
  5. data/README.md +64 -0
  6. data/Rakefile +1 -0
  7. data/ember-rails-i18n.gemspec +26 -0
  8. data/lib/ember-rails-i18n.rb +15 -0
  9. data/lib/ember-rails-i18n/helper.rb +29 -0
  10. data/lib/ember-rails-i18n/version.rb +3 -0
  11. data/lib/javascripts/moment.js +2489 -0
  12. data/lib/javascripts/moment_locale/ar-ma.js +56 -0
  13. data/lib/javascripts/moment_locale/ar.js +56 -0
  14. data/lib/javascripts/moment_locale/bg.js +86 -0
  15. data/lib/javascripts/moment_locale/br.js +107 -0
  16. data/lib/javascripts/moment_locale/bs.js +139 -0
  17. data/lib/javascripts/moment_locale/ca.js +66 -0
  18. data/lib/javascripts/moment_locale/cs.js +155 -0
  19. data/lib/javascripts/moment_locale/cv.js +59 -0
  20. data/lib/javascripts/moment_locale/cy.js +77 -0
  21. data/lib/javascripts/moment_locale/da.js +56 -0
  22. data/lib/javascripts/moment_locale/de.js +71 -0
  23. data/lib/javascripts/moment_locale/el.js +79 -0
  24. data/lib/javascripts/moment_locale/en-au.js +62 -0
  25. data/lib/javascripts/moment_locale/en-ca.js +59 -0
  26. data/lib/javascripts/moment_locale/en-gb.js +63 -0
  27. data/lib/javascripts/moment_locale/eo.js +65 -0
  28. data/lib/javascripts/moment_locale/es.js +75 -0
  29. data/lib/javascripts/moment_locale/et.js +76 -0
  30. data/lib/javascripts/moment_locale/eu.js +60 -0
  31. data/lib/javascripts/moment_locale/fa.js +97 -0
  32. data/lib/javascripts/moment_locale/fi.js +103 -0
  33. data/lib/javascripts/moment_locale/fo.js +56 -0
  34. data/lib/javascripts/moment_locale/fr-ca.js +54 -0
  35. data/lib/javascripts/moment_locale/fr.js +58 -0
  36. data/lib/javascripts/moment_locale/gl.js +71 -0
  37. data/lib/javascripts/moment_locale/he.js +77 -0
  38. data/lib/javascripts/moment_locale/hi.js +105 -0
  39. data/lib/javascripts/moment_locale/hr.js +140 -0
  40. data/lib/javascripts/moment_locale/hu.js +105 -0
  41. data/lib/javascripts/moment_locale/hy-am.js +113 -0
  42. data/lib/javascripts/moment_locale/id.js +67 -0
  43. data/lib/javascripts/moment_locale/is.js +124 -0
  44. data/lib/javascripts/moment_locale/it.js +59 -0
  45. data/lib/javascripts/moment_locale/ja.js +58 -0
  46. data/lib/javascripts/moment_locale/ka.js +108 -0
  47. data/lib/javascripts/moment_locale/km.js +55 -0
  48. data/lib/javascripts/moment_locale/ko.js +63 -0
  49. data/lib/javascripts/moment_locale/lb.js +160 -0
  50. data/lib/javascripts/moment_locale/lt.js +118 -0
  51. data/lib/javascripts/moment_locale/lv.js +77 -0
  52. data/lib/javascripts/moment_locale/mk.js +86 -0
  53. data/lib/javascripts/moment_locale/ml.js +64 -0
  54. data/lib/javascripts/moment_locale/mr.js +104 -0
  55. data/lib/javascripts/moment_locale/ms-my.js +66 -0
  56. data/lib/javascripts/moment_locale/nb.js +57 -0
  57. data/lib/javascripts/moment_locale/ne.js +105 -0
  58. data/lib/javascripts/moment_locale/nl.js +67 -0
  59. data/lib/javascripts/moment_locale/nn.js +56 -0
  60. data/lib/javascripts/moment_locale/pl.js +98 -0
  61. data/lib/javascripts/moment_locale/pt-br.js +56 -0
  62. data/lib/javascripts/moment_locale/pt.js +60 -0
  63. data/lib/javascripts/moment_locale/ro.js +72 -0
  64. data/lib/javascripts/moment_locale/ru.js +163 -0
  65. data/lib/javascripts/moment_locale/sk.js +156 -0
  66. data/lib/javascripts/moment_locale/sl.js +144 -0
  67. data/lib/javascripts/moment_locale/sq.js +61 -0
  68. data/lib/javascripts/moment_locale/sr-cyr.js +106 -0
  69. data/lib/javascripts/moment_locale/sr.js +106 -0
  70. data/lib/javascripts/moment_locale/sv.js +63 -0
  71. data/lib/javascripts/moment_locale/ta.js +112 -0
  72. data/lib/javascripts/moment_locale/th.js +58 -0
  73. data/lib/javascripts/moment_locale/tl-ph.js +58 -0
  74. data/lib/javascripts/moment_locale/tr.js +93 -0
  75. data/lib/javascripts/moment_locale/tzm-la.js +55 -0
  76. data/lib/javascripts/moment_locale/tzm.js +55 -0
  77. data/lib/javascripts/moment_locale/uk.js +157 -0
  78. data/lib/javascripts/moment_locale/uz.js +55 -0
  79. data/lib/javascripts/moment_locale/vi.js +62 -0
  80. data/lib/javascripts/moment_locale/zh-cn.js +108 -0
  81. data/lib/javascripts/moment_locale/zh-tw.js +84 -0
  82. data/vendor/assets/javascripts/locales/i18n.js +598 -0
  83. data/vendor/assets/javascripts/locales/test.js.erb +3 -0
  84. metadata +182 -0
@@ -0,0 +1,56 @@
1
+ // moment.js language configuration
2
+ // language : norwegian nynorsk (nn)
3
+ // author : https://github.com/mechuwind
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('nn', {
15
+ months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
17
+ weekdays : "sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),
18
+ weekdaysShort : "sun_mån_tys_ons_tor_fre_lau".split("_"),
19
+ weekdaysMin : "su_må_ty_on_to_fr_lø".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD.MM.YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[I dag klokka] LT',
29
+ nextDay: '[I morgon klokka] LT',
30
+ nextWeek: 'dddd [klokka] LT',
31
+ lastDay: '[I går klokka] LT',
32
+ lastWeek: '[Føregåande] dddd [klokka] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "om %s",
37
+ past : "for %s sidan",
38
+ s : "nokre sekund",
39
+ m : "eit minutt",
40
+ mm : "%d minutt",
41
+ h : "ein time",
42
+ hh : "%d timar",
43
+ d : "ein dag",
44
+ dd : "%d dagar",
45
+ M : "ein månad",
46
+ MM : "%d månader",
47
+ y : "eit år",
48
+ yy : "%d år"
49
+ },
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+ }));
@@ -0,0 +1,98 @@
1
+ // moment.js language configuration
2
+ // language : polish (pl)
3
+ // author : Rafal Hirsz : https://github.com/evoL
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ var monthsNominative = "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),
15
+ monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");
16
+
17
+ function plural(n) {
18
+ return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
19
+ }
20
+
21
+ function translate(number, withoutSuffix, key) {
22
+ var result = number + " ";
23
+ switch (key) {
24
+ case 'm':
25
+ return withoutSuffix ? 'minuta' : 'minutę';
26
+ case 'mm':
27
+ return result + (plural(number) ? 'minuty' : 'minut');
28
+ case 'h':
29
+ return withoutSuffix ? 'godzina' : 'godzinę';
30
+ case 'hh':
31
+ return result + (plural(number) ? 'godziny' : 'godzin');
32
+ case 'MM':
33
+ return result + (plural(number) ? 'miesiące' : 'miesięcy');
34
+ case 'yy':
35
+ return result + (plural(number) ? 'lata' : 'lat');
36
+ }
37
+ }
38
+
39
+ return moment.lang('pl', {
40
+ months : function (momentToFormat, format) {
41
+ if (/D MMMM/.test(format)) {
42
+ return monthsSubjective[momentToFormat.month()];
43
+ } else {
44
+ return monthsNominative[momentToFormat.month()];
45
+ }
46
+ },
47
+ monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),
48
+ weekdays : "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),
49
+ weekdaysShort : "nie_pon_wt_śr_czw_pt_sb".split("_"),
50
+ weekdaysMin : "N_Pn_Wt_Śr_Cz_Pt_So".split("_"),
51
+ longDateFormat : {
52
+ LT : "HH:mm",
53
+ L : "DD.MM.YYYY",
54
+ LL : "D MMMM YYYY",
55
+ LLL : "D MMMM YYYY LT",
56
+ LLLL : "dddd, D MMMM YYYY LT"
57
+ },
58
+ calendar : {
59
+ sameDay: '[Dziś o] LT',
60
+ nextDay: '[Jutro o] LT',
61
+ nextWeek: '[W] dddd [o] LT',
62
+ lastDay: '[Wczoraj o] LT',
63
+ lastWeek: function () {
64
+ switch (this.day()) {
65
+ case 0:
66
+ return '[W zeszłą niedzielę o] LT';
67
+ case 3:
68
+ return '[W zeszłą środę o] LT';
69
+ case 6:
70
+ return '[W zeszłą sobotę o] LT';
71
+ default:
72
+ return '[W zeszły] dddd [o] LT';
73
+ }
74
+ },
75
+ sameElse: 'L'
76
+ },
77
+ relativeTime : {
78
+ future : "za %s",
79
+ past : "%s temu",
80
+ s : "kilka sekund",
81
+ m : translate,
82
+ mm : translate,
83
+ h : translate,
84
+ hh : translate,
85
+ d : "1 dzień",
86
+ dd : '%d dni',
87
+ M : "miesiąc",
88
+ MM : translate,
89
+ y : "rok",
90
+ yy : translate
91
+ },
92
+ ordinal : '%d.',
93
+ week : {
94
+ dow : 1, // Monday is the first day of the week.
95
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
96
+ }
97
+ });
98
+ }));
@@ -0,0 +1,56 @@
1
+ // moment.js language configuration
2
+ // language : brazilian portuguese (pt-br)
3
+ // author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('pt-br', {
15
+ months : "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),
16
+ monthsShort : "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),
17
+ weekdays : "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),
18
+ weekdaysShort : "dom_seg_ter_qua_qui_sex_sáb".split("_"),
19
+ weekdaysMin : "dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D [de] MMMM [de] YYYY",
24
+ LLL : "D [de] MMMM [de] YYYY [às] LT",
25
+ LLLL : "dddd, D [de] MMMM [de] YYYY [às] LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[Hoje às] LT',
29
+ nextDay: '[Amanhã às] LT',
30
+ nextWeek: 'dddd [às] LT',
31
+ lastDay: '[Ontem às] LT',
32
+ lastWeek: function () {
33
+ return (this.day() === 0 || this.day() === 6) ?
34
+ '[Último] dddd [às] LT' : // Saturday + Sunday
35
+ '[Última] dddd [às] LT'; // Monday - Friday
36
+ },
37
+ sameElse: 'L'
38
+ },
39
+ relativeTime : {
40
+ future : "em %s",
41
+ past : "%s atrás",
42
+ s : "segundos",
43
+ m : "um minuto",
44
+ mm : "%d minutos",
45
+ h : "uma hora",
46
+ hh : "%d horas",
47
+ d : "um dia",
48
+ dd : "%d dias",
49
+ M : "um mês",
50
+ MM : "%d meses",
51
+ y : "um ano",
52
+ yy : "%d anos"
53
+ },
54
+ ordinal : '%dº'
55
+ });
56
+ }));
@@ -0,0 +1,60 @@
1
+ // moment.js language configuration
2
+ // language : portuguese (pt)
3
+ // author : Jefferson : https://github.com/jalex79
4
+
5
+ (function (factory) {
6
+ if (typeof define === 'function' && define.amd) {
7
+ define(['moment'], factory); // AMD
8
+ } else if (typeof exports === 'object') {
9
+ module.exports = factory(require('../moment')); // Node
10
+ } else {
11
+ factory(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ return moment.lang('pt', {
15
+ months : "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),
16
+ monthsShort : "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),
17
+ weekdays : "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),
18
+ weekdaysShort : "dom_seg_ter_qua_qui_sex_sáb".split("_"),
19
+ weekdaysMin : "dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D [de] MMMM [de] YYYY",
24
+ LLL : "D [de] MMMM [de] YYYY LT",
25
+ LLLL : "dddd, D [de] MMMM [de] YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[Hoje às] LT',
29
+ nextDay: '[Amanhã às] LT',
30
+ nextWeek: 'dddd [às] LT',
31
+ lastDay: '[Ontem às] LT',
32
+ lastWeek: function () {
33
+ return (this.day() === 0 || this.day() === 6) ?
34
+ '[Último] dddd [às] LT' : // Saturday + Sunday
35
+ '[Última] dddd [às] LT'; // Monday - Friday
36
+ },
37
+ sameElse: 'L'
38
+ },
39
+ relativeTime : {
40
+ future : "em %s",
41
+ past : "%s atrás",
42
+ s : "segundos",
43
+ m : "um minuto",
44
+ mm : "%d minutos",
45
+ h : "uma hora",
46
+ hh : "%d horas",
47
+ d : "um dia",
48
+ dd : "%d dias",
49
+ M : "um mês",
50
+ MM : "%d meses",
51
+ y : "um ano",
52
+ yy : "%d anos"
53
+ },
54
+ ordinal : '%dº',
55
+ week : {
56
+ dow : 1, // Monday is the first day of the week.
57
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
58
+ }
59
+ });
60
+ }));
@@ -0,0 +1,72 @@
1
+ // moment.js language configuration
2
+ // language : romanian (ro)
3
+ // author : Vlad Gurdiga : https://github.com/gurdiga
4
+ // author : Valentin Agachi : https://github.com/avaly
5
+
6
+ (function (factory) {
7
+ if (typeof define === 'function' && define.amd) {
8
+ define(['moment'], factory); // AMD
9
+ } else if (typeof exports === 'object') {
10
+ module.exports = factory(require('../moment')); // Node
11
+ } else {
12
+ factory(window.moment); // Browser global
13
+ }
14
+ }(function (moment) {
15
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
16
+ var format = {
17
+ 'mm': 'minute',
18
+ 'hh': 'ore',
19
+ 'dd': 'zile',
20
+ 'MM': 'luni',
21
+ 'yy': 'ani'
22
+ },
23
+ separator = ' ';
24
+ if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
25
+ separator = ' de ';
26
+ }
27
+
28
+ return number + separator + format[key];
29
+ }
30
+
31
+ return moment.lang('ro', {
32
+ months : "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),
33
+ monthsShort : "ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),
34
+ weekdays : "duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),
35
+ weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),
36
+ weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),
37
+ longDateFormat : {
38
+ LT : "H:mm",
39
+ L : "DD.MM.YYYY",
40
+ LL : "D MMMM YYYY",
41
+ LLL : "D MMMM YYYY H:mm",
42
+ LLLL : "dddd, D MMMM YYYY H:mm"
43
+ },
44
+ calendar : {
45
+ sameDay: "[azi la] LT",
46
+ nextDay: '[mâine la] LT',
47
+ nextWeek: 'dddd [la] LT',
48
+ lastDay: '[ieri la] LT',
49
+ lastWeek: '[fosta] dddd [la] LT',
50
+ sameElse: 'L'
51
+ },
52
+ relativeTime : {
53
+ future : "peste %s",
54
+ past : "%s în urmă",
55
+ s : "câteva secunde",
56
+ m : "un minut",
57
+ mm : relativeTimeWithPlural,
58
+ h : "o oră",
59
+ hh : relativeTimeWithPlural,
60
+ d : "o zi",
61
+ dd : relativeTimeWithPlural,
62
+ M : "o lună",
63
+ MM : relativeTimeWithPlural,
64
+ y : "un an",
65
+ yy : relativeTimeWithPlural
66
+ },
67
+ week : {
68
+ dow : 1, // Monday is the first day of the week.
69
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
70
+ }
71
+ });
72
+ }));
@@ -0,0 +1,163 @@
1
+ // moment.js language configuration
2
+ // language : russian (ru)
3
+ // author : Viktorminator : https://github.com/Viktorminator
4
+ // Author : Menelion Elensúle : https://github.com/Oire
5
+
6
+ (function (factory) {
7
+ if (typeof define === 'function' && define.amd) {
8
+ define(['moment'], factory); // AMD
9
+ } else if (typeof exports === 'object') {
10
+ module.exports = factory(require('../moment')); // Node
11
+ } else {
12
+ factory(window.moment); // Browser global
13
+ }
14
+ }(function (moment) {
15
+ function plural(word, num) {
16
+ var forms = word.split('_');
17
+ return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
18
+ }
19
+
20
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
21
+ var format = {
22
+ 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
23
+ 'hh': 'час_часа_часов',
24
+ 'dd': 'день_дня_дней',
25
+ 'MM': 'месяц_месяца_месяцев',
26
+ 'yy': 'год_года_лет'
27
+ };
28
+ if (key === 'm') {
29
+ return withoutSuffix ? 'минута' : 'минуту';
30
+ }
31
+ else {
32
+ return number + ' ' + plural(format[key], +number);
33
+ }
34
+ }
35
+
36
+ function monthsCaseReplace(m, format) {
37
+ var months = {
38
+ 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
39
+ 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
40
+ },
41
+
42
+ nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
43
+ 'accusative' :
44
+ 'nominative';
45
+
46
+ return months[nounCase][m.month()];
47
+ }
48
+
49
+ function monthsShortCaseReplace(m, format) {
50
+ var monthsShort = {
51
+ 'nominative': 'янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
52
+ 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
53
+ },
54
+
55
+ nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
56
+ 'accusative' :
57
+ 'nominative';
58
+
59
+ return monthsShort[nounCase][m.month()];
60
+ }
61
+
62
+ function weekdaysCaseReplace(m, format) {
63
+ var weekdays = {
64
+ 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
65
+ 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
66
+ },
67
+
68
+ nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/).test(format) ?
69
+ 'accusative' :
70
+ 'nominative';
71
+
72
+ return weekdays[nounCase][m.day()];
73
+ }
74
+
75
+ return moment.lang('ru', {
76
+ months : monthsCaseReplace,
77
+ monthsShort : monthsShortCaseReplace,
78
+ weekdays : weekdaysCaseReplace,
79
+ weekdaysShort : "вс_пн_вт_ср_чт_пт_сб".split("_"),
80
+ weekdaysMin : "вс_пн_вт_ср_чт_пт_сб".split("_"),
81
+ monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i],
82
+ longDateFormat : {
83
+ LT : "HH:mm",
84
+ L : "DD.MM.YYYY",
85
+ LL : "D MMMM YYYY г.",
86
+ LLL : "D MMMM YYYY г., LT",
87
+ LLLL : "dddd, D MMMM YYYY г., LT"
88
+ },
89
+ calendar : {
90
+ sameDay: '[Сегодня в] LT',
91
+ nextDay: '[Завтра в] LT',
92
+ lastDay: '[Вчера в] LT',
93
+ nextWeek: function () {
94
+ return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
95
+ },
96
+ lastWeek: function () {
97
+ switch (this.day()) {
98
+ case 0:
99
+ return '[В прошлое] dddd [в] LT';
100
+ case 1:
101
+ case 2:
102
+ case 4:
103
+ return '[В прошлый] dddd [в] LT';
104
+ case 3:
105
+ case 5:
106
+ case 6:
107
+ return '[В прошлую] dddd [в] LT';
108
+ }
109
+ },
110
+ sameElse: 'L'
111
+ },
112
+ relativeTime : {
113
+ future : "через %s",
114
+ past : "%s назад",
115
+ s : "несколько секунд",
116
+ m : relativeTimeWithPlural,
117
+ mm : relativeTimeWithPlural,
118
+ h : "час",
119
+ hh : relativeTimeWithPlural,
120
+ d : "день",
121
+ dd : relativeTimeWithPlural,
122
+ M : "месяц",
123
+ MM : relativeTimeWithPlural,
124
+ y : "год",
125
+ yy : relativeTimeWithPlural
126
+ },
127
+
128
+ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
129
+
130
+ meridiem : function (hour, minute, isLower) {
131
+ if (hour < 4) {
132
+ return "ночи";
133
+ } else if (hour < 12) {
134
+ return "утра";
135
+ } else if (hour < 17) {
136
+ return "дня";
137
+ } else {
138
+ return "вечера";
139
+ }
140
+ },
141
+
142
+ ordinal: function (number, period) {
143
+ switch (period) {
144
+ case 'M':
145
+ case 'd':
146
+ case 'DDD':
147
+ return number + '-й';
148
+ case 'D':
149
+ return number + '-го';
150
+ case 'w':
151
+ case 'W':
152
+ return number + '-я';
153
+ default:
154
+ return number;
155
+ }
156
+ },
157
+
158
+ week : {
159
+ dow : 1, // Monday is the first day of the week.
160
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
161
+ }
162
+ });
163
+ }));