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
@@ -3,133 +3,144 @@
3
3
  //! author : mweimerskirch : https://github.com/mweimerskirch
4
4
  //! author : David Raison : https://github.com/kwisatz
5
5
 
6
- import moment from '../moment';
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';
7
12
 
8
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
9
- var format = {
10
- m: ['eng Minutt', 'enger Minutt'],
11
- h: ['eng Stonn', 'enger Stonn'],
12
- d: ['een Dag', 'engem Dag'],
13
- M: ['ee Mount', 'engem Mount'],
14
- y: ['ee Joer', 'engem Joer'],
15
- };
16
- return withoutSuffix ? format[key][0] : format[key][1];
17
- }
18
- function processFutureTime(string) {
19
- var number = string.substr(0, string.indexOf(' '));
20
- if (eifelerRegelAppliesToNumber(number)) {
21
- return 'a ' + string;
22
- }
23
- return 'an ' + string;
24
- }
25
- function processPastTime(string) {
26
- var number = string.substr(0, string.indexOf(' '));
27
- if (eifelerRegelAppliesToNumber(number)) {
28
- return 'viru ' + string;
13
+ //! moment.js locale configuration
14
+
15
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
+ var format = {
17
+ m: ['eng Minutt', 'enger Minutt'],
18
+ h: ['eng Stonn', 'enger Stonn'],
19
+ d: ['een Dag', 'engem Dag'],
20
+ M: ['ee Mount', 'engem Mount'],
21
+ y: ['ee Joer', 'engem Joer'],
22
+ };
23
+ return withoutSuffix ? format[key][0] : format[key][1];
29
24
  }
30
- return 'virun ' + string;
31
- }
32
- /**
33
- * Returns true if the word before the given number loses the '-n' ending.
34
- * e.g. 'an 10 Deeg' but 'a 5 Deeg'
35
- *
36
- * @param number {integer}
37
- * @returns {boolean}
38
- */
39
- function eifelerRegelAppliesToNumber(number) {
40
- number = parseInt(number, 10);
41
- if (isNaN(number)) {
42
- return false;
25
+ function processFutureTime(string) {
26
+ var number = string.substr(0, string.indexOf(' '));
27
+ if (eifelerRegelAppliesToNumber(number)) {
28
+ return 'a ' + string;
29
+ }
30
+ return 'an ' + string;
43
31
  }
44
- if (number < 0) {
45
- // Negative Number --> always true
46
- return true;
47
- } else if (number < 10) {
48
- // Only 1 digit
49
- if (4 <= number && number <= 7) {
50
- return true;
32
+ function processPastTime(string) {
33
+ var number = string.substr(0, string.indexOf(' '));
34
+ if (eifelerRegelAppliesToNumber(number)) {
35
+ return 'viru ' + string;
51
36
  }
52
- return false;
53
- } else if (number < 100) {
54
- // 2 digits
55
- var lastDigit = number % 10,
56
- firstDigit = number / 10;
57
- if (lastDigit === 0) {
58
- return eifelerRegelAppliesToNumber(firstDigit);
37
+ return 'virun ' + string;
38
+ }
39
+ /**
40
+ * Returns true if the word before the given number loses the '-n' ending.
41
+ * e.g. 'an 10 Deeg' but 'a 5 Deeg'
42
+ *
43
+ * @param number {integer}
44
+ * @returns {boolean}
45
+ */
46
+ function eifelerRegelAppliesToNumber(number) {
47
+ number = parseInt(number, 10);
48
+ if (isNaN(number)) {
49
+ return false;
59
50
  }
60
- return eifelerRegelAppliesToNumber(lastDigit);
61
- } else if (number < 10000) {
62
- // 3 or 4 digits --> recursively check first digit
63
- while (number >= 10) {
64
- number = number / 10;
51
+ if (number < 0) {
52
+ // Negative Number --> always true
53
+ return true;
54
+ } else if (number < 10) {
55
+ // Only 1 digit
56
+ if (4 <= number && number <= 7) {
57
+ return true;
58
+ }
59
+ return false;
60
+ } else if (number < 100) {
61
+ // 2 digits
62
+ var lastDigit = number % 10,
63
+ firstDigit = number / 10;
64
+ if (lastDigit === 0) {
65
+ return eifelerRegelAppliesToNumber(firstDigit);
66
+ }
67
+ return eifelerRegelAppliesToNumber(lastDigit);
68
+ } else if (number < 10000) {
69
+ // 3 or 4 digits --> recursively check first digit
70
+ while (number >= 10) {
71
+ number = number / 10;
72
+ }
73
+ return eifelerRegelAppliesToNumber(number);
74
+ } else {
75
+ // Anything larger than 4 digits: recursively check first n-3 digits
76
+ number = number / 1000;
77
+ return eifelerRegelAppliesToNumber(number);
65
78
  }
66
- return eifelerRegelAppliesToNumber(number);
67
- } else {
68
- // Anything larger than 4 digits: recursively check first n-3 digits
69
- number = number / 1000;
70
- return eifelerRegelAppliesToNumber(number);
71
79
  }
72
- }
73
80
 
74
- export default moment.defineLocale('lb', {
75
- months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
76
- '_'
77
- ),
78
- monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
79
- '_'
80
- ),
81
- monthsParseExact: true,
82
- weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
83
- '_'
84
- ),
85
- weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
86
- weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
87
- weekdaysParseExact: true,
88
- longDateFormat: {
89
- LT: 'H:mm [Auer]',
90
- LTS: 'H:mm:ss [Auer]',
91
- L: 'DD.MM.YYYY',
92
- LL: 'D. MMMM YYYY',
93
- LLL: 'D. MMMM YYYY H:mm [Auer]',
94
- LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
95
- },
96
- calendar: {
97
- sameDay: '[Haut um] LT',
98
- sameElse: 'L',
99
- nextDay: '[Muer um] LT',
100
- nextWeek: 'dddd [um] LT',
101
- lastDay: '[Gëschter um] LT',
102
- lastWeek: function () {
103
- // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
104
- switch (this.day()) {
105
- case 2:
106
- case 4:
107
- return '[Leschten] dddd [um] LT';
108
- default:
109
- return '[Leschte] dddd [um] LT';
110
- }
81
+ var lb = moment.defineLocale('lb', {
82
+ months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
83
+ '_'
84
+ ),
85
+ monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
86
+ '_'
87
+ ),
88
+ monthsParseExact: true,
89
+ weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
90
+ '_'
91
+ ),
92
+ weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
93
+ weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
94
+ weekdaysParseExact: true,
95
+ longDateFormat: {
96
+ LT: 'H:mm [Auer]',
97
+ LTS: 'H:mm:ss [Auer]',
98
+ L: 'DD.MM.YYYY',
99
+ LL: 'D. MMMM YYYY',
100
+ LLL: 'D. MMMM YYYY H:mm [Auer]',
101
+ LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
102
+ },
103
+ calendar: {
104
+ sameDay: '[Haut um] LT',
105
+ sameElse: 'L',
106
+ nextDay: '[Muer um] LT',
107
+ nextWeek: 'dddd [um] LT',
108
+ lastDay: '[Gëschter um] LT',
109
+ lastWeek: function () {
110
+ // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
111
+ switch (this.day()) {
112
+ case 2:
113
+ case 4:
114
+ return '[Leschten] dddd [um] LT';
115
+ default:
116
+ return '[Leschte] dddd [um] LT';
117
+ }
118
+ },
119
+ },
120
+ relativeTime: {
121
+ future: processFutureTime,
122
+ past: processPastTime,
123
+ s: 'e puer Sekonnen',
124
+ ss: '%d Sekonnen',
125
+ m: processRelativeTime,
126
+ mm: '%d Minutten',
127
+ h: processRelativeTime,
128
+ hh: '%d Stonnen',
129
+ d: processRelativeTime,
130
+ dd: '%d Deeg',
131
+ M: processRelativeTime,
132
+ MM: '%d Méint',
133
+ y: processRelativeTime,
134
+ yy: '%d Joer',
111
135
  },
112
- },
113
- relativeTime: {
114
- future: processFutureTime,
115
- past: processPastTime,
116
- s: 'e puer Sekonnen',
117
- ss: '%d Sekonnen',
118
- m: processRelativeTime,
119
- mm: '%d Minutten',
120
- h: processRelativeTime,
121
- hh: '%d Stonnen',
122
- d: processRelativeTime,
123
- dd: '%d Deeg',
124
- M: processRelativeTime,
125
- MM: '%d Méint',
126
- y: processRelativeTime,
127
- yy: '%d Joer',
128
- },
129
- dayOfMonthOrdinalParse: /\d{1,2}\./,
130
- ordinal: '%d.',
131
- week: {
132
- dow: 1, // Monday is the first day of the week.
133
- doy: 4, // The week that contains Jan 4th is the first week of the year.
134
- },
135
- });
136
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
137
+ ordinal: '%d.',
138
+ week: {
139
+ dow: 1, // Monday is the first day of the week.
140
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
141
+ },
142
+ });
143
+
144
+ return lb;
145
+
146
+ })));
@@ -2,64 +2,75 @@
2
2
  //! locale : Lao [lo]
3
3
  //! author : Ryan Hart : https://github.com/ryanhart2
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('lo', {
8
- months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
9
- '_'
10
- ),
11
- monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
12
- '_'
13
- ),
14
- weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
15
- weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
16
- weekdaysMin: '__ອຄ__ພຫ_ສກ_'.split('_'),
17
- weekdaysParseExact: true,
18
- longDateFormat: {
19
- LT: 'HH:mm',
20
- LTS: 'HH:mm:ss',
21
- L: 'DD/MM/YYYY',
22
- LL: 'D MMMM YYYY',
23
- LLL: 'D MMMM YYYY HH:mm',
24
- LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
25
- },
26
- meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
27
- isPM: function (input) {
28
- return input === 'ຕອນແລງ';
29
- },
30
- meridiem: function (hour, minute, isLower) {
31
- if (hour < 12) {
32
- return 'ຕອນເຊົ້າ';
33
- } else {
34
- return 'ຕອນແລງ';
35
- }
36
- },
37
- calendar: {
38
- sameDay: '[ມື້ນີ້ເວລາ] LT',
39
- nextDay: '[ມື້ອື່ນເວລາ] LT',
40
- nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
41
- lastDay: '[ມື້ວານນີ້ເວລາ] LT',
42
- lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
43
- sameElse: 'L',
44
- },
45
- relativeTime: {
46
- future: 'ອີກ %s',
47
- past: '%sຜ່ານມາ',
48
- s: 'ບໍ່ເທົ່າໃດວິນາທີ',
49
- ss: '%d ວິນາທີ',
50
- m: '1 ນາທີ',
51
- mm: '%d ນາທີ',
52
- h: '1 ຊົ່ວໂມງ',
53
- hh: '%d ຊົ່ວໂມງ',
54
- d: '1 ມື້',
55
- dd: '%d ມື້',
56
- M: '1 ເດືອນ',
57
- MM: '%d ເດືອນ',
58
- y: '1 ປີ',
59
- yy: '%d ປີ',
60
- },
61
- dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
62
- ordinal: function (number) {
63
- return 'ທີ່' + number;
64
- },
65
- });
12
+ //! moment.js locale configuration
13
+
14
+ var lo = moment.defineLocale('lo', {
15
+ months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
19
+ '_'
20
+ ),
21
+ weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
22
+ weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
23
+ weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
24
+ weekdaysParseExact: true,
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'DD/MM/YYYY',
29
+ LL: 'D MMMM YYYY',
30
+ LLL: 'D MMMM YYYY HH:mm',
31
+ LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
32
+ },
33
+ meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
34
+ isPM: function (input) {
35
+ return input === 'ຕອນແລງ';
36
+ },
37
+ meridiem: function (hour, minute, isLower) {
38
+ if (hour < 12) {
39
+ return 'ຕອນເຊົ້າ';
40
+ } else {
41
+ return 'ຕອນແລງ';
42
+ }
43
+ },
44
+ calendar: {
45
+ sameDay: '[ມື້ນີ້ເວລາ] LT',
46
+ nextDay: '[ມື້ອື່ນເວລາ] LT',
47
+ nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
48
+ lastDay: '[ມື້ວານນີ້ເວລາ] LT',
49
+ lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
50
+ sameElse: 'L',
51
+ },
52
+ relativeTime: {
53
+ future: 'ອີກ %s',
54
+ past: '%sຜ່ານມາ',
55
+ s: 'ບໍ່ເທົ່າໃດວິນາທີ',
56
+ ss: '%d ວິນາທີ',
57
+ m: '1 ນາທີ',
58
+ mm: '%d ນາທີ',
59
+ h: '1 ຊົ່ວໂມງ',
60
+ hh: '%d ຊົ່ວໂມງ',
61
+ d: '1 ມື້',
62
+ dd: '%d ມື້',
63
+ M: '1 ເດືອນ',
64
+ MM: '%d ເດືອນ',
65
+ y: '1 ປີ',
66
+ yy: '%d ປີ',
67
+ },
68
+ dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
69
+ ordinal: function (number) {
70
+ return 'ທີ່' + number;
71
+ },
72
+ });
73
+
74
+ return lo;
75
+
76
+ })));