momentjs-rails 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
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 +29 -22
  6. data/vendor/assets/javascripts/moment/af.js +23 -23
  7. data/vendor/assets/javascripts/moment/ar-ma.js +24 -24
  8. data/vendor/assets/javascripts/moment/ar-sa.js +26 -26
  9. data/vendor/assets/javascripts/moment/ar.js +26 -26
  10. data/vendor/assets/javascripts/moment/az.js +46 -46
  11. data/vendor/assets/javascripts/moment/be.js +17 -17
  12. data/vendor/assets/javascripts/moment/bg.js +23 -23
  13. data/vendor/assets/javascripts/moment/bn.js +28 -28
  14. data/vendor/assets/javascripts/moment/bo.js +28 -28
  15. data/vendor/assets/javascripts/moment/br.js +22 -22
  16. data/vendor/assets/javascripts/moment/bs.js +17 -17
  17. data/vendor/assets/javascripts/moment/ca.js +23 -23
  18. data/vendor/assets/javascripts/moment/cs.js +15 -15
  19. data/vendor/assets/javascripts/moment/cv.js +23 -23
  20. data/vendor/assets/javascripts/moment/cy.js +24 -24
  21. data/vendor/assets/javascripts/moment/da.js +23 -23
  22. data/vendor/assets/javascripts/moment/de-at.js +17 -17
  23. data/vendor/assets/javascripts/moment/de.js +17 -17
  24. data/vendor/assets/javascripts/moment/el.js +30 -26
  25. data/vendor/assets/javascripts/moment/en-au.js +23 -23
  26. data/vendor/assets/javascripts/moment/en-ca.js +23 -23
  27. data/vendor/assets/javascripts/moment/en-gb.js +23 -23
  28. data/vendor/assets/javascripts/moment/eo.js +24 -24
  29. data/vendor/assets/javascripts/moment/es.js +24 -24
  30. data/vendor/assets/javascripts/moment/et.js +12 -12
  31. data/vendor/assets/javascripts/moment/eu.js +27 -27
  32. data/vendor/assets/javascripts/moment/fa.js +3 -3
  33. data/vendor/assets/javascripts/moment/fi.js +19 -19
  34. data/vendor/assets/javascripts/moment/fo.js +23 -23
  35. data/vendor/assets/javascripts/moment/fr-ca.js +24 -24
  36. data/vendor/assets/javascripts/moment/fr.js +24 -24
  37. data/vendor/assets/javascripts/moment/gl.js +25 -25
  38. data/vendor/assets/javascripts/moment/he.js +31 -31
  39. data/vendor/assets/javascripts/moment/hi.js +28 -28
  40. data/vendor/assets/javascripts/moment/hr.js +17 -17
  41. data/vendor/assets/javascripts/moment/hu.js +12 -12
  42. data/vendor/assets/javascripts/moment/hy-am.js +24 -24
  43. data/vendor/assets/javascripts/moment/id.js +23 -23
  44. data/vendor/assets/javascripts/moment/is.js +14 -14
  45. data/vendor/assets/javascripts/moment/it.js +23 -23
  46. data/vendor/assets/javascripts/moment/ja.js +25 -25
  47. data/vendor/assets/javascripts/moment/ka.js +26 -26
  48. data/vendor/assets/javascripts/moment/km.js +23 -23
  49. data/vendor/assets/javascripts/moment/ko.js +25 -25
  50. data/vendor/assets/javascripts/moment/lb.js +28 -28
  51. data/vendor/assets/javascripts/moment/lt.js +38 -38
  52. data/vendor/assets/javascripts/moment/lv.js +18 -18
  53. data/vendor/assets/javascripts/moment/mk.js +23 -23
  54. data/vendor/assets/javascripts/moment/ml.js +28 -28
  55. data/vendor/assets/javascripts/moment/mr.js +28 -28
  56. data/vendor/assets/javascripts/moment/ms-my.js +23 -23
  57. data/vendor/assets/javascripts/moment/my.js +23 -23
  58. data/vendor/assets/javascripts/moment/nb.js +23 -23
  59. data/vendor/assets/javascripts/moment/ne.js +29 -29
  60. data/vendor/assets/javascripts/moment/nl.js +24 -24
  61. data/vendor/assets/javascripts/moment/nn.js +23 -23
  62. data/vendor/assets/javascripts/moment/pl.js +18 -18
  63. data/vendor/assets/javascripts/moment/pt-br.js +23 -23
  64. data/vendor/assets/javascripts/moment/pt.js +23 -23
  65. data/vendor/assets/javascripts/moment/ro.js +19 -19
  66. data/vendor/assets/javascripts/moment/ru.js +18 -18
  67. data/vendor/assets/javascripts/moment/sk.js +15 -15
  68. data/vendor/assets/javascripts/moment/sl.js +17 -17
  69. data/vendor/assets/javascripts/moment/sq.js +23 -23
  70. data/vendor/assets/javascripts/moment/sr-cyrl.js +11 -11
  71. data/vendor/assets/javascripts/moment/sr.js +11 -11
  72. data/vendor/assets/javascripts/moment/sv.js +23 -23
  73. data/vendor/assets/javascripts/moment/ta.js +29 -29
  74. data/vendor/assets/javascripts/moment/th.js +25 -25
  75. data/vendor/assets/javascripts/moment/tl-ph.js +24 -24
  76. data/vendor/assets/javascripts/moment/tr.js +42 -42
  77. data/vendor/assets/javascripts/moment/tzm-latn.js +24 -24
  78. data/vendor/assets/javascripts/moment/tzm.js +24 -24
  79. data/vendor/assets/javascripts/moment/uk.js +19 -19
  80. data/vendor/assets/javascripts/moment/uz.js +24 -24
  81. data/vendor/assets/javascripts/moment/vi.js +28 -28
  82. data/vendor/assets/javascripts/moment/zh-cn.js +48 -48
  83. data/vendor/assets/javascripts/moment/zh-tw.js +41 -41
  84. metadata +2 -2
@@ -12,20 +12,20 @@
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('tzm-latn', {
15
- months : "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),
16
- monthsShort : "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),
17
- weekdays : "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
18
- weekdaysShort : "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
19
- weekdaysMin : "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
15
+ months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
16
+ monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
17
+ weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
18
+ weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19
+ weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
20
20
  longDateFormat : {
21
- LT : "HH:mm",
22
- L : "DD/MM/YYYY",
23
- LL : "D MMMM YYYY",
24
- LLL : "D MMMM YYYY LT",
25
- LLLL : "dddd D MMMM YYYY LT"
21
+ LT : 'HH:mm',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY LT',
25
+ LLLL : 'dddd D MMMM YYYY LT'
26
26
  },
27
27
  calendar : {
28
- sameDay: "[asdkh g] LT",
28
+ sameDay: '[asdkh g] LT',
29
29
  nextDay: '[aska g] LT',
30
30
  nextWeek: 'dddd [g] LT',
31
31
  lastDay: '[assant g] LT',
@@ -33,19 +33,19 @@
33
33
  sameElse: 'L'
34
34
  },
35
35
  relativeTime : {
36
- future : "dadkh s yan %s",
37
- past : "yan %s",
38
- s : "imik",
39
- m : "minuḍ",
40
- mm : "%d minuḍ",
41
- h : "saɛa",
42
- hh : "%d tassaɛin",
43
- d : "ass",
44
- dd : "%d ossan",
45
- M : "ayowr",
46
- MM : "%d iyyirn",
47
- y : "asgas",
48
- yy : "%d isgasn"
36
+ future : 'dadkh s yan %s',
37
+ past : 'yan %s',
38
+ s : 'imik',
39
+ m : 'minuḍ',
40
+ mm : '%d minuḍ',
41
+ h : 'saɛa',
42
+ hh : '%d tassaɛin',
43
+ d : 'ass',
44
+ dd : '%d ossan',
45
+ M : 'ayowr',
46
+ MM : '%d iyyirn',
47
+ y : 'asgas',
48
+ yy : '%d isgasn'
49
49
  },
50
50
  week : {
51
51
  dow : 6, // Saturday is the first day of the week.
@@ -12,20 +12,20 @@
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('tzm', {
15
- months : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
16
- monthsShort : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
17
- weekdays : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
18
- weekdaysShort : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
19
- weekdaysMin : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
15
+ months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
16
+ monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
17
+ weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
18
+ weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19
+ weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
20
20
  longDateFormat : {
21
- LT : "HH:mm",
22
- L : "DD/MM/YYYY",
23
- LL : "D MMMM YYYY",
24
- LLL : "D MMMM YYYY LT",
25
- LLLL : "dddd D MMMM YYYY LT"
21
+ LT : 'HH:mm',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY LT',
25
+ LLLL : 'dddd D MMMM YYYY LT'
26
26
  },
27
27
  calendar : {
28
- sameDay: "[ⴰⵙⴷⵅ ⴴ] LT",
28
+ sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
29
29
  nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
30
30
  nextWeek: 'dddd [ⴴ] LT',
31
31
  lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
@@ -33,19 +33,19 @@
33
33
  sameElse: 'L'
34
34
  },
35
35
  relativeTime : {
36
- future : "ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",
37
- past : "ⵢⴰⵏ %s",
38
- s : "ⵉⵎⵉⴽ",
39
- m : "ⵎⵉⵏⵓⴺ",
40
- mm : "%d ⵎⵉⵏⵓⴺ",
41
- h : "ⵙⴰⵄⴰ",
42
- hh : "%d ⵜⴰⵙⵙⴰⵄⵉⵏ",
43
- d : "ⴰⵙⵙ",
44
- dd : "%d oⵙⵙⴰⵏ",
45
- M : "ⴰⵢoⵓⵔ",
46
- MM : "%d ⵉⵢⵢⵉⵔⵏ",
47
- y : "ⴰⵙⴳⴰⵙ",
48
- yy : "%d ⵉⵙⴳⴰⵙⵏ"
36
+ future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
37
+ past : 'ⵢⴰⵏ %s',
38
+ s : 'ⵉⵎⵉⴽ',
39
+ m : 'ⵎⵉⵏⵓⴺ',
40
+ mm : '%d ⵎⵉⵏⵓⴺ',
41
+ h : 'ⵙⴰⵄⴰ',
42
+ hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
43
+ d : 'ⴰⵙⵙ',
44
+ dd : '%d oⵙⵙⴰⵏ',
45
+ M : 'ⴰⵢoⵓⵔ',
46
+ MM : '%d ⵉⵢⵢⵉⵔⵏ',
47
+ y : 'ⴰⵙⴳⴰⵙ',
48
+ yy : '%d ⵉⵙⴳⴰⵙⵏ'
49
49
  },
50
50
  week : {
51
51
  dow : 6, // Saturday is the first day of the week.
@@ -73,16 +73,16 @@
73
73
 
74
74
  return moment.defineLocale('uk', {
75
75
  months : monthsCaseReplace,
76
- monthsShort : "січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),
76
+ monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
77
77
  weekdays : weekdaysCaseReplace,
78
- weekdaysShort : "нд_пн_вт_ср_чт_пт_сб".split("_"),
79
- weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"),
78
+ weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
79
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
80
80
  longDateFormat : {
81
- LT : "HH:mm",
82
- L : "DD.MM.YYYY",
83
- LL : "D MMMM YYYY р.",
84
- LLL : "D MMMM YYYY р., LT",
85
- LLLL : "dddd, D MMMM YYYY р., LT"
81
+ LT : 'HH:mm',
82
+ L : 'DD.MM.YYYY',
83
+ LL : 'D MMMM YYYY р.',
84
+ LLL : 'D MMMM YYYY р., LT',
85
+ LLLL : 'dddd, D MMMM YYYY р., LT'
86
86
  },
87
87
  calendar : {
88
88
  sameDay: processHoursFunction('[Сьогодні '),
@@ -105,18 +105,18 @@
105
105
  sameElse: 'L'
106
106
  },
107
107
  relativeTime : {
108
- future : "за %s",
109
- past : "%s тому",
110
- s : "декілька секунд",
108
+ future : 'за %s',
109
+ past : '%s тому',
110
+ s : 'декілька секунд',
111
111
  m : relativeTimeWithPlural,
112
112
  mm : relativeTimeWithPlural,
113
- h : "годину",
113
+ h : 'годину',
114
114
  hh : relativeTimeWithPlural,
115
- d : "день",
115
+ d : 'день',
116
116
  dd : relativeTimeWithPlural,
117
- M : "місяць",
117
+ M : 'місяць',
118
118
  MM : relativeTimeWithPlural,
119
- y : "рік",
119
+ y : 'рік',
120
120
  yy : relativeTimeWithPlural
121
121
  },
122
122
 
@@ -124,13 +124,13 @@
124
124
 
125
125
  meridiem : function (hour, minute, isLower) {
126
126
  if (hour < 4) {
127
- return "ночі";
127
+ return 'ночі';
128
128
  } else if (hour < 12) {
129
- return "ранку";
129
+ return 'ранку';
130
130
  } else if (hour < 17) {
131
- return "дня";
131
+ return 'дня';
132
132
  } else {
133
- return "вечора";
133
+ return 'вечора';
134
134
  }
135
135
  },
136
136
 
@@ -1,5 +1,5 @@
1
1
  // moment.js locale configuration
2
- // locale : uzbek
2
+ // locale : uzbek (uz)
3
3
  // author : Sardor Muminov : https://github.com/muminoff
4
4
 
5
5
  (function (factory) {
@@ -12,17 +12,17 @@
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('uz', {
15
- months : "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),
16
- monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
17
- weekdays : "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),
18
- weekdaysShort : "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),
19
- weekdaysMin : "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),
15
+ months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
16
+ monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
17
+ weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
18
+ weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
19
+ weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
20
20
  longDateFormat : {
21
- LT : "HH:mm",
22
- L : "DD/MM/YYYY",
23
- LL : "D MMMM YYYY",
24
- LLL : "D MMMM YYYY LT",
25
- LLLL : "D MMMM YYYY, dddd LT"
21
+ LT : 'HH:mm',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY LT',
25
+ LLLL : 'D MMMM YYYY, dddd LT'
26
26
  },
27
27
  calendar : {
28
28
  sameDay : '[Бугун соат] LT [да]',
@@ -33,19 +33,19 @@
33
33
  sameElse : 'L'
34
34
  },
35
35
  relativeTime : {
36
- future : "Якин %s ичида",
37
- past : "Бир неча %s олдин",
38
- s : "фурсат",
39
- m : "бир дакика",
40
- mm : "%d дакика",
41
- h : "бир соат",
42
- hh : "%d соат",
43
- d : "бир кун",
44
- dd : "%d кун",
45
- M : "бир ой",
46
- MM : "%d ой",
47
- y : "бир йил",
48
- yy : "%d йил"
36
+ future : 'Якин %s ичида',
37
+ past : 'Бир неча %s олдин',
38
+ s : 'фурсат',
39
+ m : 'бир дакика',
40
+ mm : '%d дакика',
41
+ h : 'бир соат',
42
+ hh : '%d соат',
43
+ d : 'бир кун',
44
+ dd : '%d кун',
45
+ M : 'бир ой',
46
+ MM : '%d ой',
47
+ y : 'бир йил',
48
+ yy : '%d йил'
49
49
  },
50
50
  week : {
51
51
  dow : 1, // Monday is the first day of the week.
@@ -12,24 +12,24 @@
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('vi', {
15
- months : "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),
16
- monthsShort : "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),
17
- weekdays : "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),
18
- weekdaysShort : "CN_T2_T3_T4_T5_T6_T7".split("_"),
19
- weekdaysMin : "CN_T2_T3_T4_T5_T6_T7".split("_"),
15
+ months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
16
+ monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
17
+ weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18
+ weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19
+ weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20
20
  longDateFormat : {
21
- LT : "HH:mm",
22
- L : "DD/MM/YYYY",
23
- LL : "D MMMM [năm] YYYY",
24
- LLL : "D MMMM [năm] YYYY LT",
25
- LLLL : "dddd, D MMMM [năm] YYYY LT",
26
- l : "DD/M/YYYY",
27
- ll : "D MMM YYYY",
28
- lll : "D MMM YYYY LT",
29
- llll : "ddd, D MMM YYYY LT"
21
+ LT : 'HH:mm',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM [năm] YYYY',
24
+ LLL : 'D MMMM [năm] YYYY LT',
25
+ LLLL : 'dddd, D MMMM [năm] YYYY LT',
26
+ l : 'DD/M/YYYY',
27
+ ll : 'D MMM YYYY',
28
+ lll : 'D MMM YYYY LT',
29
+ llll : 'ddd, D MMM YYYY LT'
30
30
  },
31
31
  calendar : {
32
- sameDay: "[Hôm nay lúc] LT",
32
+ sameDay: '[Hôm nay lúc] LT',
33
33
  nextDay: '[Ngày mai lúc] LT',
34
34
  nextWeek: 'dddd [tuần tới lúc] LT',
35
35
  lastDay: '[Hôm qua lúc] LT',
@@ -37,19 +37,19 @@
37
37
  sameElse: 'L'
38
38
  },
39
39
  relativeTime : {
40
- future : "%s tới",
41
- past : "%s trước",
42
- s : "vài giây",
43
- m : "một phút",
44
- mm : "%d phút",
45
- h : "một giờ",
46
- hh : "%d giờ",
47
- d : "một ngày",
48
- dd : "%d ngày",
49
- M : "một tháng",
50
- MM : "%d tháng",
51
- y : "một năm",
52
- yy : "%d năm"
40
+ future : '%s tới',
41
+ past : '%s trước',
42
+ s : 'vài giây',
43
+ m : 'một phút',
44
+ mm : '%d phút',
45
+ h : 'một giờ',
46
+ hh : '%d giờ',
47
+ d : 'một ngày',
48
+ dd : '%d ngày',
49
+ M : 'một tháng',
50
+ MM : '%d tháng',
51
+ y : 'một năm',
52
+ yy : '%d năm'
53
53
  },
54
54
  ordinal : function (number) {
55
55
  return number;
@@ -1,5 +1,5 @@
1
1
  // moment.js locale configuration
2
- // locale : chinese
2
+ // locale : chinese (zh-cn)
3
3
  // author : suupic : https://github.com/suupic
4
4
  // author : Zeno Zeng : https://github.com/zenozeng
5
5
 
@@ -13,91 +13,91 @@
13
13
  }
14
14
  }(function (moment) {
15
15
  return moment.defineLocale('zh-cn', {
16
- months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
17
- monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
18
- weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
19
- weekdaysShort : "周日_周一_周二_周三_周四_周五_周六".split("_"),
20
- weekdaysMin : "日_一_二_三_四_五_六".split("_"),
16
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
17
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
18
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
19
+ weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
20
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
21
21
  longDateFormat : {
22
- LT : "Ah点mm",
23
- L : "YYYY-MM-DD",
24
- LL : "YYYY年MMMD日",
25
- LLL : "YYYY年MMMD日LT",
26
- LLLL : "YYYY年MMMD日ddddLT",
27
- l : "YYYY-MM-DD",
28
- ll : "YYYY年MMMD日",
29
- lll : "YYYY年MMMD日LT",
30
- llll : "YYYY年MMMD日ddddLT"
22
+ LT : 'Ah点mm',
23
+ L : 'YYYY-MM-DD',
24
+ LL : 'YYYY年MMMD日',
25
+ LLL : 'YYYY年MMMD日LT',
26
+ LLLL : 'YYYY年MMMD日ddddLT',
27
+ l : 'YYYY-MM-DD',
28
+ ll : 'YYYY年MMMD日',
29
+ lll : 'YYYY年MMMD日LT',
30
+ llll : 'YYYY年MMMD日ddddLT'
31
31
  },
32
32
  meridiem : function (hour, minute, isLower) {
33
33
  var hm = hour * 100 + minute;
34
34
  if (hm < 600) {
35
- return "凌晨";
35
+ return '凌晨';
36
36
  } else if (hm < 900) {
37
- return "早上";
37
+ return '早上';
38
38
  } else if (hm < 1130) {
39
- return "上午";
39
+ return '上午';
40
40
  } else if (hm < 1230) {
41
- return "中午";
41
+ return '中午';
42
42
  } else if (hm < 1800) {
43
- return "下午";
43
+ return '下午';
44
44
  } else {
45
- return "晚上";
45
+ return '晚上';
46
46
  }
47
47
  },
48
48
  calendar : {
49
49
  sameDay : function () {
50
- return this.minutes() === 0 ? "[今天]Ah[点整]" : "[今天]LT";
50
+ return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
51
51
  },
52
52
  nextDay : function () {
53
- return this.minutes() === 0 ? "[明天]Ah[点整]" : "[明天]LT";
53
+ return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
54
54
  },
55
55
  lastDay : function () {
56
- return this.minutes() === 0 ? "[昨天]Ah[点整]" : "[昨天]LT";
56
+ return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
57
57
  },
58
58
  nextWeek : function () {
59
59
  var startOfWeek, prefix;
60
60
  startOfWeek = moment().startOf('week');
61
61
  prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
62
- return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
62
+ return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
63
63
  },
64
64
  lastWeek : function () {
65
65
  var startOfWeek, prefix;
66
66
  startOfWeek = moment().startOf('week');
67
67
  prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
68
- return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
68
+ return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
69
69
  },
70
70
  sameElse : 'LL'
71
71
  },
72
72
  ordinal : function (number, period) {
73
73
  switch (period) {
74
- case "d":
75
- case "D":
76
- case "DDD":
77
- return number + "";
78
- case "M":
79
- return number + "";
80
- case "w":
81
- case "W":
82
- return number + "";
74
+ case 'd':
75
+ case 'D':
76
+ case 'DDD':
77
+ return number + '';
78
+ case 'M':
79
+ return number + '';
80
+ case 'w':
81
+ case 'W':
82
+ return number + '';
83
83
  default:
84
84
  return number;
85
85
  }
86
86
  },
87
87
  relativeTime : {
88
- future : "%s内",
89
- past : "%s前",
90
- s : "几秒",
91
- m : "1分钟",
92
- mm : "%d分钟",
93
- h : "1小时",
94
- hh : "%d小时",
95
- d : "1天",
96
- dd : "%d天",
97
- M : "1个月",
98
- MM : "%d个月",
99
- y : "1年",
100
- yy : "%d年"
88
+ future : '%s内',
89
+ past : '%s前',
90
+ s : '几秒',
91
+ m : '1分钟',
92
+ mm : '%d分钟',
93
+ h : '1小时',
94
+ hh : '%d小时',
95
+ d : '1天',
96
+ dd : '%d天',
97
+ M : '1个月',
98
+ MM : '%d个月',
99
+ y : '1年',
100
+ yy : '%d年'
101
101
  },
102
102
  week : {
103
103
  // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效