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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4b9e9c02dbe78ad6d4eb3239854c963a5f23b725
4
- data.tar.gz: ada797a9bc2db96877bb52923dbc000a32cfc720
2
+ SHA256:
3
+ metadata.gz: a3de3d0bd118bca7104b63a2dd3e429d57c21842dbbfed8d902ee96e59b29316
4
+ data.tar.gz: abf7bd2b333d676c3e9a7bcc3467160c417cc7e56d48b4a45e169143dd4fc618
5
5
  SHA512:
6
- metadata.gz: 90ce6f19b0a7a30df26cbb0b3387956364913ee3ca0c919c7f99a28b44a9ee83cf967ae7e4f35ff68c4b2a5f6fdf101cc2757b283a30678e35a09c121960d531
7
- data.tar.gz: 1fb792d48d16c571baf5aabbb2d666fb8db63a0bdc7e643bd8bf767a17a0e70ec9c9e6d33890cfe433c4369127443a2c58de1475f3722fe78ab3a438a9100976
6
+ metadata.gz: 308b133e705b60ccf10c56a3f4fa4fbc1d32ac31f9f414e6709694e56c4f7b659067911a56ee6bae5c2dcedab0bfd4c0647a945b5cc2dea86ad5e8d39b4c84f1
7
+ data.tar.gz: 9d0d8cf3c344648890bd4145d47622c39b1c2d2c3f27f879c8beec2fa2e6ed55319ca70438dfc6c49bd70154203831fe7b5482a1aaaee88675d3d61973e5d3c0
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2011 YOURNAME
1
+ Copyright 2011 Derek Prior
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # momentjs-rails
2
2
 
3
- momentjs-rails wraps the [Moment.js](http://momentjs.com/) library in a rails engine for simple
4
- use with the asset pipeline provided by Rails 3.1 and higher. The gem includes the development (non-minified)
5
- source for ease of exploration. The asset pipeline will minify in production.
6
-
7
- Moment.js is "a lightweight javascript date library for parsing, manipulating, and formatting dates."
8
- Moment.js does not modify the native Date object. Rather, it creates a wrapper for it. Please see the
3
+ momentjs-rails wraps the [Moment.js](http://momentjs.com/) library in a rails
4
+ engine for simple use with the asset pipeline provided by Rails 3.1 and higher.
5
+ The gem includes the development (non-minified) source for ease of exploration.
6
+ The asset pipeline will minify in production.
7
+
8
+ Moment.js is "a lightweight javascript date library for parsing, manipulating,
9
+ and formatting dates." Moment.js does not modify the native Date object. Rather,
10
+ it creates a wrapper for it. Please see the
9
11
  [documentation](http://momentjs.com/docs/) for details.
10
12
 
11
13
  ## Usage
@@ -24,9 +26,9 @@ If you want to include a localization file, also add the following directive:
24
26
 
25
27
  ## Versioning
26
28
 
27
- momentjs-rails 2.8.4 == Moment.js 2.8.4
28
-
29
- Every attempt is made to mirror the currently shipping Momentum.js version number wherever possible.
30
- The major, minor, and patch version numbers will always represent the Momentum.js version. Should a gem
31
- bug be discovered, a 4th version identifier will be added and incremented.
29
+ momentjs-rails 2.20.1 == Moment.js 2.20.1
32
30
 
31
+ Every attempt is made to mirror the currently shipping Moment.js version number
32
+ wherever possible. The major, minor, and patch version numbers will always
33
+ represent the Moment.js version. Should a gem bug be discovered, a 4th version
34
+ identifier will be added and incremented.
data/news.md CHANGED
@@ -1,3 +1,27 @@
1
+ ### Version 2.20.1 (2018-03-22)
2
+ - Updated Moment.js to 2.20.1
3
+
4
+ ### Version 2.17.1 (2017-01-15)
5
+ - Updated Moment.js to 2.17.1
6
+
7
+ ### Version 2.15.1 (2016-09-22)
8
+ - Updated Moment.js to 2.15.1
9
+
10
+ ### Version 2.11.1 (2016-04-12)
11
+ - Updated Moment.js to 2.11.1
12
+
13
+ ### Version 2.11.0 (2016-01-08)
14
+ - Updated Moment.js to 2.11.0
15
+
16
+ ### Version 2.10.6 (2015-10-06)
17
+ - Updated Moment.js to 2.10.6
18
+
19
+ ### Version 2.10.3 (2015-06-09)
20
+ - Updated Moment.js to 2.10.3
21
+
22
+ ### Version 2.10.2 (2015-04-23)
23
+ - Updated Moment.js to 2.10.2
24
+
1
25
  ### Version 2.9.0 (2015-01-12)
2
26
  - Updated Moment.js to 2.9.0
3
27
 
@@ -72,10 +96,3 @@
72
96
 
73
97
  ### Version 1.3.0 (2012-01-10)
74
98
  - Initial Release
75
-
76
-
77
-
78
-
79
-
80
-
81
-
@@ -8,7 +8,7 @@ class NavigationTest < ActionDispatch::IntegrationTest
8
8
 
9
9
  test 'momentjs response is for the expected version' do
10
10
  get '/assets/moment.js'
11
- assert_match(/VERSION = '2\.9\.0'/, @response.body)
11
+ assert_match(/hooks.version = '2\.20\.1'/, @response.body)
12
12
  end
13
13
 
14
14
  test 'can access momentjs translation' do
@@ -16,4 +16,3 @@ class NavigationTest < ActionDispatch::IntegrationTest
16
16
  assert_response :success
17
17
  end
18
18
  end
19
-
@@ -1,71 +1,74 @@
1
- // moment.js locale configuration
2
- // locale : afrikaans (af)
3
- // author : Werner Mollentze : https://github.com/wernerm
1
+ //! moment.js locale configuration
2
+ //! locale : Afrikaans [af]
3
+ //! author : Werner Mollentze : https://github.com/wernerm
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
- return moment.defineLocale('af', {
15
- months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
16
- monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
17
- weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
18
- weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
19
- weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
20
- meridiemParse: /vm|nm/i,
21
- isPM : function (input) {
22
- return /^nm$/i.test(input);
23
- },
24
- meridiem : function (hours, minutes, isLower) {
25
- if (hours < 12) {
26
- return isLower ? 'vm' : 'VM';
27
- } else {
28
- return isLower ? 'nm' : 'NM';
29
- }
30
- },
31
- longDateFormat : {
32
- LT : 'HH:mm',
33
- LTS : 'LT:ss',
34
- L : 'DD/MM/YYYY',
35
- LL : 'D MMMM YYYY',
36
- LLL : 'D MMMM YYYY LT',
37
- LLLL : 'dddd, D MMMM YYYY LT'
38
- },
39
- calendar : {
40
- sameDay : '[Vandag om] LT',
41
- nextDay : '[Môre om] LT',
42
- nextWeek : 'dddd [om] LT',
43
- lastDay : '[Gister om] LT',
44
- lastWeek : '[Laas] dddd [om] LT',
45
- sameElse : 'L'
46
- },
47
- relativeTime : {
48
- future : 'oor %s',
49
- past : '%s gelede',
50
- s : '\'n paar sekondes',
51
- m : '\'n minuut',
52
- mm : '%d minute',
53
- h : '\'n uur',
54
- hh : '%d ure',
55
- d : '\'n dag',
56
- dd : '%d dae',
57
- M : '\'n maand',
58
- MM : '%d maande',
59
- y : '\'n jaar',
60
- yy : '%d jaar'
61
- },
62
- ordinalParse: /\d{1,2}(ste|de)/,
63
- ordinal : function (number) {
64
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
65
- },
66
- week : {
67
- dow : 1, // Maandag is die eerste dag van die week.
68
- doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
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 af = moment.defineLocale('af', {
14
+ months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
15
+ monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
16
+ weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
17
+ weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
18
+ weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
19
+ meridiemParse: /vm|nm/i,
20
+ isPM : function (input) {
21
+ return /^nm$/i.test(input);
22
+ },
23
+ meridiem : function (hours, minutes, isLower) {
24
+ if (hours < 12) {
25
+ return isLower ? 'vm' : 'VM';
26
+ } else {
27
+ return isLower ? 'nm' : 'NM';
69
28
  }
70
- });
71
- }));
29
+ },
30
+ longDateFormat : {
31
+ LT : 'HH:mm',
32
+ LTS : 'HH:mm:ss',
33
+ L : 'DD/MM/YYYY',
34
+ LL : 'D MMMM YYYY',
35
+ LLL : 'D MMMM YYYY HH:mm',
36
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
37
+ },
38
+ calendar : {
39
+ sameDay : '[Vandag om] LT',
40
+ nextDay : '[Môre om] LT',
41
+ nextWeek : 'dddd [om] LT',
42
+ lastDay : '[Gister om] LT',
43
+ lastWeek : '[Laas] dddd [om] LT',
44
+ sameElse : 'L'
45
+ },
46
+ relativeTime : {
47
+ future : 'oor %s',
48
+ past : '%s gelede',
49
+ s : '\'n paar sekondes',
50
+ ss : '%d sekondes',
51
+ m : '\'n minuut',
52
+ mm : '%d minute',
53
+ h : '\'n uur',
54
+ hh : '%d ure',
55
+ d : '\'n dag',
56
+ dd : '%d dae',
57
+ M : '\'n maand',
58
+ MM : '%d maande',
59
+ y : '\'n jaar',
60
+ yy : '%d jaar'
61
+ },
62
+ dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
63
+ ordinal : function (number) {
64
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
65
+ },
66
+ week : {
67
+ dow : 1, // Maandag is die eerste dag van die week.
68
+ doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
69
+ }
70
+ });
71
+
72
+ return af;
73
+
74
+ })));
@@ -0,0 +1,60 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Algeria) [ar-dz]
3
+ //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
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
+
13
+ var arDz = moment.defineLocale('ar-dz', {
14
+ months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15
+ monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
16
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
17
+ weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
18
+ weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'dddd D MMMM YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[اليوم على الساعة] LT',
30
+ nextDay: '[غدا على الساعة] LT',
31
+ nextWeek: 'dddd [على الساعة] LT',
32
+ lastDay: '[أمس على الساعة] LT',
33
+ lastWeek: 'dddd [على الساعة] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime : {
37
+ future : 'في %s',
38
+ past : 'منذ %s',
39
+ s : 'ثوان',
40
+ ss : '%d ثانية',
41
+ m : 'دقيقة',
42
+ mm : '%d دقائق',
43
+ h : 'ساعة',
44
+ hh : '%d ساعات',
45
+ d : 'يوم',
46
+ dd : '%d أيام',
47
+ M : 'شهر',
48
+ MM : '%d أشهر',
49
+ y : 'سنة',
50
+ yy : '%d سنوات'
51
+ },
52
+ week : {
53
+ dow : 0, // Sunday is the first day of the week.
54
+ doy : 4 // The week that contains Jan 1st is the first week of the year.
55
+ }
56
+ });
57
+
58
+ return arDz;
59
+
60
+ })));
@@ -0,0 +1,60 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Kuwait) [ar-kw]
3
+ //! author : Nusret Parlak: https://github.com/nusretparlak
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
+
13
+ var arKw = moment.defineLocale('ar-kw', {
14
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
15
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
16
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
17
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
18
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'dddd D MMMM YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[اليوم على الساعة] LT',
30
+ nextDay: '[غدا على الساعة] LT',
31
+ nextWeek: 'dddd [على الساعة] LT',
32
+ lastDay: '[أمس على الساعة] LT',
33
+ lastWeek: 'dddd [على الساعة] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime : {
37
+ future : 'في %s',
38
+ past : 'منذ %s',
39
+ s : 'ثوان',
40
+ ss : '%d ثانية',
41
+ m : 'دقيقة',
42
+ mm : '%d دقائق',
43
+ h : 'ساعة',
44
+ hh : '%d ساعات',
45
+ d : 'يوم',
46
+ dd : '%d أيام',
47
+ M : 'شهر',
48
+ MM : '%d أشهر',
49
+ y : 'سنة',
50
+ yy : '%d سنوات'
51
+ },
52
+ week : {
53
+ dow : 0, // Sunday is the first day of the week.
54
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
55
+ }
56
+ });
57
+
58
+ return arKw;
59
+
60
+ })));
@@ -0,0 +1,127 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Lybia) [ar-ly]
3
+ //! author : Ali Hmer: https://github.com/kikoanis
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
+
13
+ var symbolMap = {
14
+ '1': '1',
15
+ '2': '2',
16
+ '3': '3',
17
+ '4': '4',
18
+ '5': '5',
19
+ '6': '6',
20
+ '7': '7',
21
+ '8': '8',
22
+ '9': '9',
23
+ '0': '0'
24
+ };
25
+ var pluralForm = function (n) {
26
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
27
+ };
28
+ var plurals = {
29
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
30
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
31
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
32
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
33
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
34
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
35
+ };
36
+ var pluralize = function (u) {
37
+ return function (number, withoutSuffix, string, isFuture) {
38
+ var f = pluralForm(number),
39
+ str = plurals[u][pluralForm(number)];
40
+ if (f === 2) {
41
+ str = str[withoutSuffix ? 0 : 1];
42
+ }
43
+ return str.replace(/%d/i, number);
44
+ };
45
+ };
46
+ var months = [
47
+ 'يناير',
48
+ 'فبراير',
49
+ 'مارس',
50
+ 'أبريل',
51
+ 'مايو',
52
+ 'يونيو',
53
+ 'يوليو',
54
+ 'أغسطس',
55
+ 'سبتمبر',
56
+ 'أكتوبر',
57
+ 'نوفمبر',
58
+ 'ديسمبر'
59
+ ];
60
+
61
+ var arLy = moment.defineLocale('ar-ly', {
62
+ months : months,
63
+ monthsShort : months,
64
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
65
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
66
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
67
+ weekdaysParseExact : true,
68
+ longDateFormat : {
69
+ LT : 'HH:mm',
70
+ LTS : 'HH:mm:ss',
71
+ L : 'D/\u200FM/\u200FYYYY',
72
+ LL : 'D MMMM YYYY',
73
+ LLL : 'D MMMM YYYY HH:mm',
74
+ LLLL : 'dddd D MMMM YYYY HH:mm'
75
+ },
76
+ meridiemParse: /ص|م/,
77
+ isPM : function (input) {
78
+ return 'م' === input;
79
+ },
80
+ meridiem : function (hour, minute, isLower) {
81
+ if (hour < 12) {
82
+ return 'ص';
83
+ } else {
84
+ return 'م';
85
+ }
86
+ },
87
+ calendar : {
88
+ sameDay: '[اليوم عند الساعة] LT',
89
+ nextDay: '[غدًا عند الساعة] LT',
90
+ nextWeek: 'dddd [عند الساعة] LT',
91
+ lastDay: '[أمس عند الساعة] LT',
92
+ lastWeek: 'dddd [عند الساعة] LT',
93
+ sameElse: 'L'
94
+ },
95
+ relativeTime : {
96
+ future : 'بعد %s',
97
+ past : 'منذ %s',
98
+ s : pluralize('s'),
99
+ ss : pluralize('s'),
100
+ m : pluralize('m'),
101
+ mm : pluralize('m'),
102
+ h : pluralize('h'),
103
+ hh : pluralize('h'),
104
+ d : pluralize('d'),
105
+ dd : pluralize('d'),
106
+ M : pluralize('M'),
107
+ MM : pluralize('M'),
108
+ y : pluralize('y'),
109
+ yy : pluralize('y')
110
+ },
111
+ preparse: function (string) {
112
+ return string.replace(/،/g, ',');
113
+ },
114
+ postformat: function (string) {
115
+ return string.replace(/\d/g, function (match) {
116
+ return symbolMap[match];
117
+ }).replace(/,/g, '،');
118
+ },
119
+ week : {
120
+ dow : 6, // Saturday is the first day of the week.
121
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
122
+ }
123
+ });
124
+
125
+ return arLy;
126
+
127
+ })));
@@ -1,57 +1,61 @@
1
- // moment.js locale configuration
2
- // locale : Moroccan Arabic (ar-ma)
3
- // author : ElFadili Yassine : https://github.com/ElFadiliY
4
- // author : Abdel Said : https://github.com/abdelsaid
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic (Morocco) [ar-ma]
3
+ //! author : ElFadili Yassine : https://github.com/ElFadiliY
4
+ //! author : Abdel Said : https://github.com/abdelsaid
5
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ var arMa = moment.defineLocale('ar-ma', {
15
+ months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
16
+ monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
17
+ weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
18
+ weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
19
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'HH:mm',
23
+ LTS : 'HH:mm:ss',
24
+ L : 'DD/MM/YYYY',
25
+ LL : 'D MMMM YYYY',
26
+ LLL : 'D MMMM YYYY HH:mm',
27
+ LLLL : 'dddd D MMMM YYYY HH:mm'
28
+ },
29
+ calendar : {
30
+ sameDay: '[اليوم على الساعة] LT',
31
+ nextDay: '[غدا على الساعة] LT',
32
+ nextWeek: 'dddd [على الساعة] LT',
33
+ lastDay: '[أمس على الساعة] LT',
34
+ lastWeek: 'dddd [على الساعة] LT',
35
+ sameElse: 'L'
36
+ },
37
+ relativeTime : {
38
+ future : 'في %s',
39
+ past : 'منذ %s',
40
+ s : 'ثوان',
41
+ ss : '%d ثانية',
42
+ m : 'دقيقة',
43
+ mm : '%d دقائق',
44
+ h : 'ساعة',
45
+ hh : '%d ساعات',
46
+ d : 'يوم',
47
+ dd : '%d أيام',
48
+ M : 'شهر',
49
+ MM : '%d أشهر',
50
+ y : 'سنة',
51
+ yy : '%d سنوات'
52
+ },
53
+ week : {
54
+ dow : 6, // Saturday is the first day of the week.
55
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
13
56
  }
14
- }(function (moment) {
15
- return moment.defineLocale('ar-ma', {
16
- months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
17
- monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
18
- weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
19
- weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
20
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
21
- longDateFormat : {
22
- LT : 'HH:mm',
23
- LTS : 'LT:ss',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D MMMM YYYY',
26
- LLL : 'D MMMM YYYY LT',
27
- LLLL : 'dddd D MMMM YYYY LT'
28
- },
29
- calendar : {
30
- sameDay: '[اليوم على الساعة] LT',
31
- nextDay: '[غدا على الساعة] LT',
32
- nextWeek: 'dddd [على الساعة] LT',
33
- lastDay: '[أمس على الساعة] LT',
34
- lastWeek: 'dddd [على الساعة] LT',
35
- sameElse: 'L'
36
- },
37
- relativeTime : {
38
- future : 'في %s',
39
- past : 'منذ %s',
40
- s : 'ثوان',
41
- m : 'دقيقة',
42
- mm : '%d دقائق',
43
- h : 'ساعة',
44
- hh : '%d ساعات',
45
- d : 'يوم',
46
- dd : '%d أيام',
47
- M : 'شهر',
48
- MM : '%d أشهر',
49
- y : 'سنة',
50
- yy : '%d سنوات'
51
- },
52
- week : {
53
- dow : 6, // Saturday is the first day of the week.
54
- doy : 12 // The week that contains Jan 1st is the first week of the year.
55
- }
56
- });
57
- }));
57
+ });
58
+
59
+ return arMa;
60
+
61
+ })));