alloy 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/.eslintignore +0 -1
  2. package/.github/dependabot.yml +4 -0
  3. package/.github/workflows/build.yml +4 -0
  4. package/.github/workflows/publish.yml +4 -4
  5. package/Alloy/builtins/moment/lang/af.js +52 -42
  6. package/Alloy/builtins/moment/lang/ar-dz.js +151 -42
  7. package/Alloy/builtins/moment/lang/ar-kw.js +42 -34
  8. package/Alloy/builtins/moment/lang/ar-ly.js +142 -81
  9. package/Alloy/builtins/moment/lang/ar-ma.js +43 -34
  10. package/Alloy/builtins/moment/lang/ar-sa.js +77 -64
  11. package/Alloy/builtins/moment/lang/ar-tn.js +17 -9
  12. package/Alloy/builtins/moment/lang/ar.js +161 -95
  13. package/Alloy/builtins/moment/lang/az.js +54 -45
  14. package/Alloy/builtins/moment/lang/be.js +73 -51
  15. package/Alloy/builtins/moment/lang/bg.js +50 -41
  16. package/Alloy/builtins/moment/lang/bm.js +43 -38
  17. package/Alloy/builtins/moment/lang/bn-bd.js +140 -0
  18. package/Alloy/builtins/moment/lang/bn.js +78 -66
  19. package/Alloy/builtins/moment/lang/bo.js +83 -66
  20. package/Alloy/builtins/moment/lang/br.js +119 -47
  21. package/Alloy/builtins/moment/lang/bs.js +51 -40
  22. package/Alloy/builtins/moment/lang/ca.js +80 -56
  23. package/Alloy/builtins/moment/lang/cs.js +88 -68
  24. package/Alloy/builtins/moment/lang/cv.js +47 -35
  25. package/Alloy/builtins/moment/lang/cy.js +44 -14
  26. package/Alloy/builtins/moment/lang/da.js +44 -39
  27. package/Alloy/builtins/moment/lang/de-at.js +57 -42
  28. package/Alloy/builtins/moment/lang/de-ch.js +54 -42
  29. package/Alloy/builtins/moment/lang/de.js +56 -42
  30. package/Alloy/builtins/moment/lang/dv.js +65 -62
  31. package/Alloy/builtins/moment/lang/el.js +67 -49
  32. package/Alloy/builtins/moment/lang/en-au.js +56 -43
  33. package/Alloy/builtins/moment/lang/en-ca.js +53 -40
  34. package/Alloy/builtins/moment/lang/en-gb.js +56 -43
  35. package/Alloy/builtins/moment/lang/en-ie.js +56 -43
  36. package/Alloy/builtins/moment/lang/en-il.js +53 -39
  37. package/Alloy/builtins/moment/lang/en-in.js +79 -0
  38. package/Alloy/builtins/moment/lang/en-nz.js +56 -43
  39. package/Alloy/builtins/moment/lang/en-sg.js +79 -0
  40. package/Alloy/builtins/moment/lang/eo.js +49 -40
  41. package/Alloy/builtins/moment/lang/es-do.js +81 -53
  42. package/Alloy/builtins/moment/lang/es-mx.js +121 -0
  43. package/Alloy/builtins/moment/lang/es-us.js +83 -53
  44. package/Alloy/builtins/moment/lang/es.js +88 -58
  45. package/Alloy/builtins/moment/lang/et.js +60 -50
  46. package/Alloy/builtins/moment/lang/eu.js +56 -45
  47. package/Alloy/builtins/moment/lang/fa.js +88 -69
  48. package/Alloy/builtins/moment/lang/fi.js +75 -48
  49. package/Alloy/builtins/moment/lang/fil.js +69 -0
  50. package/Alloy/builtins/moment/lang/fo.js +48 -39
  51. package/Alloy/builtins/moment/lang/fr-ca.js +46 -38
  52. package/Alloy/builtins/moment/lang/fr-ch.js +49 -41
  53. package/Alloy/builtins/moment/lang/fr.js +78 -41
  54. package/Alloy/builtins/moment/lang/fy.js +51 -39
  55. package/Alloy/builtins/moment/lang/ga.js +48 -18
  56. package/Alloy/builtins/moment/lang/gd.js +82 -51
  57. package/Alloy/builtins/moment/lang/gl.js +56 -46
  58. package/Alloy/builtins/moment/lang/gom-deva.js +137 -0
  59. package/Alloy/builtins/moment/lang/gom-latn.js +71 -58
  60. package/Alloy/builtins/moment/lang/gu.js +30 -20
  61. package/Alloy/builtins/moment/lang/he.js +52 -43
  62. package/Alloy/builtins/moment/lang/hi.js +120 -64
  63. package/Alloy/builtins/moment/lang/hr.js +57 -43
  64. package/Alloy/builtins/moment/lang/hu.js +64 -44
  65. package/Alloy/builtins/moment/lang/hy-am.js +47 -36
  66. package/Alloy/builtins/moment/lang/id.js +46 -40
  67. package/Alloy/builtins/moment/lang/is.js +63 -43
  68. package/Alloy/builtins/moment/lang/it-ch.js +42 -35
  69. package/Alloy/builtins/moment/lang/it.js +91 -42
  70. package/Alloy/builtins/moment/lang/ja.js +113 -45
  71. package/Alloy/builtins/moment/lang/jv.js +46 -40
  72. package/Alloy/builtins/moment/lang/ka.js +66 -51
  73. package/Alloy/builtins/moment/lang/kk.js +47 -40
  74. package/Alloy/builtins/moment/lang/km.js +37 -32
  75. package/Alloy/builtins/moment/lang/kn.js +74 -64
  76. package/Alloy/builtins/moment/lang/ko.js +50 -44
  77. package/Alloy/builtins/moment/lang/ku.js +94 -83
  78. package/Alloy/builtins/moment/lang/ky.js +49 -40
  79. package/Alloy/builtins/moment/lang/lb.js +43 -30
  80. package/Alloy/builtins/moment/lang/lo.js +46 -38
  81. package/Alloy/builtins/moment/lang/lt.js +82 -63
  82. package/Alloy/builtins/moment/lang/lv.js +60 -51
  83. package/Alloy/builtins/moment/lang/me.js +53 -36
  84. package/Alloy/builtins/moment/lang/mi.js +17 -9
  85. package/Alloy/builtins/moment/lang/mk.js +47 -39
  86. package/Alloy/builtins/moment/lang/ml.js +54 -41
  87. package/Alloy/builtins/moment/lang/mn.js +48 -40
  88. package/Alloy/builtins/moment/lang/mr.js +143 -88
  89. package/Alloy/builtins/moment/lang/ms-my.js +45 -39
  90. package/Alloy/builtins/moment/lang/ms.js +44 -39
  91. package/Alloy/builtins/moment/lang/mt.js +47 -39
  92. package/Alloy/builtins/moment/lang/my.js +40 -30
  93. package/Alloy/builtins/moment/lang/nb.js +46 -36
  94. package/Alloy/builtins/moment/lang/ne.js +75 -65
  95. package/Alloy/builtins/moment/lang/nl-be.js +73 -46
  96. package/Alloy/builtins/moment/lang/nl.js +75 -46
  97. package/Alloy/builtins/moment/lang/nn.js +45 -34
  98. package/Alloy/builtins/moment/lang/oc-lnc.js +96 -0
  99. package/Alloy/builtins/moment/lang/pa-in.js +73 -63
  100. package/Alloy/builtins/moment/lang/pl.js +69 -43
  101. package/Alloy/builtins/moment/lang/pt-br.js +43 -34
  102. package/Alloy/builtins/moment/lang/pt.js +48 -38
  103. package/Alloy/builtins/moment/lang/ro.js +52 -39
  104. package/Alloy/builtins/moment/lang/ru.js +104 -61
  105. package/Alloy/builtins/moment/lang/sd.js +57 -62
  106. package/Alloy/builtins/moment/lang/se.js +42 -33
  107. package/Alloy/builtins/moment/lang/si.js +50 -40
  108. package/Alloy/builtins/moment/lang/sk.js +54 -53
  109. package/Alloy/builtins/moment/lang/sl.js +51 -41
  110. package/Alloy/builtins/moment/lang/sq.js +50 -41
  111. package/Alloy/builtins/moment/lang/sr-cyrl.js +71 -43
  112. package/Alloy/builtins/moment/lang/sr.js +74 -44
  113. package/Alloy/builtins/moment/lang/ss.js +50 -42
  114. package/Alloy/builtins/moment/lang/sv.js +52 -41
  115. package/Alloy/builtins/moment/lang/sw.js +47 -39
  116. package/Alloy/builtins/moment/lang/ta.js +78 -64
  117. package/Alloy/builtins/moment/lang/te.js +54 -43
  118. package/Alloy/builtins/moment/lang/tet.js +51 -38
  119. package/Alloy/builtins/moment/lang/tg.js +51 -38
  120. package/Alloy/builtins/moment/lang/th.js +47 -37
  121. package/Alloy/builtins/moment/lang/tk.js +102 -0
  122. package/Alloy/builtins/moment/lang/tl-ph.js +41 -34
  123. package/Alloy/builtins/moment/lang/tlh.js +69 -55
  124. package/Alloy/builtins/moment/lang/tr.js +83 -59
  125. package/Alloy/builtins/moment/lang/tzl.js +67 -57
  126. package/Alloy/builtins/moment/lang/tzm-latn.js +41 -33
  127. package/Alloy/builtins/moment/lang/tzm.js +40 -32
  128. package/Alloy/builtins/moment/lang/ug-cn.js +13 -9
  129. package/Alloy/builtins/moment/lang/uk.js +82 -57
  130. package/Alloy/builtins/moment/lang/ur.js +58 -62
  131. package/Alloy/builtins/moment/lang/uz-latn.js +46 -38
  132. package/Alloy/builtins/moment/lang/uz.js +43 -38
  133. package/Alloy/builtins/moment/lang/vi.js +56 -43
  134. package/Alloy/builtins/moment/lang/x-pseudo.js +61 -44
  135. package/Alloy/builtins/moment/lang/yo.js +45 -40
  136. package/Alloy/builtins/moment/lang/zh-cn.js +68 -46
  137. package/Alloy/builtins/moment/lang/zh-hk.js +61 -51
  138. package/Alloy/builtins/moment/lang/zh-mo.js +111 -0
  139. package/Alloy/builtins/moment/lang/zh-tw.js +57 -49
  140. package/Alloy/builtins/moment.js +2534 -1451
  141. package/Alloy/commands/compile/compilerUtils.js +3 -6
  142. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.ContentView.js +13 -0
  143. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar._ProxyProperty.js +13 -0
  144. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.js +35 -0
  145. package/Alloy/commands/compile/parsers/Ti.UI.Android.DrawerLayout._ProxyProperty.js +0 -1
  146. package/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js +1 -1
  147. package/Alloy/commands/generate/targets/widget.js +1 -1
  148. package/Alloy/commands/info/index.js +2 -2
  149. package/Alloy/common/constants.js +4 -2
  150. package/Alloy/lib/alloy/controllers/BaseController.js +9 -0
  151. package/Alloy/lib/alloy/underscore.js +1722 -1372
  152. package/Alloy/template/README +3 -9
  153. package/Alloy/template/app.tss +5 -12
  154. package/Alloy/template/controller.js +1 -1
  155. package/Alloy/template/gitignore.txt +3 -0
  156. package/Alloy/template/lib/alloy.js +0 -17
  157. package/Alloy/template/style.tss +0 -3
  158. package/Alloy/template/view.xml +4 -3
  159. package/Alloy/template/widget/style.tss +1 -2
  160. package/Alloy/utils.js +1 -1
  161. package/CHANGELOG.md +16 -0
  162. package/package.json +21 -25
  163. package/samples/lib/testUtils.js +1 -1
  164. package/test/lib/testUtils.js +1 -1
  165. package/test/projects/HarnessTemplate/tiapp.xml +0 -15
  166. package/test/specs/compile.js +3 -2
  167. package/test/specs/compilefile.js +3 -3
  168. package/test/specs/new.js +1 -1
  169. package/test/specs/optimizer.js +10 -13
  170. package/dangerfile.js +0 -20
  171. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/app.tss +0 -11
  172. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/requiredlabel.tss +0 -4
  173. package/samples/apps/advanced/complex_styling/views/mobileweb/label.xml +0 -3
  174. package/samples/apps/advanced/device_query/_generated/mobileweb/alloy/controllers/index.js +0 -60
  175. package/samples/apps/advanced/dynamic_styling/views/mobileweb/features/autoStyle.xml +0 -54
  176. package/samples/apps/advanced/form_factor/_generated/mobileweb/alloy/controllers/index.js +0 -121
  177. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/animatedDialog.js +0 -44
  178. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/baseDialog.js +0 -88
  179. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/index.js +0 -59
  180. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/detail.js +0 -102
  181. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/index.js +0 -35
  182. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/master.js +0 -53
  183. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/row.js +0 -67
  184. package/samples/apps/advanced/native_modules/_generated/mobileweb/alloy/controllers/index.js +0 -37
  185. package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js +0 -60
  186. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/index.js +0 -207
  187. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/proxy.js +0 -51
  188. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/window.js +0 -49
  189. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row.js +0 -46
  190. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row_bind.js +0 -46
  191. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/section.js +0 -59
  192. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row.js +0 -14
  193. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row_bind.js +0 -14
  194. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/section.js +0 -14
  195. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/dialog.js +0 -112
  196. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/index.js +0 -118
  197. package/samples/apps/basics/builtins/_generated/mobileweb/alloy/controllers/index.js +0 -102
  198. package/samples/apps/basics/config_json/_generated/mobileweb/alloy/controllers/index.js +0 -49
  199. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/CustomView.js +0 -60
  200. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/index.js +0 -57
  201. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/index.js +0 -40
  202. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/item.js +0 -45
  203. package/samples/apps/basics/markup_events/_generated/mobileweb/alloy/controllers/index.js +0 -49
  204. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/bottom.js +0 -42
  205. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/index.js +0 -49
  206. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/middle.js +0 -45
  207. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/theRest.js +0 -41
  208. package/samples/apps/basics/simple/_generated/mobileweb/alloy/controllers/index.js +0 -49
  209. package/samples/apps/models/journal/views/mobileweb/index.xml +0 -19
  210. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/00.png +0 -0
  211. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/01.png +0 -0
  212. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/02.png +0 -0
  213. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/03.png +0 -0
  214. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/04.png +0 -0
  215. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/05.png +0 -0
  216. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/06.png +0 -0
  217. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/07.png +0 -0
  218. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/08.png +0 -0
  219. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/09.png +0 -0
  220. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/10.png +0 -0
  221. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/11.png +0 -0
  222. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/spinner.png +0 -0
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Arabic (Libya) [ar-ly]
3
+ //! author : Ali Hmer: https://github.com/kikoanis
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,113 +9,172 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  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
- ];
15
+ 1: '1',
16
+ 2: '2',
17
+ 3: '3',
18
+ 4: '4',
19
+ 5: '5',
20
+ 6: '6',
21
+ 7: '7',
22
+ 8: '8',
23
+ 9: '9',
24
+ 0: '0',
25
+ },
26
+ pluralForm = function (n) {
27
+ return n === 0
28
+ ? 0
29
+ : n === 1
30
+ ? 1
31
+ : n === 2
32
+ ? 2
33
+ : n % 100 >= 3 && n % 100 <= 10
34
+ ? 3
35
+ : n % 100 >= 11
36
+ ? 4
37
+ : 5;
38
+ },
39
+ plurals = {
40
+ s: [
41
+ 'أقل من ثانية',
42
+ 'ثانية واحدة',
43
+ ['ثانيتان', 'ثانيتين'],
44
+ '%d ثوان',
45
+ '%d ثانية',
46
+ '%d ثانية',
47
+ ],
48
+ m: [
49
+ 'أقل من دقيقة',
50
+ 'دقيقة واحدة',
51
+ ['دقيقتان', 'دقيقتين'],
52
+ '%d دقائق',
53
+ '%d دقيقة',
54
+ '%d دقيقة',
55
+ ],
56
+ h: [
57
+ 'أقل من ساعة',
58
+ 'ساعة واحدة',
59
+ ['ساعتان', 'ساعتين'],
60
+ '%d ساعات',
61
+ '%d ساعة',
62
+ '%d ساعة',
63
+ ],
64
+ d: [
65
+ 'أقل من يوم',
66
+ 'يوم واحد',
67
+ ['يومان', 'يومين'],
68
+ '%d أيام',
69
+ '%d يومًا',
70
+ '%d يوم',
71
+ ],
72
+ M: [
73
+ 'أقل من شهر',
74
+ 'شهر واحد',
75
+ ['شهران', 'شهرين'],
76
+ '%d أشهر',
77
+ '%d شهرا',
78
+ '%d شهر',
79
+ ],
80
+ y: [
81
+ 'أقل من عام',
82
+ 'عام واحد',
83
+ ['عامان', 'عامين'],
84
+ '%d أعوام',
85
+ '%d عامًا',
86
+ '%d عام',
87
+ ],
88
+ },
89
+ pluralize = function (u) {
90
+ return function (number, withoutSuffix, string, isFuture) {
91
+ var f = pluralForm(number),
92
+ str = plurals[u][pluralForm(number)];
93
+ if (f === 2) {
94
+ str = str[withoutSuffix ? 0 : 1];
95
+ }
96
+ return str.replace(/%d/i, number);
97
+ };
98
+ },
99
+ months = [
100
+ 'يناير',
101
+ 'فبراير',
102
+ 'مارس',
103
+ 'أبريل',
104
+ 'مايو',
105
+ 'يونيو',
106
+ 'يوليو',
107
+ 'أغسطس',
108
+ 'سبتمبر',
109
+ 'أكتوبر',
110
+ 'نوفمبر',
111
+ 'ديسمبر',
112
+ ];
54
113
 
55
114
  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'
115
+ months: months,
116
+ monthsShort: months,
117
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
118
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
119
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
120
+ weekdaysParseExact: true,
121
+ longDateFormat: {
122
+ LT: 'HH:mm',
123
+ LTS: 'HH:mm:ss',
124
+ L: 'D/\u200FM/\u200FYYYY',
125
+ LL: 'D MMMM YYYY',
126
+ LLL: 'D MMMM YYYY HH:mm',
127
+ LLLL: 'dddd D MMMM YYYY HH:mm',
69
128
  },
70
129
  meridiemParse: /ص|م/,
71
- isPM : function (input) {
130
+ isPM: function (input) {
72
131
  return 'م' === input;
73
132
  },
74
- meridiem : function (hour, minute, isLower) {
133
+ meridiem: function (hour, minute, isLower) {
75
134
  if (hour < 12) {
76
135
  return 'ص';
77
136
  } else {
78
137
  return 'م';
79
138
  }
80
139
  },
81
- calendar : {
140
+ calendar: {
82
141
  sameDay: '[اليوم عند الساعة] LT',
83
142
  nextDay: '[غدًا عند الساعة] LT',
84
143
  nextWeek: 'dddd [عند الساعة] LT',
85
144
  lastDay: '[أمس عند الساعة] LT',
86
145
  lastWeek: 'dddd [عند الساعة] LT',
87
- sameElse: 'L'
146
+ sameElse: 'L',
88
147
  },
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')
148
+ relativeTime: {
149
+ future: 'بعد %s',
150
+ past: 'منذ %s',
151
+ s: pluralize('s'),
152
+ ss: pluralize('s'),
153
+ m: pluralize('m'),
154
+ mm: pluralize('m'),
155
+ h: pluralize('h'),
156
+ hh: pluralize('h'),
157
+ d: pluralize('d'),
158
+ dd: pluralize('d'),
159
+ M: pluralize('M'),
160
+ MM: pluralize('M'),
161
+ y: pluralize('y'),
162
+ yy: pluralize('y'),
104
163
  },
105
164
  preparse: function (string) {
106
165
  return string.replace(/،/g, ',');
107
166
  },
108
167
  postformat: function (string) {
109
- return string.replace(/\d/g, function (match) {
110
- return symbolMap[match];
111
- }).replace(/,/g, '،');
168
+ return string
169
+ .replace(/\d/g, function (match) {
170
+ return symbolMap[match];
171
+ })
172
+ .replace(/,/g, '،');
173
+ },
174
+ week: {
175
+ dow: 6, // Saturday is the first day of the week.
176
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
112
177
  },
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
178
  });
118
179
 
119
180
  return arLy;
@@ -1,4 +1,7 @@
1
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
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,50 +10,56 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
15
  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'
16
+ months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
17
+ '_'
18
+ ),
19
+ monthsShort:
20
+ 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
21
+ '_'
22
+ ),
23
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
24
+ weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
25
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
26
+ weekdaysParseExact: true,
27
+ longDateFormat: {
28
+ LT: 'HH:mm',
29
+ LTS: 'HH:mm:ss',
30
+ L: 'DD/MM/YYYY',
31
+ LL: 'D MMMM YYYY',
32
+ LLL: 'D MMMM YYYY HH:mm',
33
+ LLLL: 'dddd D MMMM YYYY HH:mm',
25
34
  },
26
- calendar : {
35
+ calendar: {
27
36
  sameDay: '[اليوم على الساعة] LT',
28
37
  nextDay: '[غدا على الساعة] LT',
29
38
  nextWeek: 'dddd [على الساعة] LT',
30
39
  lastDay: '[أمس على الساعة] LT',
31
40
  lastWeek: 'dddd [على الساعة] LT',
32
- sameElse: 'L'
41
+ sameElse: 'L',
33
42
  },
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 سنوات'
43
+ relativeTime: {
44
+ future: 'في %s',
45
+ past: 'منذ %s',
46
+ s: 'ثوان',
47
+ ss: '%d ثانية',
48
+ m: 'دقيقة',
49
+ mm: '%d دقائق',
50
+ h: 'ساعة',
51
+ hh: '%d ساعات',
52
+ d: 'يوم',
53
+ dd: '%d أيام',
54
+ M: 'شهر',
55
+ MM: '%d أشهر',
56
+ y: 'سنة',
57
+ yy: '%d سنوات',
58
+ },
59
+ week: {
60
+ dow: 1, // Monday is the first day of the week.
61
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
49
62
  },
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
63
  });
55
64
 
56
65
  return arMa;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Arabic (Saudi Arabia) [ar-sa]
3
+ //! author : Suhail Alkowaileet : https://github.com/xsoh
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,95 +9,106 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  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
- };
15
+ 1: '١',
16
+ 2: '٢',
17
+ 3: '٣',
18
+ 4: '٤',
19
+ 5: '٥',
20
+ 6: '٦',
21
+ 7: '٧',
22
+ 8: '٨',
23
+ 9: '٩',
24
+ 0: '٠',
25
+ },
26
+ numberMap = {
27
+ '١': '1',
28
+ '٢': '2',
29
+ '٣': '3',
30
+ '٤': '4',
31
+ '٥': '5',
32
+ '٦': '6',
33
+ '٧': '7',
34
+ '٨': '8',
35
+ '٩': '9',
36
+ '٠': '0',
37
+ };
34
38
 
35
39
  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'
40
+ months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
41
+ '_'
42
+ ),
43
+ monthsShort:
44
+ 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
45
+ '_'
46
+ ),
47
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
48
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
49
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
50
+ weekdaysParseExact: true,
51
+ longDateFormat: {
52
+ LT: 'HH:mm',
53
+ LTS: 'HH:mm:ss',
54
+ L: 'DD/MM/YYYY',
55
+ LL: 'D MMMM YYYY',
56
+ LLL: 'D MMMM YYYY HH:mm',
57
+ LLLL: 'dddd D MMMM YYYY HH:mm',
49
58
  },
50
59
  meridiemParse: /ص|م/,
51
- isPM : function (input) {
60
+ isPM: function (input) {
52
61
  return 'م' === input;
53
62
  },
54
- meridiem : function (hour, minute, isLower) {
63
+ meridiem: function (hour, minute, isLower) {
55
64
  if (hour < 12) {
56
65
  return 'ص';
57
66
  } else {
58
67
  return 'م';
59
68
  }
60
69
  },
61
- calendar : {
70
+ calendar: {
62
71
  sameDay: '[اليوم على الساعة] LT',
63
72
  nextDay: '[غدا على الساعة] LT',
64
73
  nextWeek: 'dddd [على الساعة] LT',
65
74
  lastDay: '[أمس على الساعة] LT',
66
75
  lastWeek: 'dddd [على الساعة] LT',
67
- sameElse: 'L'
76
+ sameElse: 'L',
68
77
  },
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 سنوات'
78
+ relativeTime: {
79
+ future: 'في %s',
80
+ past: 'منذ %s',
81
+ s: 'ثوان',
82
+ ss: '%d ثانية',
83
+ m: 'دقيقة',
84
+ mm: '%d دقائق',
85
+ h: 'ساعة',
86
+ hh: '%d ساعات',
87
+ d: 'يوم',
88
+ dd: '%d أيام',
89
+ M: 'شهر',
90
+ MM: '%d أشهر',
91
+ y: 'سنة',
92
+ yy: '%d سنوات',
84
93
  },
85
94
  preparse: function (string) {
86
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
87
- return numberMap[match];
88
- }).replace(/،/g, ',');
95
+ return string
96
+ .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
97
+ return numberMap[match];
98
+ })
99
+ .replace(/،/g, ',');
89
100
  },
90
101
  postformat: function (string) {
91
- return string.replace(/\d/g, function (match) {
92
- return symbolMap[match];
93
- }).replace(/,/g, '،');
102
+ return string
103
+ .replace(/\d/g, function (match) {
104
+ return symbolMap[match];
105
+ })
106
+ .replace(/,/g, '،');
107
+ },
108
+ week: {
109
+ dow: 0, // Sunday is the first day of the week.
110
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
94
111
  },
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
112
  });
100
113
 
101
114
  return arSa;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Arabic (Tunisia) [ar-tn]
3
+ //! author : Nader Toukabri : https://github.com/naderio
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,21 +9,27 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var arTn = moment.defineLocale('ar-tn', {
12
- months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
13
- monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15
+ months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
16
+ '_'
17
+ ),
18
+ monthsShort:
19
+ 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
20
+ '_'
21
+ ),
14
22
  weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15
23
  weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
16
24
  weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17
- weekdaysParseExact : true,
25
+ weekdaysParseExact: true,
18
26
  longDateFormat: {
19
27
  LT: 'HH:mm',
20
28
  LTS: 'HH:mm:ss',
21
29
  L: 'DD/MM/YYYY',
22
30
  LL: 'D MMMM YYYY',
23
31
  LLL: 'D MMMM YYYY HH:mm',
24
- LLLL: 'dddd D MMMM YYYY HH:mm'
32
+ LLLL: 'dddd D MMMM YYYY HH:mm',
25
33
  },
26
34
  calendar: {
27
35
  sameDay: '[اليوم على الساعة] LT',
@@ -29,13 +37,13 @@
29
37
  nextWeek: 'dddd [على الساعة] LT',
30
38
  lastDay: '[أمس على الساعة] LT',
31
39
  lastWeek: 'dddd [على الساعة] LT',
32
- sameElse: 'L'
40
+ sameElse: 'L',
33
41
  },
34
42
  relativeTime: {
35
43
  future: 'في %s',
36
44
  past: 'منذ %s',
37
45
  s: 'ثوان',
38
- ss : '%d ثانية',
46
+ ss: '%d ثانية',
39
47
  m: 'دقيقة',
40
48
  mm: '%d دقائق',
41
49
  h: 'ساعة',
@@ -45,12 +53,12 @@
45
53
  M: 'شهر',
46
54
  MM: '%d أشهر',
47
55
  y: 'سنة',
48
- yy: '%d سنوات'
56
+ yy: '%d سنوات',
49
57
  },
50
58
  week: {
51
59
  dow: 1, // Monday is the first day of the week.
52
- doy: 4 // The week that contains Jan 4th is the first week of the year.
53
- }
60
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
61
+ },
54
62
  });
55
63
 
56
64
  return arTn;