momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -1,73 +1,77 @@
1
- // moment.js locale configuration
2
- // locale : romanian (ro)
3
- // author : Vlad Gurdiga : https://github.com/gurdiga
4
- // author : Valentin Agachi : https://github.com/avaly
1
+ //! moment.js locale configuration
2
+ //! locale : Romanian [ro]
3
+ //! author : Vlad Gurdiga : https://github.com/gurdiga
4
+ //! author : Valentin Agachi : https://github.com/avaly
5
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((typeof global !== 'undefined' ? global : this).moment); // node or other global
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
15
+ var format = {
16
+ 'ss': 'secunde',
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 ';
13
26
  }
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
+ return number + separator + format[key];
28
+ }
27
29
 
28
- return number + separator + format[key];
30
+ var ro = moment.defineLocale('ro', {
31
+ months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
32
+ monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
33
+ monthsParseExact: true,
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
+ LTS : 'H:mm:ss',
40
+ L : 'DD.MM.YYYY',
41
+ LL : 'D MMMM YYYY',
42
+ LLL : 'D MMMM YYYY H:mm',
43
+ LLLL : 'dddd, D MMMM YYYY H:mm'
44
+ },
45
+ calendar : {
46
+ sameDay: '[azi la] LT',
47
+ nextDay: '[mâine la] LT',
48
+ nextWeek: 'dddd [la] LT',
49
+ lastDay: '[ieri la] LT',
50
+ lastWeek: '[fosta] dddd [la] LT',
51
+ sameElse: 'L'
52
+ },
53
+ relativeTime : {
54
+ future : 'peste %s',
55
+ past : '%s în urmă',
56
+ s : 'câteva secunde',
57
+ ss : relativeTimeWithPlural,
58
+ m : 'un minut',
59
+ mm : relativeTimeWithPlural,
60
+ h : 'o oră',
61
+ hh : relativeTimeWithPlural,
62
+ d : 'o zi',
63
+ dd : relativeTimeWithPlural,
64
+ M : 'o lună',
65
+ MM : relativeTimeWithPlural,
66
+ y : 'un an',
67
+ yy : relativeTimeWithPlural
68
+ },
69
+ week : {
70
+ dow : 1, // Monday is the first day of the week.
71
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
29
72
  }
73
+ });
30
74
 
31
- return moment.defineLocale('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
- LTS : 'LT:ss',
40
- L : 'DD.MM.YYYY',
41
- LL : 'D MMMM YYYY',
42
- LLL : 'D MMMM YYYY H:mm',
43
- LLLL : 'dddd, D MMMM YYYY H:mm'
44
- },
45
- calendar : {
46
- sameDay: '[azi la] LT',
47
- nextDay: '[mâine la] LT',
48
- nextWeek: 'dddd [la] LT',
49
- lastDay: '[ieri la] LT',
50
- lastWeek: '[fosta] dddd [la] LT',
51
- sameElse: 'L'
52
- },
53
- relativeTime : {
54
- future : 'peste %s',
55
- past : '%s în urmă',
56
- s : 'câteva secunde',
57
- m : 'un minut',
58
- mm : relativeTimeWithPlural,
59
- h : 'o oră',
60
- hh : relativeTimeWithPlural,
61
- d : 'o zi',
62
- dd : relativeTimeWithPlural,
63
- M : 'o lună',
64
- MM : relativeTimeWithPlural,
65
- y : 'un an',
66
- yy : relativeTimeWithPlural
67
- },
68
- week : {
69
- dow : 1, // Monday is the first day of the week.
70
- doy : 7 // The week that contains Jan 1st is the first week of the year.
71
- }
72
- });
73
- }));
75
+ return ro;
76
+
77
+ })));
@@ -1,102 +1,111 @@
1
- // moment.js locale configuration
2
- // locale : 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((typeof global !== 'undefined' ? global : this).moment); // node or other global
1
+ //! moment.js locale configuration
2
+ //! locale : Russian [ru]
3
+ //! author : Viktorminator : https://github.com/Viktorminator
4
+ //! Author : Menelion Elensúle : https://github.com/Oire
5
+ //! author : Коренберг Марк : https://github.com/socketpair
6
+
7
+ ;(function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+
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
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
20
+ var format = {
21
+ 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
22
+ 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
23
+ 'hh': 'час_часа_часов',
24
+ 'dd': 'день_дня_дней',
25
+ 'MM': 'месяц_месяца_месяцев',
26
+ 'yy': 'год_года_лет'
27
+ };
28
+ if (key === 'm') {
29
+ return withoutSuffix ? 'минута' : 'минуту';
13
30
  }
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]);
31
+ else {
32
+ return number + ' ' + plural(format[key], +number);
18
33
  }
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.defineLocale('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
- LTS : 'LT:ss',
85
- L : 'DD.MM.YYYY',
86
- LL : 'D MMMM YYYY г.',
87
- LLL : 'D MMMM YYYY г., LT',
88
- LLLL : 'dddd, D MMMM YYYY г., LT'
34
+ }
35
+ var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
36
+
37
+ // http://new.gramota.ru/spravka/rules/139-prop : § 103
38
+ // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
39
+ // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
40
+ var ru = moment.defineLocale('ru', {
41
+ months : {
42
+ format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
43
+ standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
44
+ },
45
+ monthsShort : {
46
+ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
47
+ format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
48
+ standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
49
+ },
50
+ weekdays : {
51
+ standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
52
+ format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
53
+ isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
54
+ },
55
+ weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
56
+ weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
57
+ monthsParse : monthsParse,
58
+ longMonthsParse : monthsParse,
59
+ shortMonthsParse : monthsParse,
60
+
61
+ // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
62
+ monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
63
+
64
+ // копия предыдущего
65
+ monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
66
+
67
+ // полные названия с падежами
68
+ monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
69
+
70
+ // Выражение, которое соотвествует только сокращённым формам
71
+ monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
72
+ longDateFormat : {
73
+ LT : 'H:mm',
74
+ LTS : 'H:mm:ss',
75
+ L : 'DD.MM.YYYY',
76
+ LL : 'D MMMM YYYY г.',
77
+ LLL : 'D MMMM YYYY г., H:mm',
78
+ LLLL : 'dddd, D MMMM YYYY г., H:mm'
79
+ },
80
+ calendar : {
81
+ sameDay: '[Сегодня в] LT',
82
+ nextDay: '[Завтра в] LT',
83
+ lastDay: '[Вчера в] LT',
84
+ nextWeek: function (now) {
85
+ if (now.week() !== this.week()) {
86
+ switch (this.day()) {
87
+ case 0:
88
+ return '[В следующее] dddd [в] LT';
89
+ case 1:
90
+ case 2:
91
+ case 4:
92
+ return '[В следующий] dddd [в] LT';
93
+ case 3:
94
+ case 5:
95
+ case 6:
96
+ return '[В следующую] dddd [в] LT';
97
+ }
98
+ } else {
99
+ if (this.day() === 2) {
100
+ return '[Во] dddd [в] LT';
101
+ } else {
102
+ return '[В] dddd [в] LT';
103
+ }
104
+ }
89
105
  },
90
- calendar : {
91
- sameDay: '[Сегодня в] LT',
92
- nextDay: '[Завтра в] LT',
93
- lastDay: '[Вчера в] LT',
94
- nextWeek: function () {
95
- return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
96
- },
97
- lastWeek: function (now) {
98
- if (now.week() !== this.week()) {
99
- switch (this.day()) {
106
+ lastWeek: function (now) {
107
+ if (now.week() !== this.week()) {
108
+ switch (this.day()) {
100
109
  case 0:
101
110
  return '[В прошлое] dddd [в] LT';
102
111
  case 1:
@@ -107,53 +116,51 @@
107
116
  case 5:
108
117
  case 6:
109
118
  return '[В прошлую] dddd [в] LT';
110
- }
111
- } else {
112
- if (this.day() === 2) {
113
- return '[Во] dddd [в] LT';
114
- } else {
115
- return '[В] dddd [в] LT';
116
- }
117
119
  }
118
- },
119
- sameElse: 'L'
120
- },
121
- relativeTime : {
122
- future : 'через %s',
123
- past : '%s назад',
124
- s : 'несколько секунд',
125
- m : relativeTimeWithPlural,
126
- mm : relativeTimeWithPlural,
127
- h : 'час',
128
- hh : relativeTimeWithPlural,
129
- d : 'день',
130
- dd : relativeTimeWithPlural,
131
- M : 'месяц',
132
- MM : relativeTimeWithPlural,
133
- y : 'год',
134
- yy : relativeTimeWithPlural
135
- },
136
-
137
- meridiemParse: /ночи|утра|дня|вечера/i,
138
- isPM : function (input) {
139
- return /^(дня|вечера)$/.test(input);
140
- },
141
-
142
- meridiem : function (hour, minute, isLower) {
143
- if (hour < 4) {
144
- return 'ночи';
145
- } else if (hour < 12) {
146
- return 'утра';
147
- } else if (hour < 17) {
148
- return 'дня';
149
120
  } else {
150
- return 'вечера';
121
+ if (this.day() === 2) {
122
+ return '[Во] dddd [в] LT';
123
+ } else {
124
+ return '[В] dddd [в] LT';
125
+ }
151
126
  }
152
127
  },
153
-
154
- ordinalParse: /\d{1,2}-(й|го|я)/,
155
- ordinal: function (number, period) {
156
- switch (period) {
128
+ sameElse: 'L'
129
+ },
130
+ relativeTime : {
131
+ future : 'через %s',
132
+ past : '%s назад',
133
+ s : 'несколько секунд',
134
+ ss : relativeTimeWithPlural,
135
+ m : relativeTimeWithPlural,
136
+ mm : relativeTimeWithPlural,
137
+ h : 'час',
138
+ hh : relativeTimeWithPlural,
139
+ d : 'день',
140
+ dd : relativeTimeWithPlural,
141
+ M : 'месяц',
142
+ MM : relativeTimeWithPlural,
143
+ y : 'год',
144
+ yy : relativeTimeWithPlural
145
+ },
146
+ meridiemParse: /ночи|утра|дня|вечера/i,
147
+ isPM : function (input) {
148
+ return /^(дня|вечера)$/.test(input);
149
+ },
150
+ meridiem : function (hour, minute, isLower) {
151
+ if (hour < 4) {
152
+ return 'ночи';
153
+ } else if (hour < 12) {
154
+ return 'утра';
155
+ } else if (hour < 17) {
156
+ return 'дня';
157
+ } else {
158
+ return 'вечера';
159
+ }
160
+ },
161
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
162
+ ordinal: function (number, period) {
163
+ switch (period) {
157
164
  case 'M':
158
165
  case 'd':
159
166
  case 'DDD':
@@ -165,12 +172,14 @@
165
172
  return number + '-я';
166
173
  default:
167
174
  return number;
168
- }
169
- },
170
-
171
- week : {
172
- dow : 1, // Monday is the first day of the week.
173
- doy : 7 // The week that contains Jan 1st is the first week of the year.
174
175
  }
175
- });
176
- }));
176
+ },
177
+ week : {
178
+ dow : 1, // Monday is the first day of the week.
179
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
180
+ }
181
+ });
182
+
183
+ return ru;
184
+
185
+ })));
@@ -0,0 +1,99 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Sindhi [sd]
3
+ //! author : Narain Sagar : https://github.com/narainsagar
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+ var months = [
14
+ 'جنوري',
15
+ 'فيبروري',
16
+ 'مارچ',
17
+ 'اپريل',
18
+ 'مئي',
19
+ 'جون',
20
+ 'جولاءِ',
21
+ 'آگسٽ',
22
+ 'سيپٽمبر',
23
+ 'آڪٽوبر',
24
+ 'نومبر',
25
+ 'ڊسمبر'
26
+ ];
27
+ var days = [
28
+ 'آچر',
29
+ 'سومر',
30
+ 'اڱارو',
31
+ 'اربع',
32
+ 'خميس',
33
+ 'جمع',
34
+ 'ڇنڇر'
35
+ ];
36
+
37
+ var sd = moment.defineLocale('sd', {
38
+ months : months,
39
+ monthsShort : months,
40
+ weekdays : days,
41
+ weekdaysShort : days,
42
+ weekdaysMin : days,
43
+ longDateFormat : {
44
+ LT : 'HH:mm',
45
+ LTS : 'HH:mm:ss',
46
+ L : 'DD/MM/YYYY',
47
+ LL : 'D MMMM YYYY',
48
+ LLL : 'D MMMM YYYY HH:mm',
49
+ LLLL : 'dddd، D MMMM YYYY HH:mm'
50
+ },
51
+ meridiemParse: /صبح|شام/,
52
+ isPM : function (input) {
53
+ return 'شام' === input;
54
+ },
55
+ meridiem : function (hour, minute, isLower) {
56
+ if (hour < 12) {
57
+ return 'صبح';
58
+ }
59
+ return 'شام';
60
+ },
61
+ calendar : {
62
+ sameDay : '[اڄ] LT',
63
+ nextDay : '[سڀاڻي] LT',
64
+ nextWeek : 'dddd [اڳين هفتي تي] LT',
65
+ lastDay : '[ڪالهه] LT',
66
+ lastWeek : '[گزريل هفتي] dddd [تي] LT',
67
+ sameElse : 'L'
68
+ },
69
+ relativeTime : {
70
+ future : '%s پوء',
71
+ past : '%s اڳ',
72
+ s : 'چند سيڪنڊ',
73
+ ss : '%d سيڪنڊ',
74
+ m : 'هڪ منٽ',
75
+ mm : '%d منٽ',
76
+ h : 'هڪ ڪلاڪ',
77
+ hh : '%d ڪلاڪ',
78
+ d : 'هڪ ڏينهن',
79
+ dd : '%d ڏينهن',
80
+ M : 'هڪ مهينو',
81
+ MM : '%d مهينا',
82
+ y : 'هڪ سال',
83
+ yy : '%d سال'
84
+ },
85
+ preparse: function (string) {
86
+ return string.replace(/،/g, ',');
87
+ },
88
+ postformat: function (string) {
89
+ return string.replace(/,/g, '،');
90
+ },
91
+ week : {
92
+ dow : 1, // Monday is the first day of the week.
93
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
94
+ }
95
+ });
96
+
97
+ return sd;
98
+
99
+ })));
@@ -0,0 +1,62 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Northern Sami [se]
3
+ //! authors : Bård Rolstad Henriksen : https://github.com/karamell
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
11
+
12
+
13
+
14
+ var se = moment.defineLocale('se', {
15
+ months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
16
+ monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
17
+ weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
18
+ weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
19
+ weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD.MM.YYYY',
24
+ LL : 'MMMM D. [b.] YYYY',
25
+ LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
26
+ LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[otne ti] LT',
30
+ nextDay: '[ihttin ti] LT',
31
+ nextWeek: 'dddd [ti] LT',
32
+ lastDay: '[ikte ti] LT',
33
+ lastWeek: '[ovddit] dddd [ti] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime : {
37
+ future : '%s geažes',
38
+ past : 'maŋit %s',
39
+ s : 'moadde sekunddat',
40
+ ss: '%d sekunddat',
41
+ m : 'okta minuhta',
42
+ mm : '%d minuhtat',
43
+ h : 'okta diimmu',
44
+ hh : '%d diimmut',
45
+ d : 'okta beaivi',
46
+ dd : '%d beaivvit',
47
+ M : 'okta mánnu',
48
+ MM : '%d mánut',
49
+ y : 'okta jahki',
50
+ yy : '%d jagit'
51
+ },
52
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
53
+ ordinal : '%d.',
54
+ week : {
55
+ dow : 1, // Monday is the first day of the week.
56
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
57
+ }
58
+ });
59
+
60
+ return se;
61
+
62
+ })));