momentjs-rails 2.29.1 → 2.29.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1g/1giZXIzjQTIHLJ30if0Cxp6LHLNLyLvCt66HPyr7S9Q.cache +0 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4l/4laR_NL9p0jWaBh-kVGkzBwhRp0MzmdAkBI_mccpvxQ.cache +2 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5ACbsliWc2erDYoI0QUGjRXJIXW_JRiuIjLhVhIZc88.cache +0 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5h/5h-ruujSKgsZz79GwDnzkAalkJoWGzpepGc2xuQDVsA.cache +1 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5q/5qkRnQf0206eJO9YiwkpxUs7yZ4f50rNMuCFJaryc0c.cache +2 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Z/8ZS9j7aGFdwDIFga-3KoPCkVogPmZ-NekN5uBOSE5QU.cache +3 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8e/8eQxu2zgyp7bsTrrVsa4QKmGNNNJ5YVMc2HsybmUamg.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ai/AiuMstvaIxiBhMWFk2cj5HVrvdG-c98_PaheKtkPYj0.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IN/INM03spFgth_-zzNy3cfUv3ATbaBRjFWWj1kGQYmcTA.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MY/MYzGrw0IXUX2kX7p7ewfG8d7UsRV5X17R5hdQq8CTZI.cache +3 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yw/YwG9q2kyDHA7PseIrAE66Qe2IFNrhUtDbdgulyvgEfI.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fw/fwDh4S50V5wK-MsABSBJ2ghx6XKATSRASedKP69FwnA.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lwVIcNwb-0tSyXePavJPzb_NJwTR5_Y-qNk_rkqyfLY.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wq/wqYc1aiYr9phcM5WCWD3P8qxwERbfkuO8u-ZrsLaiPI.cache +1 -0
  18. data/vendor/assets/javascripts/moment/af.js +77 -66
  19. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  20. data/vendor/assets/javascripts/moment/ar-kw.js +60 -49
  21. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  22. data/vendor/assets/javascripts/moment/ar-ma.js +60 -49
  23. data/vendor/assets/javascripts/moment/ar-sa.js +109 -98
  24. data/vendor/assets/javascripts/moment/ar-tn.js +60 -49
  25. data/vendor/assets/javascripts/moment/ar.js +191 -180
  26. data/vendor/assets/javascripts/moment/az.js +106 -95
  27. data/vendor/assets/javascripts/moment/be.js +138 -127
  28. data/vendor/assets/javascripts/moment/bg.js +91 -80
  29. data/vendor/assets/javascripts/moment/bm.js +57 -47
  30. data/vendor/assets/javascripts/moment/bn-bd.js +131 -120
  31. data/vendor/assets/javascripts/moment/bn.js +123 -112
  32. data/vendor/assets/javascripts/moment/bo.js +127 -116
  33. data/vendor/assets/javascripts/moment/br.js +162 -151
  34. data/vendor/assets/javascripts/moment/bs.js +150 -139
  35. data/vendor/assets/javascripts/moment/ca.js +94 -83
  36. data/vendor/assets/javascripts/moment/cs.js +172 -161
  37. data/vendor/assets/javascripts/moment/cv.js +67 -56
  38. data/vendor/assets/javascripts/moment/cy.js +101 -90
  39. data/vendor/assets/javascripts/moment/da.js +59 -48
  40. data/vendor/assets/javascripts/moment/de-at.js +81 -70
  41. data/vendor/assets/javascripts/moment/de-ch.js +80 -71
  42. data/vendor/assets/javascripts/moment/de.js +81 -70
  43. data/vendor/assets/javascripts/moment/dv.js +95 -84
  44. data/vendor/assets/javascripts/moment/el.js +107 -96
  45. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  46. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  47. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  48. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  49. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  50. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  51. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  52. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  53. data/vendor/assets/javascripts/moment/eo.js +71 -60
  54. data/vendor/assets/javascripts/moment/es-do.js +105 -94
  55. data/vendor/assets/javascripts/moment/es-mx.js +106 -95
  56. data/vendor/assets/javascripts/moment/es-us.js +105 -94
  57. data/vendor/assets/javascripts/moment/es.js +106 -95
  58. data/vendor/assets/javascripts/moment/et.js +81 -70
  59. data/vendor/assets/javascripts/moment/eu.js +69 -58
  60. data/vendor/assets/javascripts/moment/fa.js +115 -104
  61. data/vendor/assets/javascripts/moment/fi.js +125 -114
  62. data/vendor/assets/javascripts/moment/fil.js +63 -52
  63. data/vendor/assets/javascripts/moment/fo.js +61 -50
  64. data/vendor/assets/javascripts/moment/fr-ca.js +74 -63
  65. data/vendor/assets/javascripts/moment/fr-ch.js +78 -67
  66. data/vendor/assets/javascripts/moment/fr.js +107 -96
  67. data/vendor/assets/javascripts/moment/fy.js +81 -70
  68. data/vendor/assets/javascripts/moment/ga.js +100 -89
  69. data/vendor/assets/javascripts/moment/gd.js +100 -89
  70. data/vendor/assets/javascripts/moment/gl.js +76 -65
  71. data/vendor/assets/javascripts/moment/gom-deva.js +127 -116
  72. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  73. data/vendor/assets/javascripts/moment/gu.js +126 -115
  74. data/vendor/assets/javascripts/moment/he.js +93 -82
  75. data/vendor/assets/javascripts/moment/hi.js +161 -150
  76. data/vendor/assets/javascripts/moment/hr.js +152 -141
  77. data/vendor/assets/javascripts/moment/hu.js +119 -108
  78. data/vendor/assets/javascripts/moment/hy-am.js +94 -83
  79. data/vendor/assets/javascripts/moment/id.js +81 -70
  80. data/vendor/assets/javascripts/moment/is.js +137 -126
  81. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  82. data/vendor/assets/javascripts/moment/it.js +106 -95
  83. data/vendor/assets/javascripts/moment/ja.js +146 -135
  84. data/vendor/assets/javascripts/moment/jv.js +81 -70
  85. data/vendor/assets/javascripts/moment/ka.js +92 -81
  86. data/vendor/assets/javascripts/moment/kk.js +87 -76
  87. data/vendor/assets/javascripts/moment/km.js +107 -96
  88. data/vendor/assets/javascripts/moment/kn.js +128 -117
  89. data/vendor/assets/javascripts/moment/ko.js +80 -69
  90. data/vendor/assets/javascripts/moment/ku.js +123 -112
  91. data/vendor/assets/javascripts/moment/ky.js +89 -78
  92. data/vendor/assets/javascripts/moment/lb.js +132 -121
  93. data/vendor/assets/javascripts/moment/lo.js +71 -60
  94. data/vendor/assets/javascripts/moment/lt.js +125 -114
  95. data/vendor/assets/javascripts/moment/lv.js +96 -85
  96. data/vendor/assets/javascripts/moment/me.js +120 -109
  97. data/vendor/assets/javascripts/moment/mi.js +65 -54
  98. data/vendor/assets/javascripts/moment/mk.js +90 -78
  99. data/vendor/assets/javascripts/moment/ml.js +86 -75
  100. data/vendor/assets/javascripts/moment/mn.js +100 -89
  101. data/vendor/assets/javascripts/moment/mr.js +203 -192
  102. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  103. data/vendor/assets/javascripts/moment/ms.js +81 -70
  104. data/vendor/assets/javascripts/moment/mt.js +61 -50
  105. data/vendor/assets/javascripts/moment/my.js +93 -82
  106. data/vendor/assets/javascripts/moment/nb.js +65 -54
  107. data/vendor/assets/javascripts/moment/ne.js +125 -114
  108. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  109. data/vendor/assets/javascripts/moment/nl.js +105 -94
  110. data/vendor/assets/javascripts/moment/nn.js +65 -54
  111. data/vendor/assets/javascripts/moment/oc-lnc.js +85 -74
  112. data/vendor/assets/javascripts/moment/pa-in.js +126 -115
  113. data/vendor/assets/javascripts/moment/pl.js +137 -126
  114. data/vendor/assets/javascripts/moment/pt-br.js +62 -51
  115. data/vendor/assets/javascripts/moment/pt.js +67 -56
  116. data/vendor/assets/javascripts/moment/ro.js +77 -66
  117. data/vendor/assets/javascripts/moment/ru.js +197 -186
  118. data/vendor/assets/javascripts/moment/sd.js +86 -75
  119. data/vendor/assets/javascripts/moment/se.js +63 -52
  120. data/vendor/assets/javascripts/moment/si.js +74 -63
  121. data/vendor/assets/javascripts/moment/sk.js +145 -134
  122. data/vendor/assets/javascripts/moment/sl.js +171 -160
  123. data/vendor/assets/javascripts/moment/sq.js +69 -58
  124. data/vendor/assets/javascripts/moment/sr-cyrl.js +117 -106
  125. data/vendor/assets/javascripts/moment/sr.js +119 -108
  126. data/vendor/assets/javascripts/moment/ss.js +88 -77
  127. data/vendor/assets/javascripts/moment/sv.js +74 -63
  128. data/vendor/assets/javascripts/moment/sw.js +60 -49
  129. data/vendor/assets/javascripts/moment/ta.js +134 -123
  130. data/vendor/assets/javascripts/moment/te.js +92 -81
  131. data/vendor/assets/javascripts/moment/tet.js +72 -61
  132. data/vendor/assets/javascripts/moment/tg.js +119 -108
  133. data/vendor/assets/javascripts/moment/th.js +70 -59
  134. data/vendor/assets/javascripts/moment/tk.js +96 -85
  135. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  136. data/vendor/assets/javascripts/moment/tlh.js +123 -112
  137. data/vendor/assets/javascripts/moment/tr.js +110 -99
  138. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  139. data/vendor/assets/javascripts/moment/tzm-latn.js +59 -48
  140. data/vendor/assets/javascripts/moment/tzm.js +59 -48
  141. data/vendor/assets/javascripts/moment/ug-cn.js +115 -104
  142. data/vendor/assets/javascripts/moment/uk.js +158 -147
  143. data/vendor/assets/javascripts/moment/ur.js +86 -75
  144. data/vendor/assets/javascripts/moment/uz-latn.js +59 -48
  145. data/vendor/assets/javascripts/moment/uz.js +57 -46
  146. data/vendor/assets/javascripts/moment/vi.js +84 -73
  147. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  148. data/vendor/assets/javascripts/moment/yo.js +59 -48
  149. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  150. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  151. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  152. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  153. data/vendor/assets/javascripts/moment.js +4961 -4953
  154. metadata +30 -2
@@ -4,138 +4,149 @@
4
4
  //! author: Praleska: http://praleska.pro/
5
5
  //! Author : Menelion Elensúle : https://github.com/Oire
6
6
 
7
- import moment from '../moment';
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';
8
13
 
9
- function plural(word, num) {
10
- var forms = word.split('_');
11
- return num % 10 === 1 && num % 100 !== 11
12
- ? forms[0]
13
- : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
14
- ? forms[1]
15
- : forms[2];
16
- }
17
- function relativeTimeWithPlural(number, withoutSuffix, key) {
18
- var format = {
19
- ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
20
- mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
21
- hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
22
- dd: 'дзень_дні_дзён',
23
- MM: 'месяц_месяцы_месяцаў',
24
- yy: 'год_гады_гадоў',
25
- };
26
- if (key === 'm') {
27
- return withoutSuffix ? 'хвіліна' : 'хвіліну';
28
- } else if (key === 'h') {
29
- return withoutSuffix ? 'гадзіна' : 'гадзіну';
30
- } else {
31
- return number + ' ' + plural(format[key], +number);
14
+ //! moment.js locale configuration
15
+
16
+ function plural(word, num) {
17
+ var forms = word.split('_');
18
+ return num % 10 === 1 && num % 100 !== 11
19
+ ? forms[0]
20
+ : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
21
+ ? forms[1]
22
+ : forms[2];
23
+ }
24
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
25
+ var format = {
26
+ ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
27
+ mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
28
+ hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
29
+ dd: 'дзень_дні_дзён',
30
+ MM: 'месяц_месяцы_месяцаў',
31
+ yy: 'год_гады_гадоў',
32
+ };
33
+ if (key === 'm') {
34
+ return withoutSuffix ? 'хвіліна' : 'хвіліну';
35
+ } else if (key === 'h') {
36
+ return withoutSuffix ? 'гадзіна' : 'гадзіну';
37
+ } else {
38
+ return number + ' ' + plural(format[key], +number);
39
+ }
32
40
  }
33
- }
34
41
 
35
- export default moment.defineLocale('be', {
36
- months: {
37
- format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
38
- '_'
39
- ),
40
- standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
41
- '_'
42
- ),
43
- },
44
- monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
45
- '_'
46
- ),
47
- weekdays: {
48
- format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
49
- '_'
50
- ),
51
- standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
42
+ var be = moment.defineLocale('be', {
43
+ months: {
44
+ format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
45
+ '_'
46
+ ),
47
+ standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
48
+ '_'
49
+ ),
50
+ },
51
+ monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
52
52
  '_'
53
53
  ),
54
- isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
55
- },
56
- weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
57
- weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
58
- longDateFormat: {
59
- LT: 'HH:mm',
60
- LTS: 'HH:mm:ss',
61
- L: 'DD.MM.YYYY',
62
- LL: 'D MMMM YYYY г.',
63
- LLL: 'D MMMM YYYY г., HH:mm',
64
- LLLL: 'dddd, D MMMM YYYY г., HH:mm',
65
- },
66
- calendar: {
67
- sameDay: '[Сёння ў] LT',
68
- nextDay: '[Заўтра ў] LT',
69
- lastDay: '[Учора ў] LT',
70
- nextWeek: function () {
71
- return '[У] dddd [ў] LT';
54
+ weekdays: {
55
+ format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
56
+ '_'
57
+ ),
58
+ standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
59
+ '_'
60
+ ),
61
+ isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
62
+ },
63
+ weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
64
+ weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
65
+ longDateFormat: {
66
+ LT: 'HH:mm',
67
+ LTS: 'HH:mm:ss',
68
+ L: 'DD.MM.YYYY',
69
+ LL: 'D MMMM YYYY г.',
70
+ LLL: 'D MMMM YYYY г., HH:mm',
71
+ LLLL: 'dddd, D MMMM YYYY г., HH:mm',
72
72
  },
73
- lastWeek: function () {
74
- switch (this.day()) {
75
- case 0:
76
- case 3:
77
- case 5:
78
- case 6:
79
- return '[У мінулую] dddd [ў] LT';
80
- case 1:
81
- case 2:
82
- case 4:
83
- return '[У мінулы] dddd [ў] LT';
73
+ calendar: {
74
+ sameDay: '[Сёння ў] LT',
75
+ nextDay: '[Заўтра ў] LT',
76
+ lastDay: '[Учора ў] LT',
77
+ nextWeek: function () {
78
+ return '[У] dddd [ў] LT';
79
+ },
80
+ lastWeek: function () {
81
+ switch (this.day()) {
82
+ case 0:
83
+ case 3:
84
+ case 5:
85
+ case 6:
86
+ return '[У мінулую] dddd [ў] LT';
87
+ case 1:
88
+ case 2:
89
+ case 4:
90
+ return '[У мінулы] dddd [ў] LT';
91
+ }
92
+ },
93
+ sameElse: 'L',
94
+ },
95
+ relativeTime: {
96
+ future: 'праз %s',
97
+ past: '%s таму',
98
+ s: 'некалькі секунд',
99
+ m: relativeTimeWithPlural,
100
+ mm: relativeTimeWithPlural,
101
+ h: relativeTimeWithPlural,
102
+ hh: relativeTimeWithPlural,
103
+ d: 'дзень',
104
+ dd: relativeTimeWithPlural,
105
+ M: 'месяц',
106
+ MM: relativeTimeWithPlural,
107
+ y: 'год',
108
+ yy: relativeTimeWithPlural,
109
+ },
110
+ meridiemParse: /ночы|раніцы|дня|вечара/,
111
+ isPM: function (input) {
112
+ return /^(дня|вечара)$/.test(input);
113
+ },
114
+ meridiem: function (hour, minute, isLower) {
115
+ if (hour < 4) {
116
+ return 'ночы';
117
+ } else if (hour < 12) {
118
+ return 'раніцы';
119
+ } else if (hour < 17) {
120
+ return 'дня';
121
+ } else {
122
+ return 'вечара';
84
123
  }
85
124
  },
86
- sameElse: 'L',
87
- },
88
- relativeTime: {
89
- future: 'праз %s',
90
- past: '%s таму',
91
- s: 'некалькі секунд',
92
- m: relativeTimeWithPlural,
93
- mm: relativeTimeWithPlural,
94
- h: relativeTimeWithPlural,
95
- hh: relativeTimeWithPlural,
96
- d: 'дзень',
97
- dd: relativeTimeWithPlural,
98
- M: 'месяц',
99
- MM: relativeTimeWithPlural,
100
- y: 'год',
101
- yy: relativeTimeWithPlural,
102
- },
103
- meridiemParse: /ночы|раніцы|дня|вечара/,
104
- isPM: function (input) {
105
- return /^(дня|вечара)$/.test(input);
106
- },
107
- meridiem: function (hour, minute, isLower) {
108
- if (hour < 4) {
109
- return 'ночы';
110
- } else if (hour < 12) {
111
- return 'раніцы';
112
- } else if (hour < 17) {
113
- return 'дня';
114
- } else {
115
- return 'вечара';
116
- }
117
- },
118
- dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
119
- ordinal: function (number, period) {
120
- switch (period) {
121
- case 'M':
122
- case 'd':
123
- case 'DDD':
124
- case 'w':
125
- case 'W':
126
- return (number % 10 === 2 || number % 10 === 3) &&
127
- number % 100 !== 12 &&
128
- number % 100 !== 13
129
- ? number + '-і'
130
- : number + '-ы';
131
- case 'D':
132
- return number + '-га';
133
- default:
134
- return number;
135
- }
136
- },
137
- week: {
138
- dow: 1, // Monday is the first day of the week.
139
- doy: 7, // The week that contains Jan 7th is the first week of the year.
140
- },
141
- });
125
+ dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
126
+ ordinal: function (number, period) {
127
+ switch (period) {
128
+ case 'M':
129
+ case 'd':
130
+ case 'DDD':
131
+ case 'w':
132
+ case 'W':
133
+ return (number % 10 === 2 || number % 10 === 3) &&
134
+ number % 100 !== 12 &&
135
+ number % 100 !== 13
136
+ ? number + '-і'
137
+ : number + '';
138
+ case 'D':
139
+ return number + '-га';
140
+ default:
141
+ return number;
142
+ }
143
+ },
144
+ week: {
145
+ dow: 1, // Monday is the first day of the week.
146
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
147
+ },
148
+ });
149
+
150
+ return be;
151
+
152
+ })));
@@ -2,86 +2,97 @@
2
2
  //! locale : Bulgarian [bg]
3
3
  //! author : Krasen Borisov : https://github.com/kraz
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- export default moment.defineLocale('bg', {
8
- months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
9
- '_'
10
- ),
11
- monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
12
- weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
13
- '_'
14
- ),
15
- weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
16
- weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
17
- longDateFormat: {
18
- LT: 'H:mm',
19
- LTS: 'H:mm:ss',
20
- L: 'D.MM.YYYY',
21
- LL: 'D MMMM YYYY',
22
- LLL: 'D MMMM YYYY H:mm',
23
- LLLL: 'dddd, D MMMM YYYY H:mm',
24
- },
25
- calendar: {
26
- sameDay: '[Днес в] LT',
27
- nextDay: '[Утре в] LT',
28
- nextWeek: 'dddd [в] LT',
29
- lastDay: '[Вчера в] LT',
30
- lastWeek: function () {
31
- switch (this.day()) {
32
- case 0:
33
- case 3:
34
- case 6:
35
- return '[Миналата] dddd [в] LT';
36
- case 1:
37
- case 2:
38
- case 4:
39
- case 5:
40
- return '[Миналия] dddd [в] LT';
12
+ //! moment.js locale configuration
13
+
14
+ var bg = moment.defineLocale('bg', {
15
+ months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
19
+ weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
20
+ '_'
21
+ ),
22
+ weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
23
+ weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
24
+ longDateFormat: {
25
+ LT: 'H:mm',
26
+ LTS: 'H:mm:ss',
27
+ L: 'D.MM.YYYY',
28
+ LL: 'D MMMM YYYY',
29
+ LLL: 'D MMMM YYYY H:mm',
30
+ LLLL: 'dddd, D MMMM YYYY H:mm',
31
+ },
32
+ calendar: {
33
+ sameDay: '[Днес в] LT',
34
+ nextDay: '[Утре в] LT',
35
+ nextWeek: 'dddd [в] LT',
36
+ lastDay: '[Вчера в] LT',
37
+ lastWeek: function () {
38
+ switch (this.day()) {
39
+ case 0:
40
+ case 3:
41
+ case 6:
42
+ return '[Миналата] dddd [в] LT';
43
+ case 1:
44
+ case 2:
45
+ case 4:
46
+ case 5:
47
+ return '[Миналия] dddd [в] LT';
48
+ }
49
+ },
50
+ sameElse: 'L',
51
+ },
52
+ relativeTime: {
53
+ future: 'след %s',
54
+ past: 'преди %s',
55
+ s: 'няколко секунди',
56
+ ss: '%d секунди',
57
+ m: 'минута',
58
+ mm: '%d минути',
59
+ h: 'час',
60
+ hh: '%d часа',
61
+ d: 'ден',
62
+ dd: '%d дена',
63
+ w: 'седмица',
64
+ ww: '%d седмици',
65
+ M: 'месец',
66
+ MM: '%d месеца',
67
+ y: 'година',
68
+ yy: '%d години',
69
+ },
70
+ dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
71
+ ordinal: function (number) {
72
+ var lastDigit = number % 10,
73
+ last2Digits = number % 100;
74
+ if (number === 0) {
75
+ return number + '-ев';
76
+ } else if (last2Digits === 0) {
77
+ return number + '-ен';
78
+ } else if (last2Digits > 10 && last2Digits < 20) {
79
+ return number + '-ти';
80
+ } else if (lastDigit === 1) {
81
+ return number + '-ви';
82
+ } else if (lastDigit === 2) {
83
+ return number + '-ри';
84
+ } else if (lastDigit === 7 || lastDigit === 8) {
85
+ return number + '-ми';
86
+ } else {
87
+ return number + '-ти';
41
88
  }
42
89
  },
43
- sameElse: 'L',
44
- },
45
- relativeTime: {
46
- future: 'след %s',
47
- past: 'преди %s',
48
- s: 'няколко секунди',
49
- ss: '%d секунди',
50
- m: 'минута',
51
- mm: '%d минути',
52
- h: 'час',
53
- hh: '%d часа',
54
- d: 'ден',
55
- dd: '%d дена',
56
- w: 'седмица',
57
- ww: '%d седмици',
58
- M: 'месец',
59
- MM: '%d месеца',
60
- y: 'година',
61
- yy: '%d години',
62
- },
63
- dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
64
- ordinal: function (number) {
65
- var lastDigit = number % 10,
66
- last2Digits = number % 100;
67
- if (number === 0) {
68
- return number + '-ев';
69
- } else if (last2Digits === 0) {
70
- return number + '-ен';
71
- } else if (last2Digits > 10 && last2Digits < 20) {
72
- return number + '-ти';
73
- } else if (lastDigit === 1) {
74
- return number + '-ви';
75
- } else if (lastDigit === 2) {
76
- return number + '-ри';
77
- } else if (lastDigit === 7 || lastDigit === 8) {
78
- return number + '-ми';
79
- } else {
80
- return number + '-ти';
81
- }
82
- },
83
- week: {
84
- dow: 1, // Monday is the first day of the week.
85
- doy: 7, // The week that contains Jan 7th is the first week of the year.
86
- },
87
- });
90
+ week: {
91
+ dow: 1, // Monday is the first day of the week.
92
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
93
+ },
94
+ });
95
+
96
+ return bg;
97
+
98
+ })));
@@ -1,52 +1,62 @@
1
1
  //! moment.js locale configuration
2
2
  //! locale : Bambara [bm]
3
3
  //! author : Estelle Comment : https://github.com/estellecomment
4
- // Language contact person : Abdoufata Kane : https://github.com/abdoufata
5
4
 
6
- import moment from '../moment';
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';
7
11
 
8
- export default moment.defineLocale('bm', {
9
- months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
10
- '_'
11
- ),
12
- monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
13
- weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
14
- weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
15
- weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
16
- longDateFormat: {
17
- LT: 'HH:mm',
18
- LTS: 'HH:mm:ss',
19
- L: 'DD/MM/YYYY',
20
- LL: 'MMMM [tile] D [san] YYYY',
21
- LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
22
- LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
23
- },
24
- calendar: {
25
- sameDay: '[Bi lɛrɛ] LT',
26
- nextDay: '[Sini lɛrɛ] LT',
27
- nextWeek: 'dddd [don lɛrɛ] LT',
28
- lastDay: '[Kunu lɛrɛ] LT',
29
- lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
30
- sameElse: 'L',
31
- },
32
- relativeTime: {
33
- future: '%s kɔnɔ',
34
- past: 'a bɛ %s bɔ',
35
- s: 'sanga dama dama',
36
- ss: 'sekondi %d',
37
- m: 'miniti kelen',
38
- mm: 'miniti %d',
39
- h: 'lɛrɛ kelen',
40
- hh: 'lɛrɛ %d',
41
- d: 'tile kelen',
42
- dd: 'tile %d',
43
- M: 'kalo kelen',
44
- MM: 'kalo %d',
45
- y: 'san kelen',
46
- yy: 'san %d',
47
- },
48
- week: {
49
- dow: 1, // Monday is the first day of the week.
50
- doy: 4, // The week that contains Jan 4th is the first week of the year.
51
- },
52
- });
12
+ //! moment.js locale configuration
13
+
14
+ var bm = moment.defineLocale('bm', {
15
+ months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
19
+ weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
20
+ weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
21
+ weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
22
+ longDateFormat: {
23
+ LT: 'HH:mm',
24
+ LTS: 'HH:mm:ss',
25
+ L: 'DD/MM/YYYY',
26
+ LL: 'MMMM [tile] D [san] YYYY',
27
+ LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
28
+ LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
29
+ },
30
+ calendar: {
31
+ sameDay: '[Bi lɛrɛ] LT',
32
+ nextDay: '[Sini lɛrɛ] LT',
33
+ nextWeek: 'dddd [don lɛrɛ] LT',
34
+ lastDay: '[Kunu lɛrɛ] LT',
35
+ lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
36
+ sameElse: 'L',
37
+ },
38
+ relativeTime: {
39
+ future: '%s kɔnɔ',
40
+ past: 'a %s bɔ',
41
+ s: 'sanga dama dama',
42
+ ss: 'sekondi %d',
43
+ m: 'miniti kelen',
44
+ mm: 'miniti %d',
45
+ h: 'lɛrɛ kelen',
46
+ hh: 'lɛrɛ %d',
47
+ d: 'tile kelen',
48
+ dd: 'tile %d',
49
+ M: 'kalo kelen',
50
+ MM: 'kalo %d',
51
+ y: 'san kelen',
52
+ yy: 'san %d',
53
+ },
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 bm;
61
+
62
+ })));