momentjs-rails 2.9.0 → 2.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/news.md +3 -0
  4. data/test/dummy/log/test.log +20 -0
  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 -1
  12. data/vendor/assets/javascripts/moment.js +2475 -2435
  13. data/vendor/assets/javascripts/moment/af.js +15 -14
  14. data/vendor/assets/javascripts/moment/ar-ma.js +16 -15
  15. data/vendor/assets/javascripts/moment/ar-sa.js +15 -14
  16. data/vendor/assets/javascripts/moment/ar-tn.js +14 -13
  17. data/vendor/assets/javascripts/moment/ar.js +17 -16
  18. data/vendor/assets/javascripts/moment/az.js +16 -20
  19. data/vendor/assets/javascripts/moment/be.js +17 -25
  20. data/vendor/assets/javascripts/moment/bg.js +15 -14
  21. data/vendor/assets/javascripts/moment/bn.js +15 -14
  22. data/vendor/assets/javascripts/moment/bo.js +15 -14
  23. data/vendor/assets/javascripts/moment/br.js +15 -18
  24. data/vendor/assets/javascripts/moment/bs.js +16 -16
  25. data/vendor/assets/javascripts/moment/ca.js +15 -14
  26. data/vendor/assets/javascripts/moment/cs.js +15 -16
  27. data/vendor/assets/javascripts/moment/cv.js +15 -14
  28. data/vendor/assets/javascripts/moment/cy.js +15 -16
  29. data/vendor/assets/javascripts/moment/da.js +15 -14
  30. data/vendor/assets/javascripts/moment/de-at.js +17 -16
  31. data/vendor/assets/javascripts/moment/de.js +16 -15
  32. data/vendor/assets/javascripts/moment/el.js +15 -16
  33. data/vendor/assets/javascripts/moment/en-au.js +14 -13
  34. data/vendor/assets/javascripts/moment/en-ca.js +15 -14
  35. data/vendor/assets/javascripts/moment/en-gb.js +15 -14
  36. data/vendor/assets/javascripts/moment/eo.js +17 -16
  37. data/vendor/assets/javascripts/moment/es.js +15 -14
  38. data/vendor/assets/javascripts/moment/et.js +16 -15
  39. data/vendor/assets/javascripts/moment/eu.js +15 -14
  40. data/vendor/assets/javascripts/moment/fa.js +15 -14
  41. data/vendor/assets/javascripts/moment/fi.js +15 -16
  42. data/vendor/assets/javascripts/moment/fo.js +15 -14
  43. data/vendor/assets/javascripts/moment/fr-ca.js +15 -14
  44. data/vendor/assets/javascripts/moment/fr.js +15 -14
  45. data/vendor/assets/javascripts/moment/fy.js +15 -14
  46. data/vendor/assets/javascripts/moment/gl.js +15 -14
  47. data/vendor/assets/javascripts/moment/he.js +17 -16
  48. data/vendor/assets/javascripts/moment/hi.js +15 -14
  49. data/vendor/assets/javascripts/moment/hr.js +14 -16
  50. data/vendor/assets/javascripts/moment/hu.js +15 -18
  51. data/vendor/assets/javascripts/moment/hy-am.js +15 -23
  52. data/vendor/assets/javascripts/moment/id.js +16 -15
  53. data/vendor/assets/javascripts/moment/is.js +15 -15
  54. data/vendor/assets/javascripts/moment/it.js +16 -15
  55. data/vendor/assets/javascripts/moment/ja.js +15 -14
  56. data/vendor/assets/javascripts/moment/ka.js +15 -22
  57. data/vendor/assets/javascripts/moment/km.js +15 -14
  58. data/vendor/assets/javascripts/moment/ko.js +20 -18
  59. data/vendor/assets/javascripts/moment/lb.js +14 -20
  60. data/vendor/assets/javascripts/moment/lt.js +15 -21
  61. data/vendor/assets/javascripts/moment/lv.js +15 -16
  62. data/vendor/assets/javascripts/moment/mk.js +15 -14
  63. data/vendor/assets/javascripts/moment/ml.js +15 -14
  64. data/vendor/assets/javascripts/moment/mr.js +16 -16
  65. data/vendor/assets/javascripts/moment/ms-my.js +15 -14
  66. data/vendor/assets/javascripts/moment/my.js +16 -14
  67. data/vendor/assets/javascripts/moment/nb.js +16 -15
  68. data/vendor/assets/javascripts/moment/ne.js +15 -14
  69. data/vendor/assets/javascripts/moment/nl.js +15 -14
  70. data/vendor/assets/javascripts/moment/nn.js +15 -14
  71. data/vendor/assets/javascripts/moment/pl.js +15 -16
  72. data/vendor/assets/javascripts/moment/pt-br.js +15 -14
  73. data/vendor/assets/javascripts/moment/pt.js +15 -14
  74. data/vendor/assets/javascripts/moment/ro.js +16 -16
  75. data/vendor/assets/javascripts/moment/ru.js +16 -29
  76. data/vendor/assets/javascripts/moment/sk.js +16 -17
  77. data/vendor/assets/javascripts/moment/sl.js +15 -15
  78. data/vendor/assets/javascripts/moment/sq.js +17 -16
  79. data/vendor/assets/javascripts/moment/sr-cyrl.js +15 -15
  80. data/vendor/assets/javascripts/moment/sr.js +15 -15
  81. data/vendor/assets/javascripts/moment/sv.js +15 -14
  82. data/vendor/assets/javascripts/moment/ta.js +14 -50
  83. data/vendor/assets/javascripts/moment/th.js +15 -14
  84. data/vendor/assets/javascripts/moment/tl-ph.js +15 -14
  85. data/vendor/assets/javascripts/moment/tr.js +16 -21
  86. data/vendor/assets/javascripts/moment/tzm-latn.js +15 -14
  87. data/vendor/assets/javascripts/moment/tzm.js +15 -14
  88. data/vendor/assets/javascripts/moment/uk.js +16 -27
  89. data/vendor/assets/javascripts/moment/uz.js +15 -14
  90. data/vendor/assets/javascripts/moment/vi.js +15 -14
  91. data/vendor/assets/javascripts/moment/zh-cn.js +16 -15
  92. data/vendor/assets/javascripts/moment/zh-tw.js +15 -14
  93. metadata +2 -2
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : icelandic (is)
3
- // author : Hinrik Örn Sigurðsson : https://github.com/hinrik
1
+ //! moment.js locale configuration
2
+ //! locale : icelandic (is)
3
+ //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  function plural(n) {
15
13
  if (n % 100 === 11) {
16
14
  return true;
@@ -19,7 +17,6 @@
19
17
  }
20
18
  return true;
21
19
  }
22
-
23
20
  function translate(number, withoutSuffix, key, isFuture) {
24
21
  var result = number + ' ';
25
22
  switch (key) {
@@ -79,7 +76,7 @@
79
76
  }
80
77
  }
81
78
 
82
- return moment.defineLocale('is', {
79
+ var is = moment.defineLocale('is', {
83
80
  months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
84
81
  monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
85
82
  weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
@@ -123,4 +120,7 @@
123
120
  doy : 4 // The week that contains Jan 4th is the first week of the year.
124
121
  }
125
122
  });
126
- }));
123
+
124
+ return is;
125
+
126
+ }));
@@ -1,18 +1,16 @@
1
- // moment.js locale configuration
2
- // locale : italian (it)
3
- // author : Lorenzo : https://github.com/aliem
4
- // author: Mattia Larentis: https://github.com/nostalgiaz
1
+ //! moment.js locale configuration
2
+ //! locale : italian (it)
3
+ //! author : Lorenzo : https://github.com/aliem
4
+ //! author: Mattia Larentis: https://github.com/nostalgiaz
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
13
- }
14
- }(function (moment) {
15
- return moment.defineLocale('it', {
6
+ (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? 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 it = moment.defineLocale('it', {
16
14
  months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
17
15
  monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
18
16
  weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
@@ -65,4 +63,7 @@
65
63
  doy : 4 // The week that contains Jan 4th is the first week of the year.
66
64
  }
67
65
  });
68
- }));
66
+
67
+ return it;
68
+
69
+ }));
@@ -1,17 +1,15 @@
1
- // moment.js locale configuration
2
- // locale : japanese (ja)
3
- // author : LI Long : https://github.com/baryon
1
+ //! moment.js locale configuration
2
+ //! locale : japanese (ja)
3
+ //! author : LI Long : https://github.com/baryon
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('ja', {
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var ja = moment.defineLocale('ja', {
15
13
  months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
16
14
  monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
17
15
  weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
@@ -60,4 +58,7 @@
60
58
  yy : '%d年'
61
59
  }
62
60
  });
63
- }));
61
+
62
+ return ja;
63
+
64
+ }));
@@ -1,43 +1,36 @@
1
- // moment.js locale configuration
2
- // locale : Georgian (ka)
3
- // author : Irakli Janiashvili : https://github.com/irakli-janiashvili
1
+ //! moment.js locale configuration
2
+ //! locale : Georgian (ka)
3
+ //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  function monthsCaseReplace(m, format) {
15
13
  var months = {
16
14
  'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
17
15
  'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
18
16
  },
19
-
20
17
  nounCase = (/D[oD] *MMMM?/).test(format) ?
21
18
  'accusative' :
22
19
  'nominative';
23
-
24
20
  return months[nounCase][m.month()];
25
21
  }
26
-
27
22
  function weekdaysCaseReplace(m, format) {
28
23
  var weekdays = {
29
24
  'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
30
25
  'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_')
31
26
  },
32
-
33
27
  nounCase = (/(წინა|შემდეგ)/).test(format) ?
34
28
  'accusative' :
35
29
  'nominative';
36
-
37
30
  return weekdays[nounCase][m.day()];
38
31
  }
39
32
 
40
- return moment.defineLocale('ka', {
33
+ var ka = moment.defineLocale('ka', {
41
34
  months : monthsCaseReplace,
42
35
  monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
43
36
  weekdays : weekdaysCaseReplace,
@@ -90,15 +83,12 @@
90
83
  if (number === 0) {
91
84
  return number;
92
85
  }
93
-
94
86
  if (number === 1) {
95
87
  return number + '-ლი';
96
88
  }
97
-
98
89
  if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
99
90
  return 'მე-' + number;
100
91
  }
101
-
102
92
  return number + '-ე';
103
93
  },
104
94
  week : {
@@ -106,4 +96,7 @@
106
96
  doy : 7
107
97
  }
108
98
  });
109
- }));
99
+
100
+ return ka;
101
+
102
+ }));
@@ -1,17 +1,15 @@
1
- // moment.js locale configuration
2
- // locale : khmer (km)
3
- // author : Kruy Vanna : https://github.com/kruyvanna
1
+ //! moment.js locale configuration
2
+ //! locale : khmer (km)
3
+ //! author : Kruy Vanna : https://github.com/kruyvanna
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('km', {
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var km = moment.defineLocale('km', {
15
13
  months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
16
14
  monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
17
15
  weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
@@ -53,4 +51,7 @@
53
51
  doy: 4 // The week that contains Jan 4th is the first week of the year.
54
52
  }
55
53
  });
56
- }));
54
+
55
+ return km;
56
+
57
+ }));
@@ -1,20 +1,19 @@
1
- // moment.js locale configuration
2
- // locale : korean (ko)
3
- //
4
- // authors
5
- //
6
- // - Kyungwook, Park : https://github.com/kyungw00k
7
- // - Jeeeyul Lee <jeeeyul@gmail.com>
8
- (function (factory) {
9
- if (typeof define === 'function' && define.amd) {
10
- define(['moment'], factory); // AMD
11
- } else if (typeof exports === 'object') {
12
- module.exports = factory(require('../moment')); // Node
13
- } else {
14
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
15
- }
16
- }(function (moment) {
17
- return moment.defineLocale('ko', {
1
+ //! moment.js locale configuration
2
+ //! locale : korean (ko)
3
+ //!
4
+ //! authors
5
+ //!
6
+ //! - Kyungwook, Park : https://github.com/kyungw00k
7
+ //! - Jeeeyul Lee <jeeeyul@gmail.com>
8
+
9
+ (function (global, factory) {
10
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
11
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
12
+ factory(global.moment)
13
+ }(this, function (moment) { 'use strict';
14
+
15
+
16
+ var ko = moment.defineLocale('ko', {
18
17
  months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
19
18
  monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
20
19
  weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
@@ -62,4 +61,7 @@
62
61
  return hour < 12 ? '오전' : '오후';
63
62
  }
64
63
  });
65
- }));
64
+
65
+ return ko;
66
+
67
+ }));
@@ -1,20 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : Luxembourgish (lb)
3
- // author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
1
+ //! moment.js locale configuration
2
+ //! locale : Luxembourgish (lb)
3
+ //! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
4
10
 
5
- // Note: Luxembourgish has a very particular phonological rule ('Eifeler Regel') that causes the
6
- // deletion of the final 'n' in certain contexts. That's what the 'eifelerRegelAppliesToWeekday'
7
- // and 'eifelerRegelAppliesToNumber' methods are meant for
8
11
 
9
- (function (factory) {
10
- if (typeof define === 'function' && define.amd) {
11
- define(['moment'], factory); // AMD
12
- } else if (typeof exports === 'object') {
13
- module.exports = factory(require('../moment')); // Node
14
- } else {
15
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16
- }
17
- }(function (moment) {
18
12
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
19
13
  var format = {
20
14
  'm': ['eng Minutt', 'enger Minutt'],
@@ -25,7 +19,6 @@
25
19
  };
26
20
  return withoutSuffix ? format[key][0] : format[key][1];
27
21
  }
28
-
29
22
  function processFutureTime(string) {
30
23
  var number = string.substr(0, string.indexOf(' '));
31
24
  if (eifelerRegelAppliesToNumber(number)) {
@@ -33,7 +26,6 @@
33
26
  }
34
27
  return 'an ' + string;
35
28
  }
36
-
37
29
  function processPastTime(string) {
38
30
  var number = string.substr(0, string.indexOf(' '));
39
31
  if (eifelerRegelAppliesToNumber(number)) {
@@ -41,7 +33,6 @@
41
33
  }
42
34
  return 'virun ' + string;
43
35
  }
44
-
45
36
  /**
46
37
  * Returns true if the word before the given number loses the '-n' ending.
47
38
  * e.g. 'an 10 Deeg' but 'a 5 Deeg'
@@ -83,7 +74,7 @@
83
74
  }
84
75
  }
85
76
 
86
- return moment.defineLocale('lb', {
77
+ var lb = moment.defineLocale('lb', {
87
78
  months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
88
79
  monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
89
80
  weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
@@ -136,4 +127,7 @@
136
127
  doy: 4 // The week that contains Jan 4th is the first week of the year.
137
128
  }
138
129
  });
139
- }));
130
+
131
+ return lb;
132
+
133
+ }));
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : Lithuanian (lt)
3
- // author : Mindaugas Mozūras : https://github.com/mmozuras
1
+ //! moment.js locale configuration
2
+ //! locale : Lithuanian (lt)
3
+ //! author : Mindaugas Mozūras : https://github.com/mmozuras
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  var units = {
15
13
  'm' : 'minutė_minutės_minutę',
16
14
  'mm': 'minutės_minučių_minutes',
@@ -24,7 +22,6 @@
24
22
  'yy': 'metai_metų_metus'
25
23
  },
26
24
  weekDays = 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_');
27
-
28
25
  function translateSeconds(number, withoutSuffix, key, isFuture) {
29
26
  if (withoutSuffix) {
30
27
  return 'kelios sekundės';
@@ -32,19 +29,15 @@
32
29
  return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
33
30
  }
34
31
  }
35
-
36
32
  function translateSingular(number, withoutSuffix, key, isFuture) {
37
33
  return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
38
34
  }
39
-
40
35
  function special(number) {
41
36
  return number % 10 === 0 || (number > 10 && number < 20);
42
37
  }
43
-
44
38
  function forms(key) {
45
39
  return units[key].split('_');
46
40
  }
47
-
48
41
  function translate(number, withoutSuffix, key, isFuture) {
49
42
  var result = number + ' ';
50
43
  if (number === 1) {
@@ -59,15 +52,13 @@
59
52
  }
60
53
  }
61
54
  }
62
-
63
55
  function relativeWeekDay(moment, format) {
64
56
  var nominative = format.indexOf('dddd HH:mm') === -1,
65
57
  weekDay = weekDays[moment.day()];
66
-
67
58
  return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + 'į';
68
59
  }
69
60
 
70
- return moment.defineLocale('lt', {
61
+ var lt = moment.defineLocale('lt', {
71
62
  months : 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
72
63
  monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
73
64
  weekdays : relativeWeekDay,
@@ -117,4 +108,7 @@
117
108
  doy : 4 // The week that contains Jan 4th is the first week of the year.
118
109
  }
119
110
  });
120
- }));
111
+
112
+ return lt;
113
+
114
+ }));
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : latvian (lv)
3
- // author : Kristaps Karlsons : https://github.com/skakri
1
+ //! moment.js locale configuration
2
+ //! locale : latvian (lv)
3
+ //! author : Kristaps Karlsons : https://github.com/skakri
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  var units = {
15
13
  'mm': 'minūti_minūtes_minūte_minūtes',
16
14
  'hh': 'stundu_stundas_stunda_stundas',
@@ -18,7 +16,6 @@
18
16
  'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
19
17
  'yy': 'gadu_gadus_gads_gadi'
20
18
  };
21
-
22
19
  function format(word, number, withoutSuffix) {
23
20
  var forms = word.split('_');
24
21
  if (withoutSuffix) {
@@ -27,12 +24,11 @@
27
24
  return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
28
25
  }
29
26
  }
30
-
31
27
  function relativeTimeWithPlural(number, withoutSuffix, key) {
32
28
  return number + ' ' + format(units[key], number, withoutSuffix);
33
29
  }
34
30
 
35
- return moment.defineLocale('lv', {
31
+ var lv = moment.defineLocale('lv', {
36
32
  months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
37
33
  monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
38
34
  weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
@@ -76,4 +72,7 @@
76
72
  doy : 4 // The week that contains Jan 4th is the first week of the year.
77
73
  }
78
74
  });
79
- }));
75
+
76
+ return lv;
77
+
78
+ }));