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,7 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Marathi [mr]
3
+ //! author : Harshad Kale : https://github.com/kalehv
4
+ //! author : Vivek Athalye : https://github.com/vnathalye
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,94 +10,146 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
15
  var symbolMap = {
12
- '1': '१',
13
- '2': '२',
14
- '3': '३',
15
- '4': '४',
16
- '5': '५',
17
- '6': '६',
18
- '7': '७',
19
- '8': '८',
20
- '9': '९',
21
- '0': '०'
22
- },
23
- numberMap = {
24
- '१': '1',
25
- '२': '2',
26
- '३': '3',
27
- '४': '4',
28
- '५': '5',
29
- '६': '6',
30
- '७': '7',
31
- '८': '8',
32
- '९': '9',
33
- '०': '0'
34
- };
16
+ 1: '१',
17
+ 2: '२',
18
+ 3: '३',
19
+ 4: '४',
20
+ 5: '५',
21
+ 6: '६',
22
+ 7: '७',
23
+ 8: '८',
24
+ 9: '९',
25
+ 0: '०',
26
+ },
27
+ numberMap = {
28
+ '१': '1',
29
+ '२': '2',
30
+ '३': '3',
31
+ '४': '4',
32
+ '५': '5',
33
+ '६': '6',
34
+ '७': '7',
35
+ '८': '8',
36
+ '९': '9',
37
+ '०': '0',
38
+ };
35
39
 
36
- function relativeTimeMr(number, withoutSuffix, string, isFuture)
37
- {
40
+ function relativeTimeMr(number, withoutSuffix, string, isFuture) {
38
41
  var output = '';
39
42
  if (withoutSuffix) {
40
43
  switch (string) {
41
- case 's': output = 'काही सेकंद'; break;
42
- case 'ss': output = '%d सेकंद'; break;
43
- case 'm': output = 'एक मिनिट'; break;
44
- case 'mm': output = '%d मिनिटे'; break;
45
- case 'h': output = 'एक तास'; break;
46
- case 'hh': output = '%d तास'; break;
47
- case 'd': output = 'एक दिवस'; break;
48
- case 'dd': output = '%d दिवस'; break;
49
- case 'M': output = 'एक महिना'; break;
50
- case 'MM': output = '%d महिने'; break;
51
- case 'y': output = 'एक वर्ष'; break;
52
- case 'yy': output = '%d वर्षे'; break;
44
+ case 's':
45
+ output = 'काही सेकंद';
46
+ break;
47
+ case 'ss':
48
+ output = '%d सेकंद';
49
+ break;
50
+ case 'm':
51
+ output = 'एक मिनिट';
52
+ break;
53
+ case 'mm':
54
+ output = '%d मिनिटे';
55
+ break;
56
+ case 'h':
57
+ output = 'एक तास';
58
+ break;
59
+ case 'hh':
60
+ output = '%d तास';
61
+ break;
62
+ case 'd':
63
+ output = 'एक दिवस';
64
+ break;
65
+ case 'dd':
66
+ output = '%d दिवस';
67
+ break;
68
+ case 'M':
69
+ output = 'एक महिना';
70
+ break;
71
+ case 'MM':
72
+ output = '%d महिने';
73
+ break;
74
+ case 'y':
75
+ output = 'एक वर्ष';
76
+ break;
77
+ case 'yy':
78
+ output = '%d वर्षे';
79
+ break;
53
80
  }
54
- }
55
- else {
81
+ } else {
56
82
  switch (string) {
57
- case 's': output = 'काही सेकंदां'; break;
58
- case 'ss': output = '%d सेकंदां'; break;
59
- case 'm': output = 'एका मिनिटा'; break;
60
- case 'mm': output = '%d मिनिटां'; break;
61
- case 'h': output = 'एका तासा'; break;
62
- case 'hh': output = '%d तासां'; break;
63
- case 'd': output = 'एका दिवसा'; break;
64
- case 'dd': output = '%d दिवसां'; break;
65
- case 'M': output = 'एका महिन्या'; break;
66
- case 'MM': output = '%d महिन्यां'; break;
67
- case 'y': output = 'एका वर्षा'; break;
68
- case 'yy': output = '%d वर्षां'; break;
83
+ case 's':
84
+ output = 'काही सेकंदां';
85
+ break;
86
+ case 'ss':
87
+ output = '%d सेकंदां';
88
+ break;
89
+ case 'm':
90
+ output = 'एका मिनिटा';
91
+ break;
92
+ case 'mm':
93
+ output = '%d मिनिटां';
94
+ break;
95
+ case 'h':
96
+ output = 'एका तासा';
97
+ break;
98
+ case 'hh':
99
+ output = '%d तासां';
100
+ break;
101
+ case 'd':
102
+ output = 'एका दिवसा';
103
+ break;
104
+ case 'dd':
105
+ output = '%d दिवसां';
106
+ break;
107
+ case 'M':
108
+ output = 'एका महिन्या';
109
+ break;
110
+ case 'MM':
111
+ output = '%d महिन्यां';
112
+ break;
113
+ case 'y':
114
+ output = 'एका वर्षा';
115
+ break;
116
+ case 'yy':
117
+ output = '%d वर्षां';
118
+ break;
69
119
  }
70
120
  }
71
121
  return output.replace(/%d/i, number);
72
122
  }
73
123
 
74
124
  var mr = moment.defineLocale('mr', {
75
- months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
76
- monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
77
- monthsParseExact : true,
78
- weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
79
- weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
80
- weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
81
- longDateFormat : {
82
- LT : 'A h:mm वाजता',
83
- LTS : 'A h:mm:ss वाजता',
84
- L : 'DD/MM/YYYY',
85
- LL : 'D MMMM YYYY',
86
- LLL : 'D MMMM YYYY, A h:mm वाजता',
87
- LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
125
+ months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
126
+ '_'
127
+ ),
128
+ monthsShort:
129
+ 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
130
+ '_'
131
+ ),
132
+ monthsParseExact: true,
133
+ weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
134
+ weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
135
+ weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
136
+ longDateFormat: {
137
+ LT: 'A h:mm वाजता',
138
+ LTS: 'A h:mm:ss वाजता',
139
+ L: 'DD/MM/YYYY',
140
+ LL: 'D MMMM YYYY',
141
+ LLL: 'D MMMM YYYY, A h:mm वाजता',
142
+ LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
88
143
  },
89
- calendar : {
90
- sameDay : '[आज] LT',
91
- nextDay : '[उद्या] LT',
92
- nextWeek : 'dddd, LT',
93
- lastDay : '[काल] LT',
144
+ calendar: {
145
+ sameDay: '[आज] LT',
146
+ nextDay: '[उद्या] LT',
147
+ nextWeek: 'dddd, LT',
148
+ lastDay: '[काल] LT',
94
149
  lastWeek: '[मागील] dddd, LT',
95
- sameElse : 'L'
150
+ sameElse: 'L',
96
151
  },
97
- relativeTime : {
152
+ relativeTime: {
98
153
  future: '%sमध्ये',
99
154
  past: '%sपूर्वी',
100
155
  s: relativeTimeMr,
@@ -108,7 +163,7 @@
108
163
  M: relativeTimeMr,
109
164
  MM: relativeTimeMr,
110
165
  y: relativeTimeMr,
111
- yy: relativeTimeMr
166
+ yy: relativeTimeMr,
112
167
  },
113
168
  preparse: function (string) {
114
169
  return string.replace(/[१२३४५६७८९०]/g, function (match) {
@@ -120,25 +175,25 @@
120
175
  return symbolMap[match];
121
176
  });
122
177
  },
123
- meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
124
- meridiemHour : function (hour, meridiem) {
178
+ meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
179
+ meridiemHour: function (hour, meridiem) {
125
180
  if (hour === 12) {
126
181
  hour = 0;
127
182
  }
128
- if (meridiem === 'रात्री') {
129
- return hour < 4 ? hour : hour + 12;
130
- } else if (meridiem === 'सकाळी') {
183
+ if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
131
184
  return hour;
132
- } else if (meridiem === 'दुपारी') {
133
- return hour >= 10 ? hour : hour + 12;
134
- } else if (meridiem === 'सायंकाळी') {
135
- return hour + 12;
185
+ } else if (
186
+ meridiem === 'दुपारी' ||
187
+ meridiem === 'सायंकाळी' ||
188
+ meridiem === 'रात्री'
189
+ ) {
190
+ return hour >= 12 ? hour : hour + 12;
136
191
  }
137
192
  },
138
193
  meridiem: function (hour, minute, isLower) {
139
- if (hour < 4) {
140
- return 'रात्री';
141
- } else if (hour < 10) {
194
+ if (hour >= 0 && hour < 6) {
195
+ return 'पहाटे';
196
+ } else if (hour < 12) {
142
197
  return 'सकाळी';
143
198
  } else if (hour < 17) {
144
199
  return 'दुपारी';
@@ -148,10 +203,10 @@
148
203
  return 'रात्री';
149
204
  }
150
205
  },
151
- week : {
152
- dow : 0, // Sunday is the first day of the week.
153
- doy : 6 // The week that contains Jan 6th is the first week of the year.
154
- }
206
+ week: {
207
+ dow: 0, // Sunday is the first day of the week.
208
+ doy: 6, // The week that contains Jan 6th is the first week of the year.
209
+ },
155
210
  });
156
211
 
157
212
  return mr;
@@ -1,4 +1,7 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Malay [ms-my]
3
+ //! note : DEPRECATED, the correct one is [ms]
4
+ //! author : Weldan Jamili : https://github.com/weldan
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,20 +10,23 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
15
  var msMy = moment.defineLocale('ms-my', {
12
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
13
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
14
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
15
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
16
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
17
- longDateFormat : {
18
- LT : 'HH.mm',
19
- LTS : 'HH.mm.ss',
20
- L : 'DD/MM/YYYY',
21
- LL : 'D MMMM YYYY',
22
- LLL : 'D MMMM YYYY [pukul] HH.mm',
23
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
16
+ months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
17
+ '_'
18
+ ),
19
+ monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
20
+ weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
21
+ weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
22
+ weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
23
+ longDateFormat: {
24
+ LT: 'HH.mm',
25
+ LTS: 'HH.mm.ss',
26
+ L: 'DD/MM/YYYY',
27
+ LL: 'D MMMM YYYY',
28
+ LLL: 'D MMMM YYYY [pukul] HH.mm',
29
+ LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
24
30
  },
25
31
  meridiemParse: /pagi|tengahari|petang|malam/,
26
32
  meridiemHour: function (hour, meridiem) {
@@ -35,7 +41,7 @@
35
41
  return hour + 12;
36
42
  }
37
43
  },
38
- meridiem : function (hours, minutes, isLower) {
44
+ meridiem: function (hours, minutes, isLower) {
39
45
  if (hours < 11) {
40
46
  return 'pagi';
41
47
  } else if (hours < 15) {
@@ -46,34 +52,34 @@
46
52
  return 'malam';
47
53
  }
48
54
  },
49
- calendar : {
50
- sameDay : '[Hari ini pukul] LT',
51
- nextDay : '[Esok pukul] LT',
52
- nextWeek : 'dddd [pukul] LT',
53
- lastDay : '[Kelmarin pukul] LT',
54
- lastWeek : 'dddd [lepas pukul] LT',
55
- sameElse : 'L'
55
+ calendar: {
56
+ sameDay: '[Hari ini pukul] LT',
57
+ nextDay: '[Esok pukul] LT',
58
+ nextWeek: 'dddd [pukul] LT',
59
+ lastDay: '[Kelmarin pukul] LT',
60
+ lastWeek: 'dddd [lepas pukul] LT',
61
+ sameElse: 'L',
56
62
  },
57
- relativeTime : {
58
- future : 'dalam %s',
59
- past : '%s yang lepas',
60
- s : 'beberapa saat',
61
- ss : '%d saat',
62
- m : 'seminit',
63
- mm : '%d minit',
64
- h : 'sejam',
65
- hh : '%d jam',
66
- d : 'sehari',
67
- dd : '%d hari',
68
- M : 'sebulan',
69
- MM : '%d bulan',
70
- y : 'setahun',
71
- yy : '%d tahun'
63
+ relativeTime: {
64
+ future: 'dalam %s',
65
+ past: '%s yang lepas',
66
+ s: 'beberapa saat',
67
+ ss: '%d saat',
68
+ m: 'seminit',
69
+ mm: '%d minit',
70
+ h: 'sejam',
71
+ hh: '%d jam',
72
+ d: 'sehari',
73
+ dd: '%d hari',
74
+ M: 'sebulan',
75
+ MM: '%d bulan',
76
+ y: 'setahun',
77
+ yy: '%d tahun',
78
+ },
79
+ week: {
80
+ dow: 1, // Monday is the first day of the week.
81
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
72
82
  },
73
- week : {
74
- dow : 1, // Monday is the first day of the week.
75
- doy : 7 // The week that contains Jan 7th is the first week of the year.
76
- }
77
83
  });
78
84
 
79
85
  return msMy;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Malay [ms]
3
+ //! author : Weldan Jamili : https://github.com/weldan
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,20 +9,23 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var ms = moment.defineLocale('ms', {
12
- months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
13
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
14
- weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
15
- weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
16
- weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
17
- longDateFormat : {
18
- LT : 'HH.mm',
19
- LTS : 'HH.mm.ss',
20
- L : 'DD/MM/YYYY',
21
- LL : 'D MMMM YYYY',
22
- LLL : 'D MMMM YYYY [pukul] HH.mm',
23
- LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
15
+ months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
19
+ weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
20
+ weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
21
+ weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
22
+ longDateFormat: {
23
+ LT: 'HH.mm',
24
+ LTS: 'HH.mm.ss',
25
+ L: 'DD/MM/YYYY',
26
+ LL: 'D MMMM YYYY',
27
+ LLL: 'D MMMM YYYY [pukul] HH.mm',
28
+ LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
24
29
  },
25
30
  meridiemParse: /pagi|tengahari|petang|malam/,
26
31
  meridiemHour: function (hour, meridiem) {
@@ -35,7 +40,7 @@
35
40
  return hour + 12;
36
41
  }
37
42
  },
38
- meridiem : function (hours, minutes, isLower) {
43
+ meridiem: function (hours, minutes, isLower) {
39
44
  if (hours < 11) {
40
45
  return 'pagi';
41
46
  } else if (hours < 15) {
@@ -46,34 +51,34 @@
46
51
  return 'malam';
47
52
  }
48
53
  },
49
- calendar : {
50
- sameDay : '[Hari ini pukul] LT',
51
- nextDay : '[Esok pukul] LT',
52
- nextWeek : 'dddd [pukul] LT',
53
- lastDay : '[Kelmarin pukul] LT',
54
- lastWeek : 'dddd [lepas pukul] LT',
55
- sameElse : 'L'
54
+ calendar: {
55
+ sameDay: '[Hari ini pukul] LT',
56
+ nextDay: '[Esok pukul] LT',
57
+ nextWeek: 'dddd [pukul] LT',
58
+ lastDay: '[Kelmarin pukul] LT',
59
+ lastWeek: 'dddd [lepas pukul] LT',
60
+ sameElse: 'L',
56
61
  },
57
- relativeTime : {
58
- future : 'dalam %s',
59
- past : '%s yang lepas',
60
- s : 'beberapa saat',
61
- ss : '%d saat',
62
- m : 'seminit',
63
- mm : '%d minit',
64
- h : 'sejam',
65
- hh : '%d jam',
66
- d : 'sehari',
67
- dd : '%d hari',
68
- M : 'sebulan',
69
- MM : '%d bulan',
70
- y : 'setahun',
71
- yy : '%d tahun'
62
+ relativeTime: {
63
+ future: 'dalam %s',
64
+ past: '%s yang lepas',
65
+ s: 'beberapa saat',
66
+ ss: '%d saat',
67
+ m: 'seminit',
68
+ mm: '%d minit',
69
+ h: 'sejam',
70
+ hh: '%d jam',
71
+ d: 'sehari',
72
+ dd: '%d hari',
73
+ M: 'sebulan',
74
+ MM: '%d bulan',
75
+ y: 'setahun',
76
+ yy: '%d tahun',
77
+ },
78
+ week: {
79
+ dow: 1, // Monday is the first day of the week.
80
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
72
81
  },
73
- week : {
74
- dow : 1, // Monday is the first day of the week.
75
- doy : 7 // The week that contains Jan 7th is the first week of the year.
76
- }
77
82
  });
78
83
 
79
84
  return ms;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Maltese (Malta) [mt]
3
+ //! author : Alessandro Maruccia : https://github.com/alesma
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,51 +9,57 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var mt = moment.defineLocale('mt', {
12
- months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
13
- monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
14
- weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
15
- weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
16
- weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
17
- longDateFormat : {
18
- LT : 'HH:mm',
19
- LTS : 'HH:mm:ss',
20
- L : 'DD/MM/YYYY',
21
- LL : 'D MMMM YYYY',
22
- LLL : 'D MMMM YYYY HH:mm',
23
- LLLL : 'dddd, D MMMM YYYY HH:mm'
15
+ months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
19
+ weekdays:
20
+ 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
24
+ weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
25
+ longDateFormat: {
26
+ LT: 'HH:mm',
27
+ LTS: 'HH:mm:ss',
28
+ L: 'DD/MM/YYYY',
29
+ LL: 'D MMMM YYYY',
30
+ LLL: 'D MMMM YYYY HH:mm',
31
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
24
32
  },
25
- calendar : {
26
- sameDay : '[Illum fil-]LT',
27
- nextDay : '[Għada fil-]LT',
28
- nextWeek : 'dddd [fil-]LT',
29
- lastDay : '[Il-bieraħ fil-]LT',
30
- lastWeek : 'dddd [li għadda] [fil-]LT',
31
- sameElse : 'L'
33
+ calendar: {
34
+ sameDay: '[Illum fil-]LT',
35
+ nextDay: '[Għada fil-]LT',
36
+ nextWeek: 'dddd [fil-]LT',
37
+ lastDay: '[Il-bieraħ fil-]LT',
38
+ lastWeek: 'dddd [li għadda] [fil-]LT',
39
+ sameElse: 'L',
32
40
  },
33
- relativeTime : {
34
- future : 'f’ %s',
35
- past : '%s ilu',
36
- s : 'ftit sekondi',
37
- ss : '%d sekondi',
38
- m : 'minuta',
39
- mm : '%d minuti',
40
- h : 'siegħa',
41
- hh : '%d siegħat',
42
- d : 'ġurnata',
43
- dd : '%d ġranet',
44
- M : 'xahar',
45
- MM : '%d xhur',
46
- y : 'sena',
47
- yy : '%d sni'
41
+ relativeTime: {
42
+ future: 'f’ %s',
43
+ past: '%s ilu',
44
+ s: 'ftit sekondi',
45
+ ss: '%d sekondi',
46
+ m: 'minuta',
47
+ mm: '%d minuti',
48
+ h: 'siegħa',
49
+ hh: '%d siegħat',
50
+ d: 'ġurnata',
51
+ dd: '%d ġranet',
52
+ M: 'xahar',
53
+ MM: '%d xhur',
54
+ y: 'sena',
55
+ yy: '%d sni',
48
56
  },
49
- dayOfMonthOrdinalParse : /\d{1,2}º/,
57
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
50
58
  ordinal: '%dº',
51
- week : {
52
- dow : 1, // Monday is the first day of the week.
53
- doy : 4 // The week that contains Jan 4th is the first week of the year.
54
- }
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.
62
+ },
55
63
  });
56
64
 
57
65
  return mt;