momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -8,130 +8,130 @@
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
9
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
- }(this, function (moment) { 'use strict';
11
+ }(this, (function (moment) { 'use strict';
12
12
 
13
13
 
14
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
- var format = {
16
- 'm': ['eng Minutt', 'enger Minutt'],
17
- 'h': ['eng Stonn', 'enger Stonn'],
18
- 'd': ['een Dag', 'engem Dag'],
19
- 'M': ['ee Mount', 'engem Mount'],
20
- 'y': ['ee Joer', 'engem Joer']
21
- };
22
- return withoutSuffix ? format[key][0] : format[key][1];
14
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
+ var format = {
16
+ 'm': ['eng Minutt', 'enger Minutt'],
17
+ 'h': ['eng Stonn', 'enger Stonn'],
18
+ 'd': ['een Dag', 'engem Dag'],
19
+ 'M': ['ee Mount', 'engem Mount'],
20
+ 'y': ['ee Joer', 'engem Joer']
21
+ };
22
+ return withoutSuffix ? format[key][0] : format[key][1];
23
+ }
24
+ function processFutureTime(string) {
25
+ var number = string.substr(0, string.indexOf(' '));
26
+ if (eifelerRegelAppliesToNumber(number)) {
27
+ return 'a ' + string;
23
28
  }
24
- function processFutureTime(string) {
25
- var number = string.substr(0, string.indexOf(' '));
26
- if (eifelerRegelAppliesToNumber(number)) {
27
- return 'a ' + string;
28
- }
29
- return 'an ' + string;
29
+ return 'an ' + string;
30
+ }
31
+ function processPastTime(string) {
32
+ var number = string.substr(0, string.indexOf(' '));
33
+ if (eifelerRegelAppliesToNumber(number)) {
34
+ return 'viru ' + string;
30
35
  }
31
- function processPastTime(string) {
32
- var number = string.substr(0, string.indexOf(' '));
33
- if (eifelerRegelAppliesToNumber(number)) {
34
- return 'viru ' + string;
35
- }
36
- return 'virun ' + string;
36
+ return 'virun ' + string;
37
+ }
38
+ /**
39
+ * Returns true if the word before the given number loses the '-n' ending.
40
+ * e.g. 'an 10 Deeg' but 'a 5 Deeg'
41
+ *
42
+ * @param number {integer}
43
+ * @returns {boolean}
44
+ */
45
+ function eifelerRegelAppliesToNumber(number) {
46
+ number = parseInt(number, 10);
47
+ if (isNaN(number)) {
48
+ return false;
37
49
  }
38
- /**
39
- * Returns true if the word before the given number loses the '-n' ending.
40
- * e.g. 'an 10 Deeg' but 'a 5 Deeg'
41
- *
42
- * @param number {integer}
43
- * @returns {boolean}
44
- */
45
- function eifelerRegelAppliesToNumber(number) {
46
- number = parseInt(number, 10);
47
- if (isNaN(number)) {
48
- return false;
49
- }
50
- if (number < 0) {
51
- // Negative Number --> always true
50
+ if (number < 0) {
51
+ // Negative Number --> always true
52
+ return true;
53
+ } else if (number < 10) {
54
+ // Only 1 digit
55
+ if (4 <= number && number <= 7) {
52
56
  return true;
53
- } else if (number < 10) {
54
- // Only 1 digit
55
- if (4 <= number && number <= 7) {
56
- return true;
57
- }
58
- return false;
59
- } else if (number < 100) {
60
- // 2 digits
61
- var lastDigit = number % 10, firstDigit = number / 10;
62
- if (lastDigit === 0) {
63
- return eifelerRegelAppliesToNumber(firstDigit);
64
- }
65
- return eifelerRegelAppliesToNumber(lastDigit);
66
- } else if (number < 10000) {
67
- // 3 or 4 digits --> recursively check first digit
68
- while (number >= 10) {
69
- number = number / 10;
70
- }
71
- return eifelerRegelAppliesToNumber(number);
72
- } else {
73
- // Anything larger than 4 digits: recursively check first n-3 digits
74
- number = number / 1000;
75
- return eifelerRegelAppliesToNumber(number);
76
57
  }
58
+ return false;
59
+ } else if (number < 100) {
60
+ // 2 digits
61
+ var lastDigit = number % 10, firstDigit = number / 10;
62
+ if (lastDigit === 0) {
63
+ return eifelerRegelAppliesToNumber(firstDigit);
64
+ }
65
+ return eifelerRegelAppliesToNumber(lastDigit);
66
+ } else if (number < 10000) {
67
+ // 3 or 4 digits --> recursively check first digit
68
+ while (number >= 10) {
69
+ number = number / 10;
70
+ }
71
+ return eifelerRegelAppliesToNumber(number);
72
+ } else {
73
+ // Anything larger than 4 digits: recursively check first n-3 digits
74
+ number = number / 1000;
75
+ return eifelerRegelAppliesToNumber(number);
77
76
  }
77
+ }
78
78
 
79
- var lb = moment.defineLocale('lb', {
80
- months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
81
- monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
82
- monthsParseExact : true,
83
- weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
84
- weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
85
- weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
86
- weekdaysParseExact : true,
87
- longDateFormat: {
88
- LT: 'H:mm [Auer]',
89
- LTS: 'H:mm:ss [Auer]',
90
- L: 'DD.MM.YYYY',
91
- LL: 'D. MMMM YYYY',
92
- LLL: 'D. MMMM YYYY H:mm [Auer]',
93
- LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
94
- },
95
- calendar: {
96
- sameDay: '[Haut um] LT',
97
- sameElse: 'L',
98
- nextDay: '[Muer um] LT',
99
- nextWeek: 'dddd [um] LT',
100
- lastDay: '[Gëschter um] LT',
101
- lastWeek: function () {
102
- // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
103
- switch (this.day()) {
104
- case 2:
105
- case 4:
106
- return '[Leschten] dddd [um] LT';
107
- default:
108
- return '[Leschte] dddd [um] LT';
109
- }
79
+ var lb = moment.defineLocale('lb', {
80
+ months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
81
+ monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
82
+ monthsParseExact : true,
83
+ weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
84
+ weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
85
+ weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
86
+ weekdaysParseExact : true,
87
+ longDateFormat: {
88
+ LT: 'H:mm [Auer]',
89
+ LTS: 'H:mm:ss [Auer]',
90
+ L: 'DD.MM.YYYY',
91
+ LL: 'D. MMMM YYYY',
92
+ LLL: 'D. MMMM YYYY H:mm [Auer]',
93
+ LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
94
+ },
95
+ calendar: {
96
+ sameDay: '[Haut um] LT',
97
+ sameElse: 'L',
98
+ nextDay: '[Muer um] LT',
99
+ nextWeek: 'dddd [um] LT',
100
+ lastDay: '[Gëschter um] LT',
101
+ lastWeek: function () {
102
+ // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
103
+ switch (this.day()) {
104
+ case 2:
105
+ case 4:
106
+ return '[Leschten] dddd [um] LT';
107
+ default:
108
+ return '[Leschte] dddd [um] LT';
110
109
  }
111
- },
112
- relativeTime : {
113
- future : processFutureTime,
114
- past : processPastTime,
115
- s : 'e puer Sekonnen',
116
- m : processRelativeTime,
117
- mm : '%d Minutten',
118
- h : processRelativeTime,
119
- hh : '%d Stonnen',
120
- d : processRelativeTime,
121
- dd : '%d Deeg',
122
- M : processRelativeTime,
123
- MM : '%d Méint',
124
- y : processRelativeTime,
125
- yy : '%d Joer'
126
- },
127
- ordinalParse: /\d{1,2}\./,
128
- ordinal: '%d.',
129
- week: {
130
- dow: 1, // Monday is the first day of the week.
131
- doy: 4 // The week that contains Jan 4th is the first week of the year.
132
110
  }
133
- });
111
+ },
112
+ relativeTime : {
113
+ future : processFutureTime,
114
+ past : processPastTime,
115
+ s : 'e puer Sekonnen',
116
+ m : processRelativeTime,
117
+ mm : '%d Minutten',
118
+ h : processRelativeTime,
119
+ hh : '%d Stonnen',
120
+ d : processRelativeTime,
121
+ dd : '%d Deeg',
122
+ M : processRelativeTime,
123
+ MM : '%d Méint',
124
+ y : processRelativeTime,
125
+ yy : '%d Joer'
126
+ },
127
+ ordinalParse: /\d{1,2}\./,
128
+ ordinal: '%d.',
129
+ week: {
130
+ dow: 1, // Monday is the first day of the week.
131
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
132
+ }
133
+ });
134
134
 
135
- return lb;
135
+ return lb;
136
136
 
137
- }));
137
+ })));
@@ -7,64 +7,64 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var lo = moment.defineLocale('lo', {
14
- months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15
- monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
16
- weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
17
- weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
18
- weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
19
- weekdaysParseExact : true,
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'HH:mm:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D MMMM YYYY',
25
- LLL : 'D MMMM YYYY HH:mm',
26
- LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
27
- },
28
- meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
29
- isPM: function (input) {
30
- return input === 'ຕອນແລງ';
31
- },
32
- meridiem : function (hour, minute, isLower) {
33
- if (hour < 12) {
34
- return 'ຕອນເຊົ້າ';
35
- } else {
36
- return 'ຕອນແລງ';
37
- }
38
- },
39
- calendar : {
40
- sameDay : '[ມື້ນີ້ເວລາ] LT',
41
- nextDay : '[ມື້ອື່ນເວລາ] LT',
42
- nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
43
- lastDay : '[ມື້ວານນີ້ເວລາ] LT',
44
- lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
45
- sameElse : 'L'
46
- },
47
- relativeTime : {
48
- future : 'ອີກ %s',
49
- past : '%sຜ່ານມາ',
50
- s : 'ບໍ່ເທົ່າໃດວິນາທີ',
51
- m : '1 ນາທີ',
52
- mm : '%d ນາທີ',
53
- h : '1 ຊົ່ວໂມງ',
54
- hh : '%d ຊົ່ວໂມງ',
55
- d : '1 ມື້',
56
- dd : '%d ມື້',
57
- M : '1 ເດືອນ',
58
- MM : '%d ເດືອນ',
59
- y : '1 ປີ',
60
- yy : '%d ປີ'
61
- },
62
- ordinalParse: /(ທີ່)\d{1,2}/,
63
- ordinal : function (number) {
64
- return 'ທີ່' + number;
13
+ var lo = moment.defineLocale('lo', {
14
+ months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15
+ monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
16
+ weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
17
+ weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
18
+ weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
27
+ },
28
+ meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
29
+ isPM: function (input) {
30
+ return input === 'ຕອນແລງ';
31
+ },
32
+ meridiem : function (hour, minute, isLower) {
33
+ if (hour < 12) {
34
+ return 'ຕອນເຊົ້າ';
35
+ } else {
36
+ return 'ຕອນແລງ';
65
37
  }
66
- });
38
+ },
39
+ calendar : {
40
+ sameDay : '[ມື້ນີ້ເວລາ] LT',
41
+ nextDay : '[ມື້ອື່ນເວລາ] LT',
42
+ nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
43
+ lastDay : '[ມື້ວານນີ້ເວລາ] LT',
44
+ lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
45
+ sameElse : 'L'
46
+ },
47
+ relativeTime : {
48
+ future : 'ອີກ %s',
49
+ past : '%sຜ່ານມາ',
50
+ s : 'ບໍ່ເທົ່າໃດວິນາທີ',
51
+ m : '1 ນາທີ',
52
+ mm : '%d ນາທີ',
53
+ h : '1 ຊົ່ວໂມງ',
54
+ hh : '%d ຊົ່ວໂມງ',
55
+ d : '1 ມື້',
56
+ dd : '%d ມື້',
57
+ M : '1 ເດືອນ',
58
+ MM : '%d ເດືອນ',
59
+ y : '1 ປີ',
60
+ yy : '%d ປີ'
61
+ },
62
+ ordinalParse: /(ທີ່)\d{1,2}/,
63
+ ordinal : function (number) {
64
+ return 'ທີ່' + number;
65
+ }
66
+ });
67
67
 
68
- return lo;
68
+ return lo;
69
69
 
70
- }));
70
+ })));
@@ -7,111 +7,111 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var units = {
14
- 'm' : 'minutė_minutės_minutę',
15
- 'mm': 'minutės_minučių_minutes',
16
- 'h' : 'valanda_valandos_valandą',
17
- 'hh': 'valandos_valandų_valandas',
18
- 'd' : 'diena_dienos_dieną',
19
- 'dd': 'dienos_dienų_dienas',
20
- 'M' : 'mėnuo_mėnesio_mėnesį',
21
- 'MM': 'mėnesiai_mėnesių_mėnesius',
22
- 'y' : 'metai_metų_metus',
23
- 'yy': 'metai_metų_metus'
24
- };
25
- function translateSeconds(number, withoutSuffix, key, isFuture) {
26
- if (withoutSuffix) {
27
- return 'kelios sekundės';
28
- } else {
29
- return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
30
- }
31
- }
32
- function translateSingular(number, withoutSuffix, key, isFuture) {
33
- return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
34
- }
35
- function special(number) {
36
- return number % 10 === 0 || (number > 10 && number < 20);
13
+ var units = {
14
+ 'm' : 'minutė_minutės_minutę',
15
+ 'mm': 'minutės_minučių_minutes',
16
+ 'h' : 'valanda_valandos_valandą',
17
+ 'hh': 'valandos_valandų_valandas',
18
+ 'd' : 'diena_dienos_dieną',
19
+ 'dd': 'dienos_dienų_dienas',
20
+ 'M' : 'mėnuo_mėnesio_mėnesį',
21
+ 'MM': 'mėnesiai_mėnesių_mėnesius',
22
+ 'y' : 'metai_metų_metus',
23
+ 'yy': 'metai_metų_metus'
24
+ };
25
+ function translateSeconds(number, withoutSuffix, key, isFuture) {
26
+ if (withoutSuffix) {
27
+ return 'kelios sekundės';
28
+ } else {
29
+ return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
37
30
  }
38
- function forms(key) {
39
- return units[key].split('_');
40
- }
41
- function translate(number, withoutSuffix, key, isFuture) {
42
- var result = number + ' ';
43
- if (number === 1) {
44
- return result + translateSingular(number, withoutSuffix, key[0], isFuture);
45
- } else if (withoutSuffix) {
46
- return result + (special(number) ? forms(key)[1] : forms(key)[0]);
31
+ }
32
+ function translateSingular(number, withoutSuffix, key, isFuture) {
33
+ return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
34
+ }
35
+ function special(number) {
36
+ return number % 10 === 0 || (number > 10 && number < 20);
37
+ }
38
+ function forms(key) {
39
+ return units[key].split('_');
40
+ }
41
+ function translate(number, withoutSuffix, key, isFuture) {
42
+ var result = number + ' ';
43
+ if (number === 1) {
44
+ return result + translateSingular(number, withoutSuffix, key[0], isFuture);
45
+ } else if (withoutSuffix) {
46
+ return result + (special(number) ? forms(key)[1] : forms(key)[0]);
47
+ } else {
48
+ if (isFuture) {
49
+ return result + forms(key)[1];
47
50
  } else {
48
- if (isFuture) {
49
- return result + forms(key)[1];
50
- } else {
51
- return result + (special(number) ? forms(key)[1] : forms(key)[2]);
52
- }
51
+ return result + (special(number) ? forms(key)[1] : forms(key)[2]);
53
52
  }
54
53
  }
55
- var lt = moment.defineLocale('lt', {
56
- months : {
57
- format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
58
- standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
59
- isFormat: /D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?|MMMM?(\[[^\[\]]*\]|\s+)+D[oD]?/
60
- },
61
- monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
62
- weekdays : {
63
- format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
64
- standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
65
- isFormat: /dddd HH:mm/
66
- },
67
- weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
68
- weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
69
- weekdaysParseExact : true,
70
- longDateFormat : {
71
- LT : 'HH:mm',
72
- LTS : 'HH:mm:ss',
73
- L : 'YYYY-MM-DD',
74
- LL : 'YYYY [m.] MMMM D [d.]',
75
- LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
76
- LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
77
- l : 'YYYY-MM-DD',
78
- ll : 'YYYY [m.] MMMM D [d.]',
79
- lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
80
- llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
81
- },
82
- calendar : {
83
- sameDay : '[Šiandien] LT',
84
- nextDay : '[Rytoj] LT',
85
- nextWeek : 'dddd LT',
86
- lastDay : '[Vakar] LT',
87
- lastWeek : '[Praėjusį] dddd LT',
88
- sameElse : 'L'
89
- },
90
- relativeTime : {
91
- future : 'po %s',
92
- past : 'prieš %s',
93
- s : translateSeconds,
94
- m : translateSingular,
95
- mm : translate,
96
- h : translateSingular,
97
- hh : translate,
98
- d : translateSingular,
99
- dd : translate,
100
- M : translateSingular,
101
- MM : translate,
102
- y : translateSingular,
103
- yy : translate
104
- },
105
- ordinalParse: /\d{1,2}-oji/,
106
- ordinal : function (number) {
107
- return number + '-oji';
108
- },
109
- week : {
110
- dow : 1, // Monday is the first day of the week.
111
- doy : 4 // The week that contains Jan 4th is the first week of the year.
112
- }
113
- });
54
+ }
55
+ var lt = moment.defineLocale('lt', {
56
+ months : {
57
+ format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
58
+ standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
59
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
60
+ },
61
+ monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
62
+ weekdays : {
63
+ format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
64
+ standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
65
+ isFormat: /dddd HH:mm/
66
+ },
67
+ weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
68
+ weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
69
+ weekdaysParseExact : true,
70
+ longDateFormat : {
71
+ LT : 'HH:mm',
72
+ LTS : 'HH:mm:ss',
73
+ L : 'YYYY-MM-DD',
74
+ LL : 'YYYY [m.] MMMM D [d.]',
75
+ LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
76
+ LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
77
+ l : 'YYYY-MM-DD',
78
+ ll : 'YYYY [m.] MMMM D [d.]',
79
+ lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
80
+ llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
81
+ },
82
+ calendar : {
83
+ sameDay : '[Šiandien] LT',
84
+ nextDay : '[Rytoj] LT',
85
+ nextWeek : 'dddd LT',
86
+ lastDay : '[Vakar] LT',
87
+ lastWeek : '[Praėjusį] dddd LT',
88
+ sameElse : 'L'
89
+ },
90
+ relativeTime : {
91
+ future : 'po %s',
92
+ past : 'prieš %s',
93
+ s : translateSeconds,
94
+ m : translateSingular,
95
+ mm : translate,
96
+ h : translateSingular,
97
+ hh : translate,
98
+ d : translateSingular,
99
+ dd : translate,
100
+ M : translateSingular,
101
+ MM : translate,
102
+ y : translateSingular,
103
+ yy : translate
104
+ },
105
+ ordinalParse: /\d{1,2}-oji/,
106
+ ordinal : function (number) {
107
+ return number + '-oji';
108
+ },
109
+ week : {
110
+ dow : 1, // Monday is the first day of the week.
111
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
112
+ }
113
+ });
114
114
 
115
- return lt;
115
+ return lt;
116
116
 
117
- }));
117
+ })));