alloy 2.0.2 → 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 (221) 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/underscore.js +1722 -1372
  151. package/Alloy/template/README +3 -9
  152. package/Alloy/template/app.tss +5 -12
  153. package/Alloy/template/controller.js +1 -1
  154. package/Alloy/template/gitignore.txt +3 -0
  155. package/Alloy/template/lib/alloy.js +0 -17
  156. package/Alloy/template/style.tss +0 -3
  157. package/Alloy/template/view.xml +4 -3
  158. package/Alloy/template/widget/style.tss +1 -2
  159. package/Alloy/utils.js +1 -1
  160. package/CHANGELOG.md +16 -0
  161. package/package.json +21 -25
  162. package/samples/lib/testUtils.js +1 -1
  163. package/test/lib/testUtils.js +1 -1
  164. package/test/projects/HarnessTemplate/tiapp.xml +0 -15
  165. package/test/specs/compile.js +3 -2
  166. package/test/specs/compilefile.js +3 -3
  167. package/test/specs/new.js +1 -1
  168. package/test/specs/optimizer.js +10 -13
  169. package/dangerfile.js +0 -20
  170. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/app.tss +0 -11
  171. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/requiredlabel.tss +0 -4
  172. package/samples/apps/advanced/complex_styling/views/mobileweb/label.xml +0 -3
  173. package/samples/apps/advanced/device_query/_generated/mobileweb/alloy/controllers/index.js +0 -60
  174. package/samples/apps/advanced/dynamic_styling/views/mobileweb/features/autoStyle.xml +0 -54
  175. package/samples/apps/advanced/form_factor/_generated/mobileweb/alloy/controllers/index.js +0 -121
  176. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/animatedDialog.js +0 -44
  177. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/baseDialog.js +0 -88
  178. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/index.js +0 -59
  179. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/detail.js +0 -102
  180. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/index.js +0 -35
  181. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/master.js +0 -53
  182. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/row.js +0 -67
  183. package/samples/apps/advanced/native_modules/_generated/mobileweb/alloy/controllers/index.js +0 -37
  184. package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js +0 -60
  185. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/index.js +0 -207
  186. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/proxy.js +0 -51
  187. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/window.js +0 -49
  188. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row.js +0 -46
  189. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row_bind.js +0 -46
  190. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/section.js +0 -59
  191. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row.js +0 -14
  192. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row_bind.js +0 -14
  193. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/section.js +0 -14
  194. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/dialog.js +0 -112
  195. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/index.js +0 -118
  196. package/samples/apps/basics/builtins/_generated/mobileweb/alloy/controllers/index.js +0 -102
  197. package/samples/apps/basics/config_json/_generated/mobileweb/alloy/controllers/index.js +0 -49
  198. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/CustomView.js +0 -60
  199. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/index.js +0 -57
  200. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/index.js +0 -40
  201. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/item.js +0 -45
  202. package/samples/apps/basics/markup_events/_generated/mobileweb/alloy/controllers/index.js +0 -49
  203. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/bottom.js +0 -42
  204. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/index.js +0 -49
  205. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/middle.js +0 -45
  206. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/theRest.js +0 -41
  207. package/samples/apps/basics/simple/_generated/mobileweb/alloy/controllers/index.js +0 -49
  208. package/samples/apps/models/journal/views/mobileweb/index.xml +0 -19
  209. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/00.png +0 -0
  210. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/01.png +0 -0
  211. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/02.png +0 -0
  212. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/03.png +0 -0
  213. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/04.png +0 -0
  214. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/05.png +0 -0
  215. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/06.png +0 -0
  216. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/07.png +0 -0
  217. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/08.png +0 -0
  218. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/09.png +0 -0
  219. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/10.png +0 -0
  220. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/11.png +0 -0
  221. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/spinner.png +0 -0
@@ -1,4 +1,8 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Arabic [ar]
3
+ //! author : Abdel Said: https://github.com/abdelsaid
4
+ //! author : Ahmed Elkhatib
5
+ //! author : forabi https://github.com/forabi
2
6
 
3
7
  ;(function (global, factory) {
4
8
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,126 +11,188 @@
7
11
  factory(global.moment)
8
12
  }(this, (function (moment) { 'use strict';
9
13
 
14
+ //! moment.js locale configuration
10
15
 
11
16
  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
- }, pluralForm = function (n) {
34
- return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
35
- }, plurals = {
36
- s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
37
- m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
38
- h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
39
- d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
40
- M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
41
- y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
42
- }, pluralize = function (u) {
43
- return function (number, withoutSuffix, string, isFuture) {
44
- var f = pluralForm(number),
45
- str = plurals[u][pluralForm(number)];
46
- if (f === 2) {
47
- str = str[withoutSuffix ? 0 : 1];
48
- }
49
- return str.replace(/%d/i, number);
50
- };
51
- }, months = [
52
- 'يناير',
53
- 'فبراير',
54
- 'مارس',
55
- 'أبريل',
56
- 'مايو',
57
- 'يونيو',
58
- 'يوليو',
59
- 'أغسطس',
60
- 'سبتمبر',
61
- 'أكتوبر',
62
- 'نوفمبر',
63
- 'ديسمبر'
64
- ];
17
+ 1: '١',
18
+ 2: '٢',
19
+ 3: '٣',
20
+ 4: '٤',
21
+ 5: '٥',
22
+ 6: '٦',
23
+ 7: '٧',
24
+ 8: '٨',
25
+ 9: '٩',
26
+ 0: '٠',
27
+ },
28
+ numberMap = {
29
+ '١': '1',
30
+ '٢': '2',
31
+ '٣': '3',
32
+ '٤': '4',
33
+ '٥': '5',
34
+ '٦': '6',
35
+ '٧': '7',
36
+ '٨': '8',
37
+ '٩': '9',
38
+ '٠': '0',
39
+ },
40
+ pluralForm = function (n) {
41
+ return n === 0
42
+ ? 0
43
+ : n === 1
44
+ ? 1
45
+ : n === 2
46
+ ? 2
47
+ : n % 100 >= 3 && n % 100 <= 10
48
+ ? 3
49
+ : n % 100 >= 11
50
+ ? 4
51
+ : 5;
52
+ },
53
+ plurals = {
54
+ s: [
55
+ 'أقل من ثانية',
56
+ 'ثانية واحدة',
57
+ ['ثانيتان', 'ثانيتين'],
58
+ '%d ثوان',
59
+ '%d ثانية',
60
+ '%d ثانية',
61
+ ],
62
+ m: [
63
+ 'أقل من دقيقة',
64
+ 'دقيقة واحدة',
65
+ ['دقيقتان', 'دقيقتين'],
66
+ '%d دقائق',
67
+ '%d دقيقة',
68
+ '%d دقيقة',
69
+ ],
70
+ h: [
71
+ 'أقل من ساعة',
72
+ 'ساعة واحدة',
73
+ ['ساعتان', 'ساعتين'],
74
+ '%d ساعات',
75
+ '%d ساعة',
76
+ '%d ساعة',
77
+ ],
78
+ d: [
79
+ 'أقل من يوم',
80
+ 'يوم واحد',
81
+ ['يومان', 'يومين'],
82
+ '%d أيام',
83
+ '%d يومًا',
84
+ '%d يوم',
85
+ ],
86
+ M: [
87
+ 'أقل من شهر',
88
+ 'شهر واحد',
89
+ ['شهران', 'شهرين'],
90
+ '%d أشهر',
91
+ '%d شهرا',
92
+ '%d شهر',
93
+ ],
94
+ y: [
95
+ 'أقل من عام',
96
+ 'عام واحد',
97
+ ['عامان', 'عامين'],
98
+ '%d أعوام',
99
+ '%d عامًا',
100
+ '%d عام',
101
+ ],
102
+ },
103
+ pluralize = function (u) {
104
+ return function (number, withoutSuffix, string, isFuture) {
105
+ var f = pluralForm(number),
106
+ str = plurals[u][pluralForm(number)];
107
+ if (f === 2) {
108
+ str = str[withoutSuffix ? 0 : 1];
109
+ }
110
+ return str.replace(/%d/i, number);
111
+ };
112
+ },
113
+ months = [
114
+ 'يناير',
115
+ 'فبراير',
116
+ 'مارس',
117
+ 'أبريل',
118
+ 'مايو',
119
+ 'يونيو',
120
+ 'يوليو',
121
+ 'أغسطس',
122
+ 'سبتمبر',
123
+ 'أكتوبر',
124
+ 'نوفمبر',
125
+ 'ديسمبر',
126
+ ];
65
127
 
66
128
  var ar = moment.defineLocale('ar', {
67
- months : months,
68
- monthsShort : months,
69
- weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
70
- weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
71
- weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
72
- weekdaysParseExact : true,
73
- longDateFormat : {
74
- LT : 'HH:mm',
75
- LTS : 'HH:mm:ss',
76
- L : 'D/\u200FM/\u200FYYYY',
77
- LL : 'D MMMM YYYY',
78
- LLL : 'D MMMM YYYY HH:mm',
79
- LLLL : 'dddd D MMMM YYYY HH:mm'
129
+ months: months,
130
+ monthsShort: months,
131
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
132
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
133
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
134
+ weekdaysParseExact: true,
135
+ longDateFormat: {
136
+ LT: 'HH:mm',
137
+ LTS: 'HH:mm:ss',
138
+ L: 'D/\u200FM/\u200FYYYY',
139
+ LL: 'D MMMM YYYY',
140
+ LLL: 'D MMMM YYYY HH:mm',
141
+ LLLL: 'dddd D MMMM YYYY HH:mm',
80
142
  },
81
143
  meridiemParse: /ص|م/,
82
- isPM : function (input) {
144
+ isPM: function (input) {
83
145
  return 'م' === input;
84
146
  },
85
- meridiem : function (hour, minute, isLower) {
147
+ meridiem: function (hour, minute, isLower) {
86
148
  if (hour < 12) {
87
149
  return 'ص';
88
150
  } else {
89
151
  return 'م';
90
152
  }
91
153
  },
92
- calendar : {
154
+ calendar: {
93
155
  sameDay: '[اليوم عند الساعة] LT',
94
156
  nextDay: '[غدًا عند الساعة] LT',
95
157
  nextWeek: 'dddd [عند الساعة] LT',
96
158
  lastDay: '[أمس عند الساعة] LT',
97
159
  lastWeek: 'dddd [عند الساعة] LT',
98
- sameElse: 'L'
160
+ sameElse: 'L',
99
161
  },
100
- relativeTime : {
101
- future : 'بعد %s',
102
- past : 'منذ %s',
103
- s : pluralize('s'),
104
- ss : pluralize('s'),
105
- m : pluralize('m'),
106
- mm : pluralize('m'),
107
- h : pluralize('h'),
108
- hh : pluralize('h'),
109
- d : pluralize('d'),
110
- dd : pluralize('d'),
111
- M : pluralize('M'),
112
- MM : pluralize('M'),
113
- y : pluralize('y'),
114
- yy : pluralize('y')
162
+ relativeTime: {
163
+ future: 'بعد %s',
164
+ past: 'منذ %s',
165
+ s: pluralize('s'),
166
+ ss: pluralize('s'),
167
+ m: pluralize('m'),
168
+ mm: pluralize('m'),
169
+ h: pluralize('h'),
170
+ hh: pluralize('h'),
171
+ d: pluralize('d'),
172
+ dd: pluralize('d'),
173
+ M: pluralize('M'),
174
+ MM: pluralize('M'),
175
+ y: pluralize('y'),
176
+ yy: pluralize('y'),
115
177
  },
116
178
  preparse: function (string) {
117
- return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
118
- return numberMap[match];
119
- }).replace(/،/g, ',');
179
+ return string
180
+ .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
181
+ return numberMap[match];
182
+ })
183
+ .replace(/،/g, ',');
120
184
  },
121
185
  postformat: function (string) {
122
- return string.replace(/\d/g, function (match) {
123
- return symbolMap[match];
124
- }).replace(/,/g, '،');
186
+ return string
187
+ .replace(/\d/g, function (match) {
188
+ return symbolMap[match];
189
+ })
190
+ .replace(/,/g, '،');
191
+ },
192
+ week: {
193
+ dow: 6, // Saturday is the first day of the week.
194
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
125
195
  },
126
- week : {
127
- dow : 6, // Saturday is the first day of the week.
128
- doy : 12 // The week that contains Jan 12th is the first week of the year.
129
- }
130
196
  });
131
197
 
132
198
  return ar;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Azerbaijani [az]
3
+ //! author : topchiyev : https://github.com/topchiyev
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,6 +9,7 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var suffixes = {
12
15
  1: '-inci',
@@ -26,53 +29,58 @@
26
29
  10: '-uncu',
27
30
  30: '-uncu',
28
31
  60: '-ıncı',
29
- 90: '-ıncı'
32
+ 90: '-ıncı',
30
33
  };
31
34
 
32
35
  var az = moment.defineLocale('az', {
33
- months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
34
- monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
35
- weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
36
- weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
37
- weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
38
- weekdaysParseExact : true,
39
- longDateFormat : {
40
- LT : 'HH:mm',
41
- LTS : 'HH:mm:ss',
42
- L : 'DD.MM.YYYY',
43
- LL : 'D MMMM YYYY',
44
- LLL : 'D MMMM YYYY HH:mm',
45
- LLLL : 'dddd, D MMMM YYYY HH:mm'
36
+ months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
37
+ '_'
38
+ ),
39
+ monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
40
+ weekdays:
41
+ 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
42
+ '_'
43
+ ),
44
+ weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
45
+ weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
46
+ weekdaysParseExact: true,
47
+ longDateFormat: {
48
+ LT: 'HH:mm',
49
+ LTS: 'HH:mm:ss',
50
+ L: 'DD.MM.YYYY',
51
+ LL: 'D MMMM YYYY',
52
+ LLL: 'D MMMM YYYY HH:mm',
53
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
46
54
  },
47
- calendar : {
48
- sameDay : '[bugün saat] LT',
49
- nextDay : '[sabah saat] LT',
50
- nextWeek : '[gələn həftə] dddd [saat] LT',
51
- lastDay : '[dünən] LT',
52
- lastWeek : '[keçən həftə] dddd [saat] LT',
53
- sameElse : 'L'
55
+ calendar: {
56
+ sameDay: '[bugün saat] LT',
57
+ nextDay: '[sabah saat] LT',
58
+ nextWeek: '[gələn həftə] dddd [saat] LT',
59
+ lastDay: '[dünən] LT',
60
+ lastWeek: '[keçən həftə] dddd [saat] LT',
61
+ sameElse: 'L',
54
62
  },
55
- relativeTime : {
56
- future : '%s sonra',
57
- past : '%s əvvəl',
58
- s : 'birneçə saniyə',
59
- ss : '%d saniyə',
60
- m : 'bir dəqiqə',
61
- mm : '%d dəqiqə',
62
- h : 'bir saat',
63
- hh : '%d saat',
64
- d : 'bir gün',
65
- dd : '%d gün',
66
- M : 'bir ay',
67
- MM : '%d ay',
68
- y : 'bir il',
69
- yy : '%d il'
63
+ relativeTime: {
64
+ future: '%s sonra',
65
+ past: '%s əvvəl',
66
+ s: 'bir neçə saniyə',
67
+ ss: '%d saniyə',
68
+ m: 'bir dəqiqə',
69
+ mm: '%d dəqiqə',
70
+ h: 'bir saat',
71
+ hh: '%d saat',
72
+ d: 'bir gün',
73
+ dd: '%d gün',
74
+ M: 'bir ay',
75
+ MM: '%d ay',
76
+ y: 'bir il',
77
+ yy: '%d il',
70
78
  },
71
79
  meridiemParse: /gecə|səhər|gündüz|axşam/,
72
- isPM : function (input) {
80
+ isPM: function (input) {
73
81
  return /^(gündüz|axşam)$/.test(input);
74
82
  },
75
- meridiem : function (hour, minute, isLower) {
83
+ meridiem: function (hour, minute, isLower) {
76
84
  if (hour < 4) {
77
85
  return 'gecə';
78
86
  } else if (hour < 12) {
@@ -84,19 +92,20 @@
84
92
  }
85
93
  },
86
94
  dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
87
- ordinal : function (number) {
88
- if (number === 0) { // special case for zero
95
+ ordinal: function (number) {
96
+ if (number === 0) {
97
+ // special case for zero
89
98
  return number + '-ıncı';
90
99
  }
91
100
  var a = number % 10,
92
- b = number % 100 - a,
101
+ b = (number % 100) - a,
93
102
  c = number >= 100 ? 100 : null;
94
103
  return number + (suffixes[a] || suffixes[b] || suffixes[c]);
95
104
  },
96
- week : {
97
- dow : 1, // Monday is the first day of the week.
98
- doy : 7 // The week that contains Jan 7th is the first week of the year.
99
- }
105
+ week: {
106
+ dow: 1, // Monday is the first day of the week.
107
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
108
+ },
100
109
  });
101
110
 
102
111
  return az;
@@ -1,4 +1,8 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Belarusian [be]
3
+ //! author : Dmitry Demidov : https://github.com/demidov91
4
+ //! author: Praleska: http://praleska.pro/
5
+ //! Author : Menelion Elensúle : https://github.com/Oire
2
6
 
3
7
  ;(function (global, factory) {
4
8
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,53 +11,67 @@
7
11
  factory(global.moment)
8
12
  }(this, (function (moment) { 'use strict';
9
13
 
14
+ //! moment.js locale configuration
10
15
 
11
16
  function plural(word, num) {
12
17
  var forms = word.split('_');
13
- 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]);
18
+ return num % 10 === 1 && num % 100 !== 11
19
+ ? forms[0]
20
+ : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
21
+ ? forms[1]
22
+ : forms[2];
14
23
  }
15
24
  function relativeTimeWithPlural(number, withoutSuffix, key) {
16
25
  var format = {
17
- 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
18
- 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
19
- 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
20
- 'dd': 'дзень_дні_дзён',
21
- 'MM': 'месяц_месяцы_месяцаў',
22
- 'yy': 'год_гады_гадоў'
26
+ ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
27
+ mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
28
+ hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
29
+ dd: 'дзень_дні_дзён',
30
+ MM: 'месяц_месяцы_месяцаў',
31
+ yy: 'год_гады_гадоў',
23
32
  };
24
33
  if (key === 'm') {
25
34
  return withoutSuffix ? 'хвіліна' : 'хвіліну';
26
- }
27
- else if (key === 'h') {
35
+ } else if (key === 'h') {
28
36
  return withoutSuffix ? 'гадзіна' : 'гадзіну';
29
- }
30
- else {
37
+ } else {
31
38
  return number + ' ' + plural(format[key], +number);
32
39
  }
33
40
  }
34
41
 
35
42
  var be = moment.defineLocale('be', {
36
- months : {
37
- format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
38
- standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
43
+ months: {
44
+ format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
45
+ '_'
46
+ ),
47
+ standalone:
48
+ 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
49
+ '_'
50
+ ),
39
51
  },
40
- monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
41
- weekdays : {
42
- format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
43
- standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
44
- isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
52
+ monthsShort:
53
+ 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
54
+ weekdays: {
55
+ format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
56
+ '_'
57
+ ),
58
+ standalone:
59
+ 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
60
+ '_'
61
+ ),
62
+ isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
45
63
  },
46
- weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
47
- weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
48
- longDateFormat : {
49
- LT : 'HH:mm',
50
- LTS : 'HH:mm:ss',
51
- L : 'DD.MM.YYYY',
52
- LL : 'D MMMM YYYY г.',
53
- LLL : 'D MMMM YYYY г., HH:mm',
54
- LLLL : 'dddd, D MMMM YYYY г., HH:mm'
64
+ weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
65
+ weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
66
+ longDateFormat: {
67
+ LT: 'HH:mm',
68
+ LTS: 'HH:mm:ss',
69
+ L: 'DD.MM.YYYY',
70
+ LL: 'D MMMM YYYY г.',
71
+ LLL: 'D MMMM YYYY г., HH:mm',
72
+ LLLL: 'dddd, D MMMM YYYY г., HH:mm',
55
73
  },
56
- calendar : {
74
+ calendar: {
57
75
  sameDay: '[Сёння ў] LT',
58
76
  nextDay: '[Заўтра ў] LT',
59
77
  lastDay: '[Учора ў] LT',
@@ -73,28 +91,28 @@
73
91
  return '[У мінулы] dddd [ў] LT';
74
92
  }
75
93
  },
76
- sameElse: 'L'
94
+ sameElse: 'L',
77
95
  },
78
- relativeTime : {
79
- future : 'праз %s',
80
- past : '%s таму',
81
- s : 'некалькі секунд',
82
- m : relativeTimeWithPlural,
83
- mm : relativeTimeWithPlural,
84
- h : relativeTimeWithPlural,
85
- hh : relativeTimeWithPlural,
86
- d : 'дзень',
87
- dd : relativeTimeWithPlural,
88
- M : 'месяц',
89
- MM : relativeTimeWithPlural,
90
- y : 'год',
91
- yy : relativeTimeWithPlural
96
+ relativeTime: {
97
+ future: 'праз %s',
98
+ past: '%s таму',
99
+ s: 'некалькі секунд',
100
+ m: relativeTimeWithPlural,
101
+ mm: relativeTimeWithPlural,
102
+ h: relativeTimeWithPlural,
103
+ hh: relativeTimeWithPlural,
104
+ d: 'дзень',
105
+ dd: relativeTimeWithPlural,
106
+ M: 'месяц',
107
+ MM: relativeTimeWithPlural,
108
+ y: 'год',
109
+ yy: relativeTimeWithPlural,
92
110
  },
93
111
  meridiemParse: /ночы|раніцы|дня|вечара/,
94
- isPM : function (input) {
112
+ isPM: function (input) {
95
113
  return /^(дня|вечара)$/.test(input);
96
114
  },
97
- meridiem : function (hour, minute, isLower) {
115
+ meridiem: function (hour, minute, isLower) {
98
116
  if (hour < 4) {
99
117
  return 'ночы';
100
118
  } else if (hour < 12) {
@@ -113,17 +131,21 @@
113
131
  case 'DDD':
114
132
  case 'w':
115
133
  case 'W':
116
- return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
134
+ return (number % 10 === 2 || number % 10 === 3) &&
135
+ number % 100 !== 12 &&
136
+ number % 100 !== 13
137
+ ? number + '-і'
138
+ : number + '-ы';
117
139
  case 'D':
118
140
  return number + '-га';
119
141
  default:
120
142
  return number;
121
143
  }
122
144
  },
123
- week : {
124
- dow : 1, // Monday is the first day of the week.
125
- doy : 7 // The week that contains Jan 7th is the first week of the year.
126
- }
145
+ week: {
146
+ dow: 1, // Monday is the first day of the week.
147
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
148
+ },
127
149
  });
128
150
 
129
151
  return be;