momentjs-rails 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) 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 +560 -367
  6. data/vendor/assets/javascripts/moment/af.js +65 -0
  7. data/vendor/assets/javascripts/moment/ar-ma.js +3 -3
  8. data/vendor/assets/javascripts/moment/ar-sa.js +3 -3
  9. data/vendor/assets/javascripts/moment/ar.js +3 -3
  10. data/vendor/assets/javascripts/moment/az.js +3 -4
  11. data/vendor/assets/javascripts/moment/be.js +150 -0
  12. data/vendor/assets/javascripts/moment/bg.js +3 -3
  13. data/vendor/assets/javascripts/moment/bn.js +4 -4
  14. data/vendor/assets/javascripts/moment/bo.js +103 -0
  15. data/vendor/assets/javascripts/moment/br.js +3 -3
  16. data/vendor/assets/javascripts/moment/bs.js +5 -6
  17. data/vendor/assets/javascripts/moment/ca.js +3 -3
  18. data/vendor/assets/javascripts/moment/cs.js +3 -3
  19. data/vendor/assets/javascripts/moment/cv.js +3 -3
  20. data/vendor/assets/javascripts/moment/cy.js +3 -3
  21. data/vendor/assets/javascripts/moment/da.js +3 -3
  22. data/vendor/assets/javascripts/moment/de-at.js +3 -3
  23. data/vendor/assets/javascripts/moment/de.js +3 -3
  24. data/vendor/assets/javascripts/moment/el.js +4 -4
  25. data/vendor/assets/javascripts/moment/en-au.js +4 -4
  26. data/vendor/assets/javascripts/moment/en-ca.js +4 -4
  27. data/vendor/assets/javascripts/moment/en-gb.js +4 -4
  28. data/vendor/assets/javascripts/moment/eo.js +3 -3
  29. data/vendor/assets/javascripts/moment/es.js +3 -3
  30. data/vendor/assets/javascripts/moment/et.js +3 -3
  31. data/vendor/assets/javascripts/moment/eu.js +3 -3
  32. data/vendor/assets/javascripts/moment/fa.js +3 -3
  33. data/vendor/assets/javascripts/moment/fi.js +7 -5
  34. data/vendor/assets/javascripts/moment/fo.js +3 -3
  35. data/vendor/assets/javascripts/moment/fr-ca.js +3 -3
  36. data/vendor/assets/javascripts/moment/fr.js +3 -3
  37. data/vendor/assets/javascripts/moment/gl.js +3 -3
  38. data/vendor/assets/javascripts/moment/he.js +3 -3
  39. data/vendor/assets/javascripts/moment/hi.js +3 -3
  40. data/vendor/assets/javascripts/moment/hr.js +3 -4
  41. data/vendor/assets/javascripts/moment/hu.js +3 -3
  42. data/vendor/assets/javascripts/moment/hy-am.js +3 -4
  43. data/vendor/assets/javascripts/moment/id.js +3 -3
  44. data/vendor/assets/javascripts/moment/is.js +3 -3
  45. data/vendor/assets/javascripts/moment/it.js +3 -3
  46. data/vendor/assets/javascripts/moment/ja.js +3 -3
  47. data/vendor/assets/javascripts/moment/ka.js +3 -4
  48. data/vendor/assets/javascripts/moment/km.js +3 -3
  49. data/vendor/assets/javascripts/moment/ko.js +4 -4
  50. data/vendor/assets/javascripts/moment/lb.js +29 -52
  51. data/vendor/assets/javascripts/moment/lt.js +4 -4
  52. data/vendor/assets/javascripts/moment/lv.js +3 -3
  53. data/vendor/assets/javascripts/moment/mk.js +3 -3
  54. data/vendor/assets/javascripts/moment/ml.js +3 -3
  55. data/vendor/assets/javascripts/moment/mr.js +3 -3
  56. data/vendor/assets/javascripts/moment/ms-my.js +3 -3
  57. data/vendor/assets/javascripts/moment/my.js +88 -0
  58. data/vendor/assets/javascripts/moment/nb.js +3 -3
  59. data/vendor/assets/javascripts/moment/ne.js +3 -3
  60. data/vendor/assets/javascripts/moment/nl.js +3 -3
  61. data/vendor/assets/javascripts/moment/nn.js +3 -3
  62. data/vendor/assets/javascripts/moment/pl.js +3 -3
  63. data/vendor/assets/javascripts/moment/pt-br.js +3 -3
  64. data/vendor/assets/javascripts/moment/pt.js +3 -3
  65. data/vendor/assets/javascripts/moment/ro.js +9 -9
  66. data/vendor/assets/javascripts/moment/ru.js +3 -3
  67. data/vendor/assets/javascripts/moment/sk.js +3 -3
  68. data/vendor/assets/javascripts/moment/sl.js +3 -3
  69. data/vendor/assets/javascripts/moment/sq.js +3 -3
  70. data/vendor/assets/javascripts/moment/sr-cyrl.js +3 -4
  71. data/vendor/assets/javascripts/moment/sr.js +3 -4
  72. data/vendor/assets/javascripts/moment/sv.js +4 -4
  73. data/vendor/assets/javascripts/moment/ta.js +9 -9
  74. data/vendor/assets/javascripts/moment/th.js +3 -3
  75. data/vendor/assets/javascripts/moment/tl-ph.js +3 -3
  76. data/vendor/assets/javascripts/moment/tr.js +3 -4
  77. data/vendor/assets/javascripts/moment/tzm-latn.js +3 -3
  78. data/vendor/assets/javascripts/moment/tzm.js +3 -3
  79. data/vendor/assets/javascripts/moment/uk.js +3 -3
  80. data/vendor/assets/javascripts/moment/uz.js +3 -3
  81. data/vendor/assets/javascripts/moment/vi.js +3 -3
  82. data/vendor/assets/javascripts/moment/zh-cn.js +3 -3
  83. data/vendor/assets/javascripts/moment/zh-tw.js +3 -3
  84. metadata +13 -9
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : hindi (hi)
1
+ // moment.js locale configuration
2
+ // locale : hindi (hi)
3
3
  // author : Mayank Singhal : https://github.com/mayanksinghal
4
4
 
5
5
  (function (factory) {
@@ -36,7 +36,7 @@
36
36
  '०': '0'
37
37
  };
38
38
 
39
- return moment.lang('hi', {
39
+ return moment.defineLocale('hi', {
40
40
  months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split("_"),
41
41
  monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split("_"),
42
42
  weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : hrvatski (hr)
1
+ // moment.js locale configuration
2
+ // locale : hrvatski (hr)
3
3
  // author : Bojan Marković : https://github.com/bmarkovic
4
4
 
5
5
  // based on (sl) translation by Robert Sedovšek
@@ -13,7 +13,6 @@
13
13
  factory(window.moment); // Browser global
14
14
  }
15
15
  }(function (moment) {
16
-
17
16
  function translate(number, withoutSuffix, key) {
18
17
  var result = number + " ";
19
18
  switch (key) {
@@ -67,7 +66,7 @@
67
66
  }
68
67
  }
69
68
 
70
- return moment.lang('hr', {
69
+ return moment.defineLocale('hr', {
71
70
  months : "sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),
72
71
  monthsShort : "sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),
73
72
  weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : hungarian (hu)
1
+ // moment.js locale configuration
2
+ // locale : hungarian (hu)
3
3
  // author : Adam Brunner : https://github.com/adambrunner
4
4
 
5
5
  (function (factory) {
@@ -49,7 +49,7 @@
49
49
  return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
50
50
  }
51
51
 
52
- return moment.lang('hu', {
52
+ return moment.defineLocale('hu', {
53
53
  months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),
54
54
  monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
55
55
  weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : Armenian (hy-am)
1
+ // moment.js locale configuration
2
+ // locale : Armenian (hy-am)
3
3
  // author : Armendarabyan : https://github.com/armendarabyan
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,6 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
-
15
14
  function monthsCaseReplace(m, format) {
16
15
  var months = {
17
16
  'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
@@ -37,7 +36,7 @@
37
36
  return weekdays[m.day()];
38
37
  }
39
38
 
40
- return moment.lang('hy-am', {
39
+ return moment.defineLocale('hy-am', {
41
40
  months : monthsCaseReplace,
42
41
  monthsShort : monthsShortCaseReplace,
43
42
  weekdays : weekdaysCaseReplace,
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : Bahasa Indonesia (id)
1
+ // moment.js locale configuration
2
+ // locale : Bahasa Indonesia (id)
3
3
  // author : Mohammad Satrio Utomo : https://github.com/tyok
4
4
  // reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
5
5
 
@@ -12,7 +12,7 @@
12
12
  factory(window.moment); // Browser global
13
13
  }
14
14
  }(function (moment) {
15
- return moment.lang('id', {
15
+ return moment.defineLocale('id', {
16
16
  months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
17
17
  monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),
18
18
  weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : icelandic (is)
1
+ // moment.js locale configuration
2
+ // locale : icelandic (is)
3
3
  // author : Hinrik Örn Sigurðsson : https://github.com/hinrik
4
4
 
5
5
  (function (factory) {
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
 
82
- return moment.lang('is', {
82
+ return moment.defineLocale('is', {
83
83
  months : "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),
84
84
  monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
85
85
  weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : italian (it)
1
+ // moment.js locale configuration
2
+ // locale : italian (it)
3
3
  // author : Lorenzo : https://github.com/aliem
4
4
  // author: Mattia Larentis: https://github.com/nostalgiaz
5
5
 
@@ -12,7 +12,7 @@
12
12
  factory(window.moment); // Browser global
13
13
  }
14
14
  }(function (moment) {
15
- return moment.lang('it', {
15
+ return moment.defineLocale('it', {
16
16
  months : "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),
17
17
  monthsShort : "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),
18
18
  weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : japanese (ja)
1
+ // moment.js locale configuration
2
+ // locale : japanese (ja)
3
3
  // author : LI Long : https://github.com/baryon
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,7 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- return moment.lang('ja', {
14
+ return moment.defineLocale('ja', {
15
15
  months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
16
16
  monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
17
17
  weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : Georgian (ka)
1
+ // moment.js locale configuration
2
+ // locale : Georgian (ka)
3
3
  // author : Irakli Janiashvili : https://github.com/irakli-janiashvili
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,6 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
-
15
14
  function monthsCaseReplace(m, format) {
16
15
  var months = {
17
16
  'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
@@ -38,7 +37,7 @@
38
37
  return weekdays[nounCase][m.day()];
39
38
  }
40
39
 
41
- return moment.lang('ka', {
40
+ return moment.defineLocale('ka', {
42
41
  months : monthsCaseReplace,
43
42
  monthsShort : "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),
44
43
  weekdays : weekdaysCaseReplace,
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : khmer (km)
1
+ // moment.js locale configuration
2
+ // locale : khmer (km)
3
3
  // author : Kruy Vanna : https://github.com/kruyvanna
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,7 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- return moment.lang('km', {
14
+ return moment.defineLocale('km', {
15
15
  months: "មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),
16
16
  monthsShort: "មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),
17
17
  weekdays: "អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),
@@ -1,7 +1,7 @@
1
- // moment.js language configuration
2
- // language : korean (ko)
1
+ // moment.js locale configuration
2
+ // locale : korean (ko)
3
3
  //
4
- // authors
4
+ // authors
5
5
  //
6
6
  // - Kyungwook, Park : https://github.com/kyungw00k
7
7
  // - Jeeeyul Lee <jeeeyul@gmail.com>
@@ -14,7 +14,7 @@
14
14
  factory(window.moment); // Browser global
15
15
  }
16
16
  }(function (moment) {
17
- return moment.lang('ko', {
17
+ return moment.defineLocale('ko', {
18
18
  months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
19
19
  monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
20
20
  weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
@@ -1,6 +1,6 @@
1
- // moment.js language configuration
2
- // language : Luxembourgish (lb)
3
- // author : mweimerskirch : https://github.com/mweimerskirch
1
+ // moment.js locale configuration
2
+ // locale : Luxembourgish (lb)
3
+ // author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
4
4
 
5
5
  // Note: Luxembourgish has a very particular phonological rule ("Eifeler Regel") that causes the
6
6
  // deletion of the final "n" in certain contexts. That's what the "eifelerRegelAppliesToWeekday"
@@ -20,11 +20,8 @@
20
20
  'm': ['eng Minutt', 'enger Minutt'],
21
21
  'h': ['eng Stonn', 'enger Stonn'],
22
22
  'd': ['een Dag', 'engem Dag'],
23
- 'dd': [number + ' Deeg', number + ' Deeg'],
24
23
  'M': ['ee Mount', 'engem Mount'],
25
- 'MM': [number + ' Méint', number + ' Méint'],
26
- 'y': ['ee Joer', 'engem Joer'],
27
- 'yy': [number + ' Joer', number + ' Joer']
24
+ 'y': ['ee Joer', 'engem Joer']
28
25
  };
29
26
  return withoutSuffix ? format[key][0] : format[key][1];
30
27
  }
@@ -45,35 +42,6 @@
45
42
  return "virun " + string;
46
43
  }
47
44
 
48
- function processLastWeek(string1) {
49
- var weekday = this.format('d');
50
- if (eifelerRegelAppliesToWeekday(weekday)) {
51
- return '[Leschte] dddd [um] LT';
52
- }
53
- return '[Leschten] dddd [um] LT';
54
- }
55
-
56
- /**
57
- * Returns true if the word before the given week day loses the "-n" ending.
58
- * e.g. "Leschten Dënschdeg" but "Leschte Méindeg"
59
- *
60
- * @param weekday {integer}
61
- * @returns {boolean}
62
- */
63
- function eifelerRegelAppliesToWeekday(weekday) {
64
- weekday = parseInt(weekday, 10);
65
- switch (weekday) {
66
- case 0: // Sonndeg
67
- case 1: // Méindeg
68
- case 3: // Mëttwoch
69
- case 5: // Freideg
70
- case 6: // Samschdeg
71
- return true;
72
- default: // 2 Dënschdeg, 4 Donneschdeg
73
- return false;
74
- }
75
- }
76
-
77
45
  /**
78
46
  * Returns true if the word before the given number loses the "-n" ending.
79
47
  * e.g. "an 10 Deeg" but "a 5 Deeg"
@@ -115,7 +83,7 @@
115
83
  }
116
84
  }
117
85
 
118
- return moment.lang('lb', {
86
+ return moment.defineLocale('lb', {
119
87
  months: "Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
120
88
  monthsShort: "Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
121
89
  weekdays: "Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),
@@ -134,22 +102,31 @@
134
102
  nextDay: '[Muer um] LT',
135
103
  nextWeek: 'dddd [um] LT',
136
104
  lastDay: '[Gëschter um] LT',
137
- lastWeek: processLastWeek
105
+ lastWeek: function () {
106
+ // Different date string for "Dënschdeg" (Tuesday) and "Donneschdeg" (Thursday) due to phonological rule
107
+ switch (this.day()) {
108
+ case 2:
109
+ case 4:
110
+ return '[Leschten] dddd [um] LT';
111
+ default:
112
+ return '[Leschte] dddd [um] LT';
113
+ }
114
+ }
138
115
  },
139
- relativeTime: {
140
- future: processFutureTime,
141
- past: processPastTime,
142
- s: "e puer Sekonnen",
143
- m: processRelativeTime,
144
- mm: "%d Minutten",
145
- h: processRelativeTime,
146
- hh: "%d Stonnen",
147
- d: processRelativeTime,
148
- dd: processRelativeTime,
149
- M: processRelativeTime,
150
- MM: processRelativeTime,
151
- y: processRelativeTime,
152
- yy: processRelativeTime
116
+ relativeTime : {
117
+ future : processFutureTime,
118
+ past : processPastTime,
119
+ s : "e puer Sekonnen",
120
+ m : processRelativeTime,
121
+ mm : "%d Minutten",
122
+ h : processRelativeTime,
123
+ hh : "%d Stonnen",
124
+ d : processRelativeTime,
125
+ dd : "%d Deeg",
126
+ M : processRelativeTime,
127
+ MM : "%d Méint",
128
+ y : processRelativeTime,
129
+ yy : "%d Joer"
153
130
  },
154
131
  ordinal: '%d.',
155
132
  week: {
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : Lithuanian (lt)
1
+ // moment.js locale configuration
2
+ // locale : Lithuanian (lt)
3
3
  // author : Mindaugas Mozūras : https://github.com/mmozuras
4
4
 
5
5
  (function (factory) {
@@ -67,8 +67,8 @@
67
67
  return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + "į";
68
68
  }
69
69
 
70
- return moment.lang("lt", {
71
- months : "sausio_vasario_kovo_balandžio_gegužės_biržėlio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),
70
+ return moment.defineLocale("lt", {
71
+ months : "sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),
72
72
  monthsShort : "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),
73
73
  weekdays : relativeWeekDay,
74
74
  weekdaysShort : "Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : latvian (lv)
1
+ // moment.js locale configuration
2
+ // locale : latvian (lv)
3
3
  // author : Kristaps Karlsons : https://github.com/skakri
4
4
 
5
5
  (function (factory) {
@@ -32,7 +32,7 @@
32
32
  return number + ' ' + format(units[key], number, withoutSuffix);
33
33
  }
34
34
 
35
- return moment.lang('lv', {
35
+ return moment.defineLocale('lv', {
36
36
  months : "janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),
37
37
  monthsShort : "jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),
38
38
  weekdays : "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : macedonian (mk)
1
+ // moment.js locale configuration
2
+ // locale : macedonian (mk)
3
3
  // author : Borislav Mickov : https://github.com/B0k0
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,7 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- return moment.lang('mk', {
14
+ return moment.defineLocale('mk', {
15
15
  months : "јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),
16
16
  monthsShort : "јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),
17
17
  weekdays : "недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : malayalam (ml)
1
+ // moment.js locale configuration
2
+ // locale : malayalam (ml)
3
3
  // author : Floyd Pink : https://github.com/floydpink
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,7 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- return moment.lang('ml', {
14
+ return moment.defineLocale('ml', {
15
15
  months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split("_"),
16
16
  monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split("_"),
17
17
  weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : Marathi (mr)
1
+ // moment.js locale configuration
2
+ // locale : Marathi (mr)
3
3
  // author : Harshad Kale : https://github.com/kalehv
4
4
 
5
5
  (function (factory) {
@@ -36,7 +36,7 @@
36
36
  '०': '0'
37
37
  };
38
38
 
39
- return moment.lang('mr', {
39
+ return moment.defineLocale('mr', {
40
40
  months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split("_"),
41
41
  monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split("_"),
42
42
  weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"),
@@ -1,5 +1,5 @@
1
- // moment.js language configuration
2
- // language : Bahasa Malaysia (ms-MY)
1
+ // moment.js locale configuration
2
+ // locale : Bahasa Malaysia (ms-MY)
3
3
  // author : Weldan Jamili : https://github.com/weldan
4
4
 
5
5
  (function (factory) {
@@ -11,7 +11,7 @@
11
11
  factory(window.moment); // Browser global
12
12
  }
13
13
  }(function (moment) {
14
- return moment.lang('ms-my', {
14
+ return moment.defineLocale('ms-my', {
15
15
  months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),
16
16
  monthsShort : "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),
17
17
  weekdays : "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),
@@ -0,0 +1,88 @@
1
+ // moment.js locale configuration
2
+ // locale : Burmese (my)
3
+ // author : Squar team, mysquar.com
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(window.moment); // Browser global
12
+ }
13
+ }(function (moment) {
14
+ var symbolMap = {
15
+ '1': '၁',
16
+ '2': '၂',
17
+ '3': '၃',
18
+ '4': '၄',
19
+ '5': '၅',
20
+ '6': '၆',
21
+ '7': '၇',
22
+ '8': '၈',
23
+ '9': '၉',
24
+ '0': '၀'
25
+ }, numberMap = {
26
+ '၁': '1',
27
+ '၂': '2',
28
+ '၃': '3',
29
+ '၄': '4',
30
+ '၅': '5',
31
+ '၆': '6',
32
+ '၇': '7',
33
+ '၈': '8',
34
+ '၉': '9',
35
+ '၀': '0'
36
+ };
37
+ return moment.defineLocale('my', {
38
+ months: "ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),
39
+ monthsShort: "ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),
40
+ weekdays: "တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),
41
+ weekdaysShort: "နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),
42
+ weekdaysMin: "နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),
43
+ longDateFormat: {
44
+ LT: "HH:mm",
45
+ L: "DD/MM/YYYY",
46
+ LL: "D MMMM YYYY",
47
+ LLL: "D MMMM YYYY LT",
48
+ LLLL: "dddd D MMMM YYYY LT"
49
+ },
50
+ calendar: {
51
+ sameDay: '[ယနေ.] LT [မှာ]',
52
+ nextDay: '[မနက်ဖြန်] LT [မှာ]',
53
+ nextWeek: 'dddd LT [မှာ]',
54
+ lastDay: '[မနေ.က] LT [မှာ]',
55
+ lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
56
+ sameElse: 'L'
57
+ },
58
+ relativeTime: {
59
+ future: "လာမည့် %s မှာ",
60
+ past: "လွန်ခဲ့သော %s က",
61
+ s: "စက္ကန်.အနည်းငယ်",
62
+ m: "တစ်မိနစ်",
63
+ mm: "%d မိနစ်",
64
+ h: "တစ်နာရီ",
65
+ hh: "%d နာရီ",
66
+ d: "တစ်ရက်",
67
+ dd: "%d ရက်",
68
+ M: "တစ်လ",
69
+ MM: "%d လ",
70
+ y: "တစ်နှစ်",
71
+ yy: "%d နှစ်"
72
+ },
73
+ preparse: function (string) {
74
+ return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
75
+ return numberMap[match];
76
+ });
77
+ },
78
+ postformat: function (string) {
79
+ return string.replace(/\d/g, function (match) {
80
+ return symbolMap[match];
81
+ });
82
+ },
83
+ week: {
84
+ dow: 1, // Monday is the first day of the week.
85
+ doy: 4 // The week that contains Jan 1st is the first week of the year.
86
+ }
87
+ });
88
+ }));