effective_bootstrap 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/app/assets/javascripts/effective_date/input.js +1 -1
  4. data/app/assets/javascripts/effective_datetime/input.js +1 -1
  5. data/app/assets/javascripts/effective_time/input.js +1 -1
  6. data/app/assets/javascripts/moment/locale/af.js +72 -0
  7. data/app/assets/javascripts/moment/locale/ar-dz.js +58 -0
  8. data/app/assets/javascripts/moment/locale/ar-kw.js +58 -0
  9. data/app/assets/javascripts/moment/locale/ar-ly.js +121 -0
  10. data/app/assets/javascripts/moment/locale/ar-ma.js +58 -0
  11. data/app/assets/javascripts/moment/locale/ar-sa.js +103 -0
  12. data/app/assets/javascripts/moment/locale/ar-tn.js +58 -0
  13. data/app/assets/javascripts/moment/locale/ar.js +134 -0
  14. data/app/assets/javascripts/moment/locale/az.js +104 -0
  15. data/app/assets/javascripts/moment/locale/be.js +131 -0
  16. data/app/assets/javascripts/moment/locale/bg.js +89 -0
  17. data/app/assets/javascripts/moment/locale/bm.js +57 -0
  18. data/app/assets/javascripts/moment/locale/bn.js +118 -0
  19. data/app/assets/javascripts/moment/locale/bo.js +118 -0
  20. data/app/assets/javascripts/moment/locale/br.js +107 -0
  21. data/app/assets/javascripts/moment/locale/bs.js +150 -0
  22. data/app/assets/javascripts/moment/locale/ca.js +87 -0
  23. data/app/assets/javascripts/moment/locale/cs.js +171 -0
  24. data/app/assets/javascripts/moment/locale/cv.js +62 -0
  25. data/app/assets/javascripts/moment/locale/cy.js +79 -0
  26. data/app/assets/javascripts/moment/locale/da.js +59 -0
  27. data/app/assets/javascripts/moment/locale/de-at.js +75 -0
  28. data/app/assets/javascripts/moment/locale/de-ch.js +75 -0
  29. data/app/assets/javascripts/moment/locale/de.js +75 -0
  30. data/app/assets/javascripts/moment/locale/dv.js +98 -0
  31. data/app/assets/javascripts/moment/locale/el.js +99 -0
  32. data/app/assets/javascripts/moment/locale/en-SG.js +66 -0
  33. data/app/assets/javascripts/moment/locale/en-au.js +66 -0
  34. data/app/assets/javascripts/moment/locale/en-ca.js +62 -0
  35. data/app/assets/javascripts/moment/locale/en-gb.js +66 -0
  36. data/app/assets/javascripts/moment/locale/en-ie.js +66 -0
  37. data/app/assets/javascripts/moment/locale/en-il.js +61 -0
  38. data/app/assets/javascripts/moment/locale/en-nz.js +66 -0
  39. data/app/assets/javascripts/moment/locale/eo.js +70 -0
  40. data/app/assets/javascripts/moment/locale/es-do.js +91 -0
  41. data/app/assets/javascripts/moment/locale/es-us.js +91 -0
  42. data/app/assets/javascripts/moment/locale/es.js +91 -0
  43. data/app/assets/javascripts/moment/locale/et.js +79 -0
  44. data/app/assets/javascripts/moment/locale/eu.js +65 -0
  45. data/app/assets/javascripts/moment/locale/fa.js +105 -0
  46. data/app/assets/javascripts/moment/locale/fi.js +108 -0
  47. data/app/assets/javascripts/moment/locale/fo.js +59 -0
  48. data/app/assets/javascripts/moment/locale/fr-ca.js +73 -0
  49. data/app/assets/javascripts/moment/locale/fr-ch.js +77 -0
  50. data/app/assets/javascripts/moment/locale/fr.js +82 -0
  51. data/app/assets/javascripts/moment/locale/fy.js +74 -0
  52. data/app/assets/javascripts/moment/locale/ga.js +76 -0
  53. data/app/assets/javascripts/moment/locale/gd.js +75 -0
  54. data/app/assets/javascripts/moment/locale/gl.js +76 -0
  55. data/app/assets/javascripts/moment/locale/gom-latn.js +122 -0
  56. data/app/assets/javascripts/moment/locale/gu.js +123 -0
  57. data/app/assets/javascripts/moment/locale/he.js +96 -0
  58. data/app/assets/javascripts/moment/locale/hi.js +123 -0
  59. data/app/assets/javascripts/moment/locale/hr.js +153 -0
  60. data/app/assets/javascripts/moment/locale/hu.js +109 -0
  61. data/app/assets/javascripts/moment/locale/hy-am.js +94 -0
  62. data/app/assets/javascripts/moment/locale/id.js +81 -0
  63. data/app/assets/javascripts/moment/locale/is.js +131 -0
  64. data/app/assets/javascripts/moment/locale/it-ch.js +68 -0
  65. data/app/assets/javascripts/moment/locale/it.js +68 -0
  66. data/app/assets/javascripts/moment/locale/ja.js +91 -0
  67. data/app/assets/javascripts/moment/locale/jv.js +81 -0
  68. data/app/assets/javascripts/moment/locale/ka.js +88 -0
  69. data/app/assets/javascripts/moment/locale/kk.js +86 -0
  70. data/app/assets/javascripts/moment/locale/km.js +109 -0
  71. data/app/assets/javascripts/moment/locale/kn.js +125 -0
  72. data/app/assets/javascripts/moment/locale/ko.js +80 -0
  73. data/app/assets/javascripts/moment/locale/ku.js +118 -0
  74. data/app/assets/javascripts/moment/locale/ky.js +86 -0
  75. data/app/assets/javascripts/moment/locale/lb.js +135 -0
  76. data/app/assets/javascripts/moment/locale/lo.js +69 -0
  77. data/app/assets/javascripts/moment/locale/lt.js +117 -0
  78. data/app/assets/javascripts/moment/locale/lv.js +96 -0
  79. data/app/assets/javascripts/moment/locale/me.js +111 -0
  80. data/app/assets/javascripts/moment/locale/mi.js +63 -0
  81. data/app/assets/javascripts/moment/locale/mk.js +89 -0
  82. data/app/assets/javascripts/moment/locale/ml.js +80 -0
  83. data/app/assets/javascripts/moment/locale/mn.js +103 -0
  84. data/app/assets/javascripts/moment/locale/mr.js +159 -0
  85. data/app/assets/javascripts/moment/locale/ms-my.js +81 -0
  86. data/app/assets/javascripts/moment/locale/ms.js +81 -0
  87. data/app/assets/javascripts/moment/locale/mt.js +59 -0
  88. data/app/assets/javascripts/moment/locale/my.js +92 -0
  89. data/app/assets/javascripts/moment/locale/nb.js +61 -0
  90. data/app/assets/javascripts/moment/locale/ne.js +122 -0
  91. data/app/assets/javascripts/moment/locale/nl-be.js +86 -0
  92. data/app/assets/javascripts/moment/locale/nl.js +86 -0
  93. data/app/assets/javascripts/moment/locale/nn.js +59 -0
  94. data/app/assets/javascripts/moment/locale/pa-in.js +123 -0
  95. data/app/assets/javascripts/moment/locale/pl.js +125 -0
  96. data/app/assets/javascripts/moment/locale/pt-br.js +60 -0
  97. data/app/assets/javascripts/moment/locale/pt.js +64 -0
  98. data/app/assets/javascripts/moment/locale/ro.js +74 -0
  99. data/app/assets/javascripts/moment/locale/ru.js +181 -0
  100. data/app/assets/javascripts/moment/locale/sd.js +97 -0
  101. data/app/assets/javascripts/moment/locale/se.js +59 -0
  102. data/app/assets/javascripts/moment/locale/si.js +70 -0
  103. data/app/assets/javascripts/moment/locale/sk.js +155 -0
  104. data/app/assets/javascripts/moment/locale/sl.js +172 -0
  105. data/app/assets/javascripts/moment/locale/sq.js +67 -0
  106. data/app/assets/javascripts/moment/locale/sr-cyrl.js +110 -0
  107. data/app/assets/javascripts/moment/locale/sr.js +110 -0
  108. data/app/assets/javascripts/moment/locale/ss.js +87 -0
  109. data/app/assets/javascripts/moment/locale/sv.js +68 -0
  110. data/app/assets/javascripts/moment/locale/sw.js +58 -0
  111. data/app/assets/javascripts/moment/locale/ta.js +128 -0
  112. data/app/assets/javascripts/moment/locale/te.js +88 -0
  113. data/app/assets/javascripts/moment/locale/tet.js +66 -0
  114. data/app/assets/javascripts/moment/locale/tg.js +115 -0
  115. data/app/assets/javascripts/moment/locale/th.js +66 -0
  116. data/app/assets/javascripts/moment/locale/tl-ph.js +61 -0
  117. data/app/assets/javascripts/moment/locale/tlh.js +121 -0
  118. data/app/assets/javascripts/moment/locale/tr.js +93 -0
  119. data/app/assets/javascripts/moment/locale/tzl.js +90 -0
  120. data/app/assets/javascripts/moment/locale/tzm-latn.js +57 -0
  121. data/app/assets/javascripts/moment/locale/tzm.js +57 -0
  122. data/app/assets/javascripts/moment/locale/ug-cn.js +118 -0
  123. data/app/assets/javascripts/moment/locale/uk.js +153 -0
  124. data/app/assets/javascripts/moment/locale/ur.js +97 -0
  125. data/app/assets/javascripts/moment/locale/uz-latn.js +57 -0
  126. data/app/assets/javascripts/moment/locale/uz.js +57 -0
  127. data/app/assets/javascripts/moment/locale/vi.js +78 -0
  128. data/app/assets/javascripts/moment/locale/x-pseudo.js +67 -0
  129. data/app/assets/javascripts/moment/locale/yo.js +59 -0
  130. data/app/assets/javascripts/moment/locale/zh-cn.js +109 -0
  131. data/app/assets/javascripts/moment/locale/zh-hk.js +102 -0
  132. data/app/assets/javascripts/moment/locale/zh-tw.js +102 -0
  133. data/app/assets/javascripts/moment/moment.js +4603 -0
  134. data/lib/effective_bootstrap/version.rb +1 -1
  135. metadata +129 -2
  136. data/app/assets/javascripts/effective_datetime/moment.js +0 -4535
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a7f4239062483b68b4a901b2a8da1b34629183f
4
- data.tar.gz: 8115a3f9e017c4b81a6aa894bc01d879acf24118
3
+ metadata.gz: b94d6d8ff9faaee0de2d279f110abc891d17660c
4
+ data.tar.gz: aed6ae67c2b0a2fad5954169c57ceea75f49b5fc
5
5
  SHA512:
6
- metadata.gz: 657e02fd297b297a68a0b828ed017d41a22c881f20a38dd520947215a8a23cbf21e7619ca409b86a63a6d88b923778468398c052759497a7117dd3c1a943a046
7
- data.tar.gz: 0b7b34b98407438ac7aaaa37828d2e007b925bd6da340feb870d92a04149955ca8c400e9cf390e063311ba7a534232a5db7c46895df976028981a6a4d9568f33
6
+ metadata.gz: 8eaacce0a37db0c565a64d9474719af82b9b4b87b4e066c20ccfe119421f32375b98f5360a60f9e2d1e729a9757715c9c4d9b85ca4c900d4f992fad86b7b574e
7
+ data.tar.gz: fbe21177b832c9e6234e32b92c616ee4f6bac96c287928b01acf2f2c0b76aacfeb35aad519f3e22453f67935149cd2db850e7eaf9a9665a2f52670392d7c24f7
data/README.md CHANGED
@@ -33,6 +33,10 @@ Add the following to your `application.js`:
33
33
  //= require popper
34
34
  //= require bootstrap
35
35
  //= require effective_bootstrap
36
+
37
+ # The date picker form inputs use momentjs locales. To add a locale:
38
+ //= require moment/locale/es
39
+ //= require moment/locale/nl
36
40
  ```
37
41
 
38
42
  And to your `application.scss`:
@@ -1,4 +1,4 @@
1
- //= require ../effective_datetime/moment
1
+ //= require ../moment/moment
2
2
  //= require ../effective_datetime/bootstrap-datetimepicker
3
3
  //= require ../effective_datetime/overrides
4
4
  //= require ../effective_datetime/turbolinks
@@ -1,4 +1,4 @@
1
- //= require ./moment
1
+ //= require ../moment/moment
2
2
  //= require ./bootstrap-datetimepicker
3
3
  //= require ./overrides
4
4
  //= require ./turbolinks
@@ -1,4 +1,4 @@
1
- //= require ../effective_datetime/moment
1
+ //= require ../moment/moment
2
2
  //= require ../effective_datetime/bootstrap-datetimepicker
3
3
  //= require ../effective_datetime/overrides
4
4
  //= require ../effective_datetime/turbolinks
@@ -0,0 +1,72 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, (function (moment) { 'use strict';
9
+
10
+
11
+ var af = moment.defineLocale('af', {
12
+ months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
13
+ monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
14
+ weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
15
+ weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
16
+ weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
17
+ meridiemParse: /vm|nm/i,
18
+ isPM : function (input) {
19
+ return /^nm$/i.test(input);
20
+ },
21
+ meridiem : function (hours, minutes, isLower) {
22
+ if (hours < 12) {
23
+ return isLower ? 'vm' : 'VM';
24
+ } else {
25
+ return isLower ? 'nm' : 'NM';
26
+ }
27
+ },
28
+ longDateFormat : {
29
+ LT : 'HH:mm',
30
+ LTS : 'HH:mm:ss',
31
+ L : 'DD/MM/YYYY',
32
+ LL : 'D MMMM YYYY',
33
+ LLL : 'D MMMM YYYY HH:mm',
34
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
35
+ },
36
+ calendar : {
37
+ sameDay : '[Vandag om] LT',
38
+ nextDay : '[Môre om] LT',
39
+ nextWeek : 'dddd [om] LT',
40
+ lastDay : '[Gister om] LT',
41
+ lastWeek : '[Laas] dddd [om] LT',
42
+ sameElse : 'L'
43
+ },
44
+ relativeTime : {
45
+ future : 'oor %s',
46
+ past : '%s gelede',
47
+ s : '\'n paar sekondes',
48
+ ss : '%d sekondes',
49
+ m : '\'n minuut',
50
+ mm : '%d minute',
51
+ h : '\'n uur',
52
+ hh : '%d ure',
53
+ d : '\'n dag',
54
+ dd : '%d dae',
55
+ M : '\'n maand',
56
+ MM : '%d maande',
57
+ y : '\'n jaar',
58
+ yy : '%d jaar'
59
+ },
60
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
61
+ ordinal : function (number) {
62
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
63
+ },
64
+ week : {
65
+ dow : 1, // Maandag is die eerste dag van die week.
66
+ doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
67
+ }
68
+ });
69
+
70
+ return af;
71
+
72
+ })));
@@ -0,0 +1,58 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, (function (moment) { 'use strict';
9
+
10
+
11
+ var arDz = moment.defineLocale('ar-dz', {
12
+ months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
13
+ monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
14
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15
+ weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
16
+ weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
17
+ weekdaysParseExact : true,
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
+ ss : '%d ثانية',
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
+ },
50
+ week : {
51
+ dow : 0, // Sunday is the first day of the week.
52
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
53
+ }
54
+ });
55
+
56
+ return arDz;
57
+
58
+ })));
@@ -0,0 +1,58 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, (function (moment) { 'use strict';
9
+
10
+
11
+ var arKw = moment.defineLocale('ar-kw', {
12
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
13
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
14
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
16
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17
+ weekdaysParseExact : true,
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
+ ss : '%d ثانية',
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
+ },
50
+ week : {
51
+ dow : 0, // Sunday is the first day of the week.
52
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
53
+ }
54
+ });
55
+
56
+ return arKw;
57
+
58
+ })));
@@ -0,0 +1,121 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, (function (moment) { 'use strict';
9
+
10
+
11
+ var symbolMap = {
12
+ '1': '1',
13
+ '2': '2',
14
+ '3': '3',
15
+ '4': '4',
16
+ '5': '5',
17
+ '6': '6',
18
+ '7': '7',
19
+ '8': '8',
20
+ '9': '9',
21
+ '0': '0'
22
+ }, pluralForm = function (n) {
23
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
24
+ }, plurals = {
25
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
26
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
27
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
28
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
29
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
30
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
31
+ }, pluralize = function (u) {
32
+ return function (number, withoutSuffix, string, isFuture) {
33
+ var f = pluralForm(number),
34
+ str = plurals[u][pluralForm(number)];
35
+ if (f === 2) {
36
+ str = str[withoutSuffix ? 0 : 1];
37
+ }
38
+ return str.replace(/%d/i, number);
39
+ };
40
+ }, months = [
41
+ 'يناير',
42
+ 'فبراير',
43
+ 'مارس',
44
+ 'أبريل',
45
+ 'مايو',
46
+ 'يونيو',
47
+ 'يوليو',
48
+ 'أغسطس',
49
+ 'سبتمبر',
50
+ 'أكتوبر',
51
+ 'نوفمبر',
52
+ 'ديسمبر'
53
+ ];
54
+
55
+ var arLy = moment.defineLocale('ar-ly', {
56
+ months : months,
57
+ monthsShort : months,
58
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
59
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
60
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
61
+ weekdaysParseExact : true,
62
+ longDateFormat : {
63
+ LT : 'HH:mm',
64
+ LTS : 'HH:mm:ss',
65
+ L : 'D/\u200FM/\u200FYYYY',
66
+ LL : 'D MMMM YYYY',
67
+ LLL : 'D MMMM YYYY HH:mm',
68
+ LLLL : 'dddd D MMMM YYYY HH:mm'
69
+ },
70
+ meridiemParse: /ص|م/,
71
+ isPM : function (input) {
72
+ return 'م' === input;
73
+ },
74
+ meridiem : function (hour, minute, isLower) {
75
+ if (hour < 12) {
76
+ return 'ص';
77
+ } else {
78
+ return 'م';
79
+ }
80
+ },
81
+ calendar : {
82
+ sameDay: '[اليوم عند الساعة] LT',
83
+ nextDay: '[غدًا عند الساعة] LT',
84
+ nextWeek: 'dddd [عند الساعة] LT',
85
+ lastDay: '[أمس عند الساعة] LT',
86
+ lastWeek: 'dddd [عند الساعة] LT',
87
+ sameElse: 'L'
88
+ },
89
+ relativeTime : {
90
+ future : 'بعد %s',
91
+ past : 'منذ %s',
92
+ s : pluralize('s'),
93
+ ss : pluralize('s'),
94
+ m : pluralize('m'),
95
+ mm : pluralize('m'),
96
+ h : pluralize('h'),
97
+ hh : pluralize('h'),
98
+ d : pluralize('d'),
99
+ dd : pluralize('d'),
100
+ M : pluralize('M'),
101
+ MM : pluralize('M'),
102
+ y : pluralize('y'),
103
+ yy : pluralize('y')
104
+ },
105
+ preparse: function (string) {
106
+ return string.replace(/،/g, ',');
107
+ },
108
+ postformat: function (string) {
109
+ return string.replace(/\d/g, function (match) {
110
+ return symbolMap[match];
111
+ }).replace(/,/g, '،');
112
+ },
113
+ week : {
114
+ dow : 6, // Saturday is the first day of the week.
115
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
116
+ }
117
+ });
118
+
119
+ return arLy;
120
+
121
+ })));
@@ -0,0 +1,58 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, (function (moment) { 'use strict';
9
+
10
+
11
+ var arMa = moment.defineLocale('ar-ma', {
12
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
13
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
14
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
16
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17
+ weekdaysParseExact : true,
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
+ ss : '%d ثانية',
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
+ },
50
+ week : {
51
+ dow : 6, // Saturday is the first day of the week.
52
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
53
+ }
54
+ });
55
+
56
+ return arMa;
57
+
58
+ })));
@@ -0,0 +1,103 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, (function (moment) { 'use strict';
9
+
10
+
11
+ var symbolMap = {
12
+ '1': '١',
13
+ '2': '٢',
14
+ '3': '٣',
15
+ '4': '٤',
16
+ '5': '٥',
17
+ '6': '٦',
18
+ '7': '٧',
19
+ '8': '٨',
20
+ '9': '٩',
21
+ '0': '٠'
22
+ }, numberMap = {
23
+ '١': '1',
24
+ '٢': '2',
25
+ '٣': '3',
26
+ '٤': '4',
27
+ '٥': '5',
28
+ '٦': '6',
29
+ '٧': '7',
30
+ '٨': '8',
31
+ '٩': '9',
32
+ '٠': '0'
33
+ };
34
+
35
+ var arSa = moment.defineLocale('ar-sa', {
36
+ months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
37
+ monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
38
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
39
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
40
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
41
+ weekdaysParseExact : true,
42
+ longDateFormat : {
43
+ LT : 'HH:mm',
44
+ LTS : 'HH:mm:ss',
45
+ L : 'DD/MM/YYYY',
46
+ LL : 'D MMMM YYYY',
47
+ LLL : 'D MMMM YYYY HH:mm',
48
+ LLLL : 'dddd D MMMM YYYY HH:mm'
49
+ },
50
+ meridiemParse: /ص|م/,
51
+ isPM : function (input) {
52
+ return 'م' === input;
53
+ },
54
+ meridiem : function (hour, minute, isLower) {
55
+ if (hour < 12) {
56
+ return 'ص';
57
+ } else {
58
+ return 'م';
59
+ }
60
+ },
61
+ calendar : {
62
+ sameDay: '[اليوم على الساعة] LT',
63
+ nextDay: '[غدا على الساعة] LT',
64
+ nextWeek: 'dddd [على الساعة] LT',
65
+ lastDay: '[أمس على الساعة] LT',
66
+ lastWeek: 'dddd [على الساعة] LT',
67
+ sameElse: 'L'
68
+ },
69
+ relativeTime : {
70
+ future : 'في %s',
71
+ past : 'منذ %s',
72
+ s : 'ثوان',
73
+ ss : '%d ثانية',
74
+ m : 'دقيقة',
75
+ mm : '%d دقائق',
76
+ h : 'ساعة',
77
+ hh : '%d ساعات',
78
+ d : 'يوم',
79
+ dd : '%d أيام',
80
+ M : 'شهر',
81
+ MM : '%d أشهر',
82
+ y : 'سنة',
83
+ yy : '%d سنوات'
84
+ },
85
+ preparse: function (string) {
86
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
87
+ return numberMap[match];
88
+ }).replace(/،/g, ',');
89
+ },
90
+ postformat: function (string) {
91
+ return string.replace(/\d/g, function (match) {
92
+ return symbolMap[match];
93
+ }).replace(/,/g, '،');
94
+ },
95
+ week : {
96
+ dow : 0, // Sunday is the first day of the week.
97
+ doy : 6 // The week that contains Jan 6th is the first week of the year.
98
+ }
99
+ });
100
+
101
+ return arSa;
102
+
103
+ })));