js_stack 1.10.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +6 -6
  4. data/js_stack.gemspec +0 -1
  5. data/lib/js_stack/version.rb +1 -1
  6. data/lib/js_stack.rb +0 -1
  7. data/vendor/assets/javascripts/js_stack/base/backbone/1.2.3.js +1894 -0
  8. data/vendor/assets/javascripts/js_stack/base/backbone.js +1 -1
  9. data/vendor/assets/javascripts/js_stack/base/marionette/{2.4.1.js → 2.4.3.js} +265 -138
  10. data/vendor/assets/javascripts/js_stack/base/marionette.js +1 -1
  11. data/vendor/assets/javascripts/js_stack/plugins/backbone/stickit/{0.9.0.js → 0.9.2.js} +1 -1
  12. data/vendor/assets/javascripts/js_stack/plugins/backbone.stickit.js +1 -1
  13. data/vendor/assets/javascripts/js_stack/plugins/moment/2.10.6.js +3195 -0
  14. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/af.js +72 -0
  15. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-ma.js +58 -0
  16. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-sa.js +102 -0
  17. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-tn.js +56 -0
  18. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar.js +135 -0
  19. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/az.js +103 -0
  20. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/be.js +146 -0
  21. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bg.js +89 -0
  22. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bn.js +112 -0
  23. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bo.js +109 -0
  24. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/br.js +106 -0
  25. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bs.js +140 -0
  26. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ca.js +78 -0
  27. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cs.js +156 -0
  28. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cv.js +62 -0
  29. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cy.js +78 -0
  30. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/da.js +59 -0
  31. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de-at.js +75 -0
  32. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de.js +74 -0
  33. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/el.js +93 -0
  34. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-au.js +65 -0
  35. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-ca.js +62 -0
  36. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-gb.js +66 -0
  37. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eo.js +72 -0
  38. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/es.js +78 -0
  39. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/et.js +79 -0
  40. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eu.js +63 -0
  41. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fa.js +104 -0
  42. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fi.js +106 -0
  43. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fo.js +59 -0
  44. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr-ca.js +57 -0
  45. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr.js +61 -0
  46. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fy.js +70 -0
  47. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/gl.js +74 -0
  48. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/he.js +81 -0
  49. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hi.js +122 -0
  50. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hr.js +139 -0
  51. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hu.js +108 -0
  52. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hy-am.js +110 -0
  53. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/id.js +82 -0
  54. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/is.js +126 -0
  55. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/it.js +69 -0
  56. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ja.js +64 -0
  57. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/jv.js +82 -0
  58. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ka.js +102 -0
  59. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/km.js +57 -0
  60. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ko.js +67 -0
  61. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lb.js +133 -0
  62. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lt.js +124 -0
  63. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lv.js +95 -0
  64. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/me.js +108 -0
  65. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mk.js +89 -0
  66. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ml.js +70 -0
  67. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mr.js +120 -0
  68. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms-my.js +81 -0
  69. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms.js +81 -0
  70. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/my.js +92 -0
  71. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nb.js +60 -0
  72. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ne.js +122 -0
  73. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nl.js +70 -0
  74. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nn.js +59 -0
  75. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pl.js +104 -0
  76. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt-br.js +59 -0
  77. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt.js +63 -0
  78. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ro.js +73 -0
  79. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ru.js +163 -0
  80. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/si.js +64 -0
  81. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sk.js +157 -0
  82. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sl.js +159 -0
  83. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sq.js +68 -0
  84. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr-cyrl.js +107 -0
  85. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr.js +107 -0
  86. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sv.js +66 -0
  87. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ta.js +94 -0
  88. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/th.js +64 -0
  89. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tl-ph.js +61 -0
  90. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tr.js +89 -0
  91. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzl.js +84 -0
  92. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm-latn.js +57 -0
  93. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm.js +57 -0
  94. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uk.js +152 -0
  95. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uz.js +57 -0
  96. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/vi.js +65 -0
  97. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-cn.js +126 -0
  98. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-tw.js +100 -0
  99. data/vendor/assets/javascripts/js_stack/plugins/moment.js +1 -1
  100. data/vendor/assets/javascripts/js_stack/plugins/underscore/string/3.2.2.js +1186 -0
  101. data/vendor/assets/javascripts/js_stack/plugins/underscore.string.js +1 -1
  102. metadata +93 -20
@@ -0,0 +1,57 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
3
+ //! author : Abdel Said : https://github.com/abdelsaid
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
+
11
+
12
+ var tzm_latn = moment.defineLocale('tzm-latn', {
13
+ months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
14
+ monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
15
+ weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
16
+ weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17
+ weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS : 'HH:mm:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D MMMM YYYY',
23
+ LLL : 'D MMMM YYYY HH:mm',
24
+ LLLL : 'dddd D MMMM YYYY HH:mm'
25
+ },
26
+ calendar : {
27
+ sameDay: '[asdkh g] LT',
28
+ nextDay: '[aska g] LT',
29
+ nextWeek: 'dddd [g] LT',
30
+ lastDay: '[assant g] LT',
31
+ lastWeek: 'dddd [g] LT',
32
+ sameElse: 'L'
33
+ },
34
+ relativeTime : {
35
+ future : 'dadkh s yan %s',
36
+ past : 'yan %s',
37
+ s : 'imik',
38
+ m : 'minuḍ',
39
+ mm : '%d minuḍ',
40
+ h : 'saɛa',
41
+ hh : '%d tassaɛin',
42
+ d : 'ass',
43
+ dd : '%d ossan',
44
+ M : 'ayowr',
45
+ MM : '%d iyyirn',
46
+ y : 'asgas',
47
+ yy : '%d isgasn'
48
+ },
49
+ week : {
50
+ dow : 6, // Saturday is the first day of the week.
51
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
52
+ }
53
+ });
54
+
55
+ return tzm_latn;
56
+
57
+ }));
@@ -0,0 +1,57 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Morocco Central Atlas Tamaziɣt (tzm)
3
+ //! author : Abdel Said : https://github.com/abdelsaid
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
+
11
+
12
+ var tzm = moment.defineLocale('tzm', {
13
+ months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
14
+ monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
15
+ weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
16
+ weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17
+ weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS: 'HH:mm:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D MMMM YYYY',
23
+ LLL : 'D MMMM YYYY HH:mm',
24
+ LLLL : 'dddd D MMMM YYYY HH:mm'
25
+ },
26
+ calendar : {
27
+ sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
28
+ nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
29
+ nextWeek: 'dddd [ⴴ] LT',
30
+ lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
31
+ lastWeek: 'dddd [ⴴ] LT',
32
+ sameElse: 'L'
33
+ },
34
+ relativeTime : {
35
+ future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
36
+ past : 'ⵢⴰⵏ %s',
37
+ s : 'ⵉⵎⵉⴽ',
38
+ m : 'ⵎⵉⵏⵓⴺ',
39
+ mm : '%d ⵎⵉⵏⵓⴺ',
40
+ h : 'ⵙⴰⵄⴰ',
41
+ hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
42
+ d : 'ⴰⵙⵙ',
43
+ dd : '%d oⵙⵙⴰⵏ',
44
+ M : 'ⴰⵢoⵓⵔ',
45
+ MM : '%d ⵉⵢⵢⵉⵔⵏ',
46
+ y : 'ⴰⵙⴳⴰⵙ',
47
+ yy : '%d ⵉⵙⴳⴰⵙⵏ'
48
+ },
49
+ week : {
50
+ dow : 6, // Saturday is the first day of the week.
51
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
52
+ }
53
+ });
54
+
55
+ return tzm;
56
+
57
+ }));
@@ -0,0 +1,152 @@
1
+ //! moment.js locale configuration
2
+ //! locale : ukrainian (uk)
3
+ //! author : zemlanin : https://github.com/zemlanin
4
+ //! Author : Menelion Elensúle : https://github.com/Oire
5
+
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
+ function plural(word, num) {
14
+ var forms = word.split('_');
15
+ return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
16
+ }
17
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
18
+ var format = {
19
+ 'mm': 'хвилина_хвилини_хвилин',
20
+ 'hh': 'година_години_годин',
21
+ 'dd': 'день_дні_днів',
22
+ 'MM': 'місяць_місяці_місяців',
23
+ 'yy': 'рік_роки_років'
24
+ };
25
+ if (key === 'm') {
26
+ return withoutSuffix ? 'хвилина' : 'хвилину';
27
+ }
28
+ else if (key === 'h') {
29
+ return withoutSuffix ? 'година' : 'годину';
30
+ }
31
+ else {
32
+ return number + ' ' + plural(format[key], +number);
33
+ }
34
+ }
35
+ function monthsCaseReplace(m, format) {
36
+ var months = {
37
+ 'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
38
+ 'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
39
+ },
40
+ nounCase = (/D[oD]? *MMMM?/).test(format) ?
41
+ 'accusative' :
42
+ 'nominative';
43
+ return months[nounCase][m.month()];
44
+ }
45
+ function weekdaysCaseReplace(m, format) {
46
+ var weekdays = {
47
+ 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
48
+ 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
49
+ 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
50
+ },
51
+ nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
52
+ 'accusative' :
53
+ ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
54
+ 'genitive' :
55
+ 'nominative');
56
+ return weekdays[nounCase][m.day()];
57
+ }
58
+ function processHoursFunction(str) {
59
+ return function () {
60
+ return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
61
+ };
62
+ }
63
+
64
+ var uk = moment.defineLocale('uk', {
65
+ months : monthsCaseReplace,
66
+ monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
67
+ weekdays : weekdaysCaseReplace,
68
+ weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
69
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
70
+ longDateFormat : {
71
+ LT : 'HH:mm',
72
+ LTS : 'HH:mm:ss',
73
+ L : 'DD.MM.YYYY',
74
+ LL : 'D MMMM YYYY р.',
75
+ LLL : 'D MMMM YYYY р., HH:mm',
76
+ LLLL : 'dddd, D MMMM YYYY р., HH:mm'
77
+ },
78
+ calendar : {
79
+ sameDay: processHoursFunction('[Сьогодні '),
80
+ nextDay: processHoursFunction('[Завтра '),
81
+ lastDay: processHoursFunction('[Вчора '),
82
+ nextWeek: processHoursFunction('[У] dddd ['),
83
+ lastWeek: function () {
84
+ switch (this.day()) {
85
+ case 0:
86
+ case 3:
87
+ case 5:
88
+ case 6:
89
+ return processHoursFunction('[Минулої] dddd [').call(this);
90
+ case 1:
91
+ case 2:
92
+ case 4:
93
+ return processHoursFunction('[Минулого] dddd [').call(this);
94
+ }
95
+ },
96
+ sameElse: 'L'
97
+ },
98
+ relativeTime : {
99
+ future : 'за %s',
100
+ past : '%s тому',
101
+ s : 'декілька секунд',
102
+ m : relativeTimeWithPlural,
103
+ mm : relativeTimeWithPlural,
104
+ h : 'годину',
105
+ hh : relativeTimeWithPlural,
106
+ d : 'день',
107
+ dd : relativeTimeWithPlural,
108
+ M : 'місяць',
109
+ MM : relativeTimeWithPlural,
110
+ y : 'рік',
111
+ yy : relativeTimeWithPlural
112
+ },
113
+ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
114
+ meridiemParse: /ночі|ранку|дня|вечора/,
115
+ isPM: function (input) {
116
+ return /^(дня|вечора)$/.test(input);
117
+ },
118
+ meridiem : function (hour, minute, isLower) {
119
+ if (hour < 4) {
120
+ return 'ночі';
121
+ } else if (hour < 12) {
122
+ return 'ранку';
123
+ } else if (hour < 17) {
124
+ return 'дня';
125
+ } else {
126
+ return 'вечора';
127
+ }
128
+ },
129
+ ordinalParse: /\d{1,2}-(й|го)/,
130
+ ordinal: function (number, period) {
131
+ switch (period) {
132
+ case 'M':
133
+ case 'd':
134
+ case 'DDD':
135
+ case 'w':
136
+ case 'W':
137
+ return number + '-й';
138
+ case 'D':
139
+ return number + '-го';
140
+ default:
141
+ return number;
142
+ }
143
+ },
144
+ week : {
145
+ dow : 1, // Monday is the first day of the week.
146
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
147
+ }
148
+ });
149
+
150
+ return uk;
151
+
152
+ }));
@@ -0,0 +1,57 @@
1
+ //! moment.js locale configuration
2
+ //! locale : uzbek (uz)
3
+ //! author : Sardor Muminov : https://github.com/muminoff
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
+
11
+
12
+ var uz = moment.defineLocale('uz', {
13
+ months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
14
+ monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
15
+ weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
16
+ weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
17
+ weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS : 'HH:mm:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D MMMM YYYY',
23
+ LLL : 'D MMMM YYYY HH:mm',
24
+ LLLL : 'D MMMM YYYY, dddd HH:mm'
25
+ },
26
+ calendar : {
27
+ sameDay : '[Бугун соат] LT [да]',
28
+ nextDay : '[Эртага] LT [да]',
29
+ nextWeek : 'dddd [куни соат] LT [да]',
30
+ lastDay : '[Кеча соат] LT [да]',
31
+ lastWeek : '[Утган] dddd [куни соат] LT [да]',
32
+ sameElse : 'L'
33
+ },
34
+ relativeTime : {
35
+ future : 'Якин %s ичида',
36
+ past : 'Бир неча %s олдин',
37
+ s : 'фурсат',
38
+ m : 'бир дакика',
39
+ mm : '%d дакика',
40
+ h : 'бир соат',
41
+ hh : '%d соат',
42
+ d : 'бир кун',
43
+ dd : '%d кун',
44
+ M : 'бир ой',
45
+ MM : '%d ой',
46
+ y : 'бир йил',
47
+ yy : '%d йил'
48
+ },
49
+ week : {
50
+ dow : 1, // Monday is the first day of the week.
51
+ doy : 7 // The week that contains Jan 4th is the first week of the year.
52
+ }
53
+ });
54
+
55
+ return uz;
56
+
57
+ }));
@@ -0,0 +1,65 @@
1
+ //! moment.js locale configuration
2
+ //! locale : vietnamese (vi)
3
+ //! author : Bang Nguyen : https://github.com/bangnk
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
+
11
+
12
+ var vi = moment.defineLocale('vi', {
13
+ 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('_'),
14
+ monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
15
+ weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
16
+ weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
17
+ weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS : 'HH:mm:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D MMMM [năm] YYYY',
23
+ LLL : 'D MMMM [năm] YYYY HH:mm',
24
+ LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
25
+ l : 'DD/M/YYYY',
26
+ ll : 'D MMM YYYY',
27
+ lll : 'D MMM YYYY HH:mm',
28
+ llll : 'ddd, D MMM YYYY HH:mm'
29
+ },
30
+ calendar : {
31
+ sameDay: '[Hôm nay lúc] LT',
32
+ nextDay: '[Ngày mai lúc] LT',
33
+ nextWeek: 'dddd [tuần tới lúc] LT',
34
+ lastDay: '[Hôm qua lúc] LT',
35
+ lastWeek: 'dddd [tuần rồi lúc] LT',
36
+ sameElse: 'L'
37
+ },
38
+ relativeTime : {
39
+ future : '%s tới',
40
+ past : '%s trước',
41
+ s : 'vài giây',
42
+ m : 'một phút',
43
+ mm : '%d phút',
44
+ h : 'một giờ',
45
+ hh : '%d giờ',
46
+ d : 'một ngày',
47
+ dd : '%d ngày',
48
+ M : 'một tháng',
49
+ MM : '%d tháng',
50
+ y : 'một năm',
51
+ yy : '%d năm'
52
+ },
53
+ ordinalParse: /\d{1,2}/,
54
+ ordinal : function (number) {
55
+ return number;
56
+ },
57
+ week : {
58
+ dow : 1, // Monday is the first day of the week.
59
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
60
+ }
61
+ });
62
+
63
+ return vi;
64
+
65
+ }));
@@ -0,0 +1,126 @@
1
+ //! moment.js locale configuration
2
+ //! locale : chinese (zh-cn)
3
+ //! author : suupic : https://github.com/suupic
4
+ //! author : Zeno Zeng : https://github.com/zenozeng
5
+
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 zh_cn = moment.defineLocale('zh-cn', {
14
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
15
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
16
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
17
+ weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
18
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'Ah点mm分',
21
+ LTS : 'Ah点m分s秒',
22
+ L : 'YYYY-MM-DD',
23
+ LL : 'YYYY年MMMD日',
24
+ LLL : 'YYYY年MMMD日Ah点mm分',
25
+ LLLL : 'YYYY年MMMD日ddddAh点mm分',
26
+ l : 'YYYY-MM-DD',
27
+ ll : 'YYYY年MMMD日',
28
+ lll : 'YYYY年MMMD日Ah点mm分',
29
+ llll : 'YYYY年MMMD日ddddAh点mm分'
30
+ },
31
+ meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
32
+ meridiemHour: function (hour, meridiem) {
33
+ if (hour === 12) {
34
+ hour = 0;
35
+ }
36
+ if (meridiem === '凌晨' || meridiem === '早上' ||
37
+ meridiem === '上午') {
38
+ return hour;
39
+ } else if (meridiem === '下午' || meridiem === '晚上') {
40
+ return hour + 12;
41
+ } else {
42
+ // '中午'
43
+ return hour >= 11 ? hour : hour + 12;
44
+ }
45
+ },
46
+ meridiem : function (hour, minute, isLower) {
47
+ var hm = hour * 100 + minute;
48
+ if (hm < 600) {
49
+ return '凌晨';
50
+ } else if (hm < 900) {
51
+ return '早上';
52
+ } else if (hm < 1130) {
53
+ return '上午';
54
+ } else if (hm < 1230) {
55
+ return '中午';
56
+ } else if (hm < 1800) {
57
+ return '下午';
58
+ } else {
59
+ return '晚上';
60
+ }
61
+ },
62
+ calendar : {
63
+ sameDay : function () {
64
+ return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
65
+ },
66
+ nextDay : function () {
67
+ return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
68
+ },
69
+ lastDay : function () {
70
+ return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
71
+ },
72
+ nextWeek : function () {
73
+ var startOfWeek, prefix;
74
+ startOfWeek = moment().startOf('week');
75
+ prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
76
+ return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
77
+ },
78
+ lastWeek : function () {
79
+ var startOfWeek, prefix;
80
+ startOfWeek = moment().startOf('week');
81
+ prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
82
+ return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
83
+ },
84
+ sameElse : 'LL'
85
+ },
86
+ ordinalParse: /\d{1,2}(日|月|周)/,
87
+ ordinal : function (number, period) {
88
+ switch (period) {
89
+ case 'd':
90
+ case 'D':
91
+ case 'DDD':
92
+ return number + '日';
93
+ case 'M':
94
+ return number + '月';
95
+ case 'w':
96
+ case 'W':
97
+ return number + '周';
98
+ default:
99
+ return number;
100
+ }
101
+ },
102
+ relativeTime : {
103
+ future : '%s内',
104
+ past : '%s前',
105
+ s : '几秒',
106
+ m : '1 分钟',
107
+ mm : '%d 分钟',
108
+ h : '1 小时',
109
+ hh : '%d 小时',
110
+ d : '1 天',
111
+ dd : '%d 天',
112
+ M : '1 个月',
113
+ MM : '%d 个月',
114
+ y : '1 年',
115
+ yy : '%d 年'
116
+ },
117
+ week : {
118
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
119
+ dow : 1, // Monday is the first day of the week.
120
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
121
+ }
122
+ });
123
+
124
+ return zh_cn;
125
+
126
+ }));
@@ -0,0 +1,100 @@
1
+ //! moment.js locale configuration
2
+ //! locale : traditional chinese (zh-tw)
3
+ //! author : Ben : https://github.com/ben-lin
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
+
11
+
12
+ var zh_tw = moment.defineLocale('zh-tw', {
13
+ months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
14
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
15
+ weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
16
+ weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
17
+ weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'Ah點mm分',
20
+ LTS : 'Ah點m分s秒',
21
+ L : 'YYYY年MMMD日',
22
+ LL : 'YYYY年MMMD日',
23
+ LLL : 'YYYY年MMMD日Ah點mm分',
24
+ LLLL : 'YYYY年MMMD日ddddAh點mm分',
25
+ l : 'YYYY年MMMD日',
26
+ ll : 'YYYY年MMMD日',
27
+ lll : 'YYYY年MMMD日Ah點mm分',
28
+ llll : 'YYYY年MMMD日ddddAh點mm分'
29
+ },
30
+ meridiemParse: /早上|上午|中午|下午|晚上/,
31
+ meridiemHour : function (hour, meridiem) {
32
+ if (hour === 12) {
33
+ hour = 0;
34
+ }
35
+ if (meridiem === '早上' || meridiem === '上午') {
36
+ return hour;
37
+ } else if (meridiem === '中午') {
38
+ return hour >= 11 ? hour : hour + 12;
39
+ } else if (meridiem === '下午' || meridiem === '晚上') {
40
+ return hour + 12;
41
+ }
42
+ },
43
+ meridiem : function (hour, minute, isLower) {
44
+ var hm = hour * 100 + minute;
45
+ if (hm < 900) {
46
+ return '早上';
47
+ } else if (hm < 1130) {
48
+ return '上午';
49
+ } else if (hm < 1230) {
50
+ return '中午';
51
+ } else if (hm < 1800) {
52
+ return '下午';
53
+ } else {
54
+ return '晚上';
55
+ }
56
+ },
57
+ calendar : {
58
+ sameDay : '[今天]LT',
59
+ nextDay : '[明天]LT',
60
+ nextWeek : '[下]ddddLT',
61
+ lastDay : '[昨天]LT',
62
+ lastWeek : '[上]ddddLT',
63
+ sameElse : 'L'
64
+ },
65
+ ordinalParse: /\d{1,2}(日|月|週)/,
66
+ ordinal : function (number, period) {
67
+ switch (period) {
68
+ case 'd' :
69
+ case 'D' :
70
+ case 'DDD' :
71
+ return number + '日';
72
+ case 'M' :
73
+ return number + '月';
74
+ case 'w' :
75
+ case 'W' :
76
+ return number + '週';
77
+ default :
78
+ return number;
79
+ }
80
+ },
81
+ relativeTime : {
82
+ future : '%s內',
83
+ past : '%s前',
84
+ s : '幾秒',
85
+ m : '一分鐘',
86
+ mm : '%d分鐘',
87
+ h : '一小時',
88
+ hh : '%d小時',
89
+ d : '一天',
90
+ dd : '%d天',
91
+ M : '一個月',
92
+ MM : '%d個月',
93
+ y : '一年',
94
+ yy : '%d年'
95
+ }
96
+ });
97
+
98
+ return zh_tw;
99
+
100
+ }));
@@ -1 +1 @@
1
- //= require moment
1
+ //= require js_stack/plugins/moment/2.10.6