momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  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 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -0,0 +1,60 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Bambara [bm]
3
+ //! author : Estelle Comment : https://github.com/estellecomment
4
+
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';
11
+
12
+ // Language contact person : Abdoufata Kane : https://github.com/abdoufata
13
+
14
+ var bm = moment.defineLocale('bm', {
15
+ months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
16
+ monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
17
+ weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
18
+ weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
19
+ weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'MMMM [tile] D [san] YYYY',
25
+ LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
26
+ LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay : '[Bi lɛrɛ] LT',
30
+ nextDay : '[Sini lɛrɛ] LT',
31
+ nextWeek : 'dddd [don lɛrɛ] LT',
32
+ lastDay : '[Kunu lɛrɛ] LT',
33
+ lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
34
+ sameElse : 'L'
35
+ },
36
+ relativeTime : {
37
+ future : '%s kɔnɔ',
38
+ past : 'a bɛ %s bɔ',
39
+ s : 'sanga dama dama',
40
+ ss : 'sekondi %d',
41
+ m : 'miniti kelen',
42
+ mm : 'miniti %d',
43
+ h : 'lɛrɛ kelen',
44
+ hh : 'lɛrɛ %d',
45
+ d : 'tile kelen',
46
+ dd : 'tile %d',
47
+ M : 'kalo kelen',
48
+ MM : 'kalo %d',
49
+ y : 'san kelen',
50
+ yy : 'san %d'
51
+ },
52
+ week : {
53
+ dow : 1, // Monday is the first day of the week.
54
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
55
+ }
56
+ });
57
+
58
+ return bm;
59
+
60
+ })));
@@ -1,111 +1,120 @@
1
- // moment.js locale configuration
2
- // locale : Bengali (bn)
3
- // author : Kaushik Gandhi : https://github.com/kaushikgandhi
1
+ //! moment.js locale configuration
2
+ //! locale : Bengali [bn]
3
+ //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
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
- var symbolMap = {
15
- '1': '',
16
- '2': '',
17
- '3': '',
18
- '4': '',
19
- '5': '',
20
- '6': '',
21
- '7': '',
22
- '8': '',
23
- '9': '',
24
- '0': '০'
25
- },
26
- numberMap = {
27
- '': '1',
28
- '': '2',
29
- '': '3',
30
- '': '4',
31
- '': '5',
32
- '': '6',
33
- '': '7',
34
- '': '8',
35
- '': '9',
36
- '০': '0'
37
- };
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';
11
+
12
+
13
+ var symbolMap = {
14
+ '1': '১',
15
+ '2': '',
16
+ '3': '',
17
+ '4': '',
18
+ '5': '',
19
+ '6': '',
20
+ '7': '',
21
+ '8': '',
22
+ '9': '',
23
+ '0': ''
24
+ };
25
+ var numberMap = {
26
+ '১': '1',
27
+ '': '2',
28
+ '': '3',
29
+ '': '4',
30
+ '': '5',
31
+ '': '6',
32
+ '': '7',
33
+ '': '8',
34
+ '': '9',
35
+ '': '0'
36
+ };
38
37
 
39
- return moment.defineLocale('bn', {
40
- months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
41
- monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
42
- weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
43
- weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'),
44
- weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
45
- longDateFormat : {
46
- LT : 'A h:mm সময়',
47
- LTS : 'A h:mm:ss সময়',
48
- L : 'DD/MM/YYYY',
49
- LL : 'D MMMM YYYY',
50
- LLL : 'D MMMM YYYY, LT',
51
- LLLL : 'dddd, D MMMM YYYY, LT'
52
- },
53
- calendar : {
54
- sameDay : '[আজ] LT',
55
- nextDay : '[আগামীকাল] LT',
56
- nextWeek : 'dddd, LT',
57
- lastDay : '[গতকাল] LT',
58
- lastWeek : '[গত] dddd, LT',
59
- sameElse : 'L'
60
- },
61
- relativeTime : {
62
- future : '%s পরে',
63
- past : '%s আগে',
64
- s : 'কএক সেকেন্ড',
65
- m : 'এক মিনিট',
66
- mm : '%d মিনিট',
67
- h : 'এক ঘন্টা',
68
- hh : '%d ঘন্টা',
69
- d : 'এক দিন',
70
- dd : '%d দিন',
71
- M : 'এক মাস',
72
- MM : '%d মাস',
73
- y : 'এক বছর',
74
- yy : '%d বছর'
75
- },
76
- preparse: function (string) {
77
- return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
78
- return numberMap[match];
79
- });
80
- },
81
- postformat: function (string) {
82
- return string.replace(/\d/g, function (match) {
83
- return symbolMap[match];
84
- });
85
- },
86
- meridiemParse: /রাত|শকাল|দুপুর|বিকেল|রাত/,
87
- isPM: function (input) {
88
- return /^(দুপুর|বিকেল|রাত)$/.test(input);
89
- },
90
- //Bengali is a vast language its spoken
91
- //in different forms in various parts of the world.
92
- //I have just generalized with most common one used
93
- meridiem : function (hour, minute, isLower) {
94
- if (hour < 4) {
95
- return 'রাত';
96
- } else if (hour < 10) {
97
- return 'শকাল';
98
- } else if (hour < 17) {
99
- return 'দুপুর';
100
- } else if (hour < 20) {
101
- return 'বিকেল';
102
- } else {
103
- return 'রাত';
104
- }
105
- },
106
- week : {
107
- dow : 0, // Sunday is the first day of the week.
108
- doy : 6 // The week that contains Jan 1st is the first week of the year.
38
+ var bn = moment.defineLocale('bn', {
39
+ months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
40
+ monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
41
+ weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
42
+ weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
43
+ weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
44
+ longDateFormat : {
45
+ LT : 'A h:mm সময়',
46
+ LTS : 'A h:mm:ss সময়',
47
+ L : 'DD/MM/YYYY',
48
+ LL : 'D MMMM YYYY',
49
+ LLL : 'D MMMM YYYY, A h:mm সময়',
50
+ LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
51
+ },
52
+ calendar : {
53
+ sameDay : '[আজ] LT',
54
+ nextDay : '[আগামীকাল] LT',
55
+ nextWeek : 'dddd, LT',
56
+ lastDay : '[গতকাল] LT',
57
+ lastWeek : '[গত] dddd, LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : '%s পরে',
62
+ past : '%s আগে',
63
+ s : 'কয়েক সেকেন্ড',
64
+ ss : '%d সেকেন্ড',
65
+ m : 'এক মিনিট',
66
+ mm : '%d মিনিট',
67
+ h : 'এক ঘন্টা',
68
+ hh : '%d ঘন্টা',
69
+ d : 'এক দিন',
70
+ dd : '%d দিন',
71
+ M : 'এক মাস',
72
+ MM : '%d মাস',
73
+ y : 'এক বছর',
74
+ yy : '%d বছর'
75
+ },
76
+ preparse: function (string) {
77
+ return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
78
+ return numberMap[match];
79
+ });
80
+ },
81
+ postformat: function (string) {
82
+ return string.replace(/\d/g, function (match) {
83
+ return symbolMap[match];
84
+ });
85
+ },
86
+ meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
87
+ meridiemHour : function (hour, meridiem) {
88
+ if (hour === 12) {
89
+ hour = 0;
90
+ }
91
+ if ((meridiem === 'রাত' && hour >= 4) ||
92
+ (meridiem === 'দুপুর' && hour < 5) ||
93
+ meridiem === 'বিকাল') {
94
+ return hour + 12;
95
+ } else {
96
+ return hour;
97
+ }
98
+ },
99
+ meridiem : function (hour, minute, isLower) {
100
+ if (hour < 4) {
101
+ return 'রাত';
102
+ } else if (hour < 10) {
103
+ return 'সকাল';
104
+ } else if (hour < 17) {
105
+ return 'দুপুর';
106
+ } else if (hour < 20) {
107
+ return 'বিকাল';
108
+ } else {
109
+ return 'রাত';
109
110
  }
110
- });
111
- }));
111
+ },
112
+ week : {
113
+ dow : 0, // Sunday is the first day of the week.
114
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
115
+ }
116
+ });
117
+
118
+ return bn;
119
+
120
+ })));
@@ -1,108 +1,120 @@
1
- // moment.js locale configuration
2
- // locale : tibetan (bo)
3
- // author : Thupten N. Chakrishar : https://github.com/vajradog
1
+ //! moment.js locale configuration
2
+ //! locale : Tibetan [bo]
3
+ //! author : Thupten N. Chakrishar : https://github.com/vajradog
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
- var symbolMap = {
15
- '1': '',
16
- '2': '',
17
- '3': '',
18
- '4': '',
19
- '5': '',
20
- '6': '',
21
- '7': '',
22
- '8': '',
23
- '9': '',
24
- '0': '༠'
25
- },
26
- numberMap = {
27
- '': '1',
28
- '': '2',
29
- '': '3',
30
- '': '4',
31
- '': '5',
32
- '': '6',
33
- '': '7',
34
- '': '8',
35
- '': '9',
36
- '༠': '0'
37
- };
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';
11
+
12
+
13
+ var symbolMap = {
14
+ '1': '༡',
15
+ '2': '',
16
+ '3': '',
17
+ '4': '',
18
+ '5': '',
19
+ '6': '',
20
+ '7': '',
21
+ '8': '',
22
+ '9': '',
23
+ '0': ''
24
+ };
25
+ var numberMap = {
26
+ '༡': '1',
27
+ '': '2',
28
+ '': '3',
29
+ '': '4',
30
+ '': '5',
31
+ '': '6',
32
+ '': '7',
33
+ '': '8',
34
+ '': '9',
35
+ '': '0'
36
+ };
38
37
 
39
- return moment.defineLocale('bo', {
40
- months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
41
- monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
42
- weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
43
- weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
44
- weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
45
- longDateFormat : {
46
- LT : 'A h:mm',
47
- LTS : 'LT:ss',
48
- L : 'DD/MM/YYYY',
49
- LL : 'D MMMM YYYY',
50
- LLL : 'D MMMM YYYY, LT',
51
- LLLL : 'dddd, D MMMM YYYY, LT'
52
- },
53
- calendar : {
54
- sameDay : '[དི་རིང] LT',
55
- nextDay : '[སང་ཉིན] LT',
56
- nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
57
- lastDay : '[ཁ་སང] LT',
58
- lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
59
- sameElse : 'L'
60
- },
61
- relativeTime : {
62
- future : '%s ལ་',
63
- past : '%s སྔན་ལ',
64
- s : 'ལམ་སང',
65
- m : 'སྐར་མ་གཅིག',
66
- mm : '%d སྐར་མ',
67
- h : 'ཆུ་ཚོད་གཅིག',
68
- hh : '%d ཆུ་ཚོད',
69
- d : 'ཉིན་གཅིག',
70
- dd : '%d ཉིན་',
71
- M : 'ཟླ་བ་གཅིག',
72
- MM : '%d ཟླ་བ',
73
- y : 'ལོ་གཅིག',
74
- yy : '%d ལོ'
75
- },
76
- preparse: function (string) {
77
- return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
78
- return numberMap[match];
79
- });
80
- },
81
- postformat: function (string) {
82
- return string.replace(/\d/g, function (match) {
83
- return symbolMap[match];
84
- });
85
- },
86
- meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
87
- isPM: function (input) {
88
- return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input);
89
- },
90
- meridiem : function (hour, minute, isLower) {
91
- if (hour < 4) {
92
- return 'མཚན་མོ';
93
- } else if (hour < 10) {
94
- return 'ཞོགས་ཀས';
95
- } else if (hour < 17) {
96
- return 'ཉིན་གུང';
97
- } else if (hour < 20) {
98
- return 'དགོང་དག';
99
- } else {
100
- return 'མཚན་མོ';
101
- }
102
- },
103
- week : {
104
- dow : 0, // Sunday is the first day of the week.
105
- doy : 6 // The week that contains Jan 1st is the first week of the year.
38
+ var bo = moment.defineLocale('bo', {
39
+ months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
40
+ monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
41
+ weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
42
+ weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
43
+ weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
44
+ longDateFormat : {
45
+ LT : 'A h:mm',
46
+ LTS : 'A h:mm:ss',
47
+ L : 'DD/MM/YYYY',
48
+ LL : 'D MMMM YYYY',
49
+ LLL : 'D MMMM YYYY, A h:mm',
50
+ LLLL : 'dddd, D MMMM YYYY, A h:mm'
51
+ },
52
+ calendar : {
53
+ sameDay : '[དི་རིང] LT',
54
+ nextDay : '[སང་ཉིན] LT',
55
+ nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
56
+ lastDay : '[ཁ་སང] LT',
57
+ lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : '%s ལ་',
62
+ past : '%s སྔན་ལ',
63
+ s : 'ལམ་སང',
64
+ ss : '%d སྐར་ཆ།',
65
+ m : 'སྐར་མ་གཅིག',
66
+ mm : '%d སྐར་མ',
67
+ h : 'ཆུ་ཚོད་གཅིག',
68
+ hh : '%d ཆུ་ཚོད',
69
+ d : 'ཉིན་གཅིག',
70
+ dd : '%d ཉིན་',
71
+ M : 'ཟླ་བ་གཅིག',
72
+ MM : '%d ཟླ་བ',
73
+ y : 'ལོ་གཅིག',
74
+ yy : '%d ལོ'
75
+ },
76
+ preparse: function (string) {
77
+ return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
78
+ return numberMap[match];
79
+ });
80
+ },
81
+ postformat: function (string) {
82
+ return string.replace(/\d/g, function (match) {
83
+ return symbolMap[match];
84
+ });
85
+ },
86
+ meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
87
+ meridiemHour : function (hour, meridiem) {
88
+ if (hour === 12) {
89
+ hour = 0;
90
+ }
91
+ if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
92
+ (meridiem === 'ཉིན་གུང' && hour < 5) ||
93
+ meridiem === 'དགོང་དག') {
94
+ return hour + 12;
95
+ } else {
96
+ return hour;
97
+ }
98
+ },
99
+ meridiem : function (hour, minute, isLower) {
100
+ if (hour < 4) {
101
+ return 'མཚན་མོ';
102
+ } else if (hour < 10) {
103
+ return 'ཞོགས་ཀས';
104
+ } else if (hour < 17) {
105
+ return 'ཉིན་གུང';
106
+ } else if (hour < 20) {
107
+ return 'དགོང་དག';
108
+ } else {
109
+ return 'མཚན་མོ';
106
110
  }
107
- });
108
- }));
111
+ },
112
+ week : {
113
+ dow : 0, // Sunday is the first day of the week.
114
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
115
+ }
116
+ });
117
+
118
+ return bo;
119
+
120
+ })));