alloy 2.0.2 → 3.0.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 (240) hide show
  1. package/.eslintignore +0 -1
  2. package/.eslintrc.js +2 -1
  3. package/.github/dependabot.yml +4 -0
  4. package/.github/workflows/build.yml +12 -9
  5. package/.github/workflows/cla.yaml +1 -1
  6. package/.github/workflows/publish.yml +44 -5
  7. package/Alloy/builtins/moment/lang/af.js +52 -42
  8. package/Alloy/builtins/moment/lang/ar-dz.js +151 -42
  9. package/Alloy/builtins/moment/lang/ar-kw.js +42 -34
  10. package/Alloy/builtins/moment/lang/ar-ly.js +142 -81
  11. package/Alloy/builtins/moment/lang/ar-ma.js +43 -34
  12. package/Alloy/builtins/moment/lang/ar-ps.js +123 -0
  13. package/Alloy/builtins/moment/lang/ar-sa.js +77 -64
  14. package/Alloy/builtins/moment/lang/ar-tn.js +17 -9
  15. package/Alloy/builtins/moment/lang/ar.js +161 -95
  16. package/Alloy/builtins/moment/lang/az.js +54 -45
  17. package/Alloy/builtins/moment/lang/be.js +73 -51
  18. package/Alloy/builtins/moment/lang/bg.js +50 -41
  19. package/Alloy/builtins/moment/lang/bm.js +43 -38
  20. package/Alloy/builtins/moment/lang/bn-bd.js +140 -0
  21. package/Alloy/builtins/moment/lang/bn.js +78 -66
  22. package/Alloy/builtins/moment/lang/bo.js +83 -66
  23. package/Alloy/builtins/moment/lang/br.js +119 -47
  24. package/Alloy/builtins/moment/lang/bs.js +64 -43
  25. package/Alloy/builtins/moment/lang/ca.js +80 -56
  26. package/Alloy/builtins/moment/lang/cs.js +89 -68
  27. package/Alloy/builtins/moment/lang/cv.js +47 -35
  28. package/Alloy/builtins/moment/lang/cy.js +44 -14
  29. package/Alloy/builtins/moment/lang/da.js +44 -39
  30. package/Alloy/builtins/moment/lang/de-at.js +57 -42
  31. package/Alloy/builtins/moment/lang/de-ch.js +54 -42
  32. package/Alloy/builtins/moment/lang/de.js +56 -42
  33. package/Alloy/builtins/moment/lang/dv.js +65 -62
  34. package/Alloy/builtins/moment/lang/el.js +67 -49
  35. package/Alloy/builtins/moment/lang/en-au.js +56 -43
  36. package/Alloy/builtins/moment/lang/en-ca.js +53 -40
  37. package/Alloy/builtins/moment/lang/en-gb.js +56 -43
  38. package/Alloy/builtins/moment/lang/en-ie.js +56 -43
  39. package/Alloy/builtins/moment/lang/en-il.js +53 -39
  40. package/Alloy/builtins/moment/lang/en-in.js +79 -0
  41. package/Alloy/builtins/moment/lang/en-nz.js +56 -43
  42. package/Alloy/builtins/moment/lang/en-sg.js +79 -0
  43. package/Alloy/builtins/moment/lang/eo.js +49 -40
  44. package/Alloy/builtins/moment/lang/es-do.js +81 -53
  45. package/Alloy/builtins/moment/lang/es-mx.js +121 -0
  46. package/Alloy/builtins/moment/lang/es-us.js +83 -53
  47. package/Alloy/builtins/moment/lang/es.js +88 -58
  48. package/Alloy/builtins/moment/lang/et.js +60 -50
  49. package/Alloy/builtins/moment/lang/eu.js +56 -45
  50. package/Alloy/builtins/moment/lang/fa.js +88 -69
  51. package/Alloy/builtins/moment/lang/fi.js +75 -48
  52. package/Alloy/builtins/moment/lang/fil.js +69 -0
  53. package/Alloy/builtins/moment/lang/fo.js +48 -39
  54. package/Alloy/builtins/moment/lang/fr-ca.js +46 -38
  55. package/Alloy/builtins/moment/lang/fr-ch.js +49 -41
  56. package/Alloy/builtins/moment/lang/fr.js +78 -41
  57. package/Alloy/builtins/moment/lang/fy.js +51 -39
  58. package/Alloy/builtins/moment/lang/ga.js +48 -18
  59. package/Alloy/builtins/moment/lang/gd.js +82 -51
  60. package/Alloy/builtins/moment/lang/gl.js +56 -46
  61. package/Alloy/builtins/moment/lang/gom-deva.js +137 -0
  62. package/Alloy/builtins/moment/lang/gom-latn.js +71 -58
  63. package/Alloy/builtins/moment/lang/gu.js +30 -20
  64. package/Alloy/builtins/moment/lang/he.js +52 -43
  65. package/Alloy/builtins/moment/lang/hi.js +120 -64
  66. package/Alloy/builtins/moment/lang/hr.js +57 -43
  67. package/Alloy/builtins/moment/lang/hu.js +64 -44
  68. package/Alloy/builtins/moment/lang/hy-am.js +47 -36
  69. package/Alloy/builtins/moment/lang/id.js +46 -40
  70. package/Alloy/builtins/moment/lang/is.js +63 -43
  71. package/Alloy/builtins/moment/lang/it-ch.js +42 -35
  72. package/Alloy/builtins/moment/lang/it.js +91 -42
  73. package/Alloy/builtins/moment/lang/ja.js +113 -45
  74. package/Alloy/builtins/moment/lang/jv.js +46 -40
  75. package/Alloy/builtins/moment/lang/ka.js +66 -51
  76. package/Alloy/builtins/moment/lang/kk.js +47 -40
  77. package/Alloy/builtins/moment/lang/km.js +37 -32
  78. package/Alloy/builtins/moment/lang/kn.js +74 -64
  79. package/Alloy/builtins/moment/lang/ko.js +50 -44
  80. package/Alloy/builtins/moment/lang/ku-kmr.js +125 -0
  81. package/Alloy/builtins/moment/lang/ku.js +94 -83
  82. package/Alloy/builtins/moment/lang/ky.js +49 -40
  83. package/Alloy/builtins/moment/lang/lb.js +43 -30
  84. package/Alloy/builtins/moment/lang/lo.js +46 -38
  85. package/Alloy/builtins/moment/lang/lt.js +82 -63
  86. package/Alloy/builtins/moment/lang/lv.js +60 -51
  87. package/Alloy/builtins/moment/lang/me.js +53 -36
  88. package/Alloy/builtins/moment/lang/mi.js +17 -9
  89. package/Alloy/builtins/moment/lang/mk.js +47 -39
  90. package/Alloy/builtins/moment/lang/ml.js +54 -41
  91. package/Alloy/builtins/moment/lang/mn.js +48 -40
  92. package/Alloy/builtins/moment/lang/mr.js +143 -88
  93. package/Alloy/builtins/moment/lang/ms-my.js +45 -39
  94. package/Alloy/builtins/moment/lang/ms.js +44 -39
  95. package/Alloy/builtins/moment/lang/mt.js +47 -39
  96. package/Alloy/builtins/moment/lang/my.js +40 -30
  97. package/Alloy/builtins/moment/lang/nb.js +46 -36
  98. package/Alloy/builtins/moment/lang/ne.js +75 -65
  99. package/Alloy/builtins/moment/lang/nl-be.js +73 -46
  100. package/Alloy/builtins/moment/lang/nl.js +75 -46
  101. package/Alloy/builtins/moment/lang/nn.js +45 -34
  102. package/Alloy/builtins/moment/lang/oc-lnc.js +96 -0
  103. package/Alloy/builtins/moment/lang/pa-in.js +73 -63
  104. package/Alloy/builtins/moment/lang/pl.js +69 -43
  105. package/Alloy/builtins/moment/lang/pt-br.js +43 -34
  106. package/Alloy/builtins/moment/lang/pt.js +48 -38
  107. package/Alloy/builtins/moment/lang/ro.js +52 -39
  108. package/Alloy/builtins/moment/lang/ru.js +104 -61
  109. package/Alloy/builtins/moment/lang/sd.js +57 -62
  110. package/Alloy/builtins/moment/lang/se.js +42 -33
  111. package/Alloy/builtins/moment/lang/si.js +50 -40
  112. package/Alloy/builtins/moment/lang/sk.js +54 -53
  113. package/Alloy/builtins/moment/lang/sl.js +51 -41
  114. package/Alloy/builtins/moment/lang/sq.js +50 -41
  115. package/Alloy/builtins/moment/lang/sr-cyrl.js +71 -43
  116. package/Alloy/builtins/moment/lang/sr.js +74 -44
  117. package/Alloy/builtins/moment/lang/ss.js +50 -42
  118. package/Alloy/builtins/moment/lang/sv.js +52 -41
  119. package/Alloy/builtins/moment/lang/sw.js +47 -39
  120. package/Alloy/builtins/moment/lang/ta.js +78 -64
  121. package/Alloy/builtins/moment/lang/te.js +54 -43
  122. package/Alloy/builtins/moment/lang/tet.js +51 -38
  123. package/Alloy/builtins/moment/lang/tg.js +51 -38
  124. package/Alloy/builtins/moment/lang/th.js +47 -37
  125. package/Alloy/builtins/moment/lang/tk.js +102 -0
  126. package/Alloy/builtins/moment/lang/tl-ph.js +41 -34
  127. package/Alloy/builtins/moment/lang/tlh.js +69 -55
  128. package/Alloy/builtins/moment/lang/tr.js +83 -59
  129. package/Alloy/builtins/moment/lang/tzl.js +67 -57
  130. package/Alloy/builtins/moment/lang/tzm-latn.js +41 -33
  131. package/Alloy/builtins/moment/lang/tzm.js +40 -32
  132. package/Alloy/builtins/moment/lang/ug-cn.js +13 -9
  133. package/Alloy/builtins/moment/lang/uk.js +82 -57
  134. package/Alloy/builtins/moment/lang/ur.js +58 -62
  135. package/Alloy/builtins/moment/lang/uz-latn.js +46 -38
  136. package/Alloy/builtins/moment/lang/uz.js +43 -38
  137. package/Alloy/builtins/moment/lang/vi.js +56 -43
  138. package/Alloy/builtins/moment/lang/x-pseudo.js +61 -44
  139. package/Alloy/builtins/moment/lang/yo.js +45 -40
  140. package/Alloy/builtins/moment/lang/zh-cn.js +68 -46
  141. package/Alloy/builtins/moment/lang/zh-hk.js +61 -51
  142. package/Alloy/builtins/moment/lang/zh-mo.js +111 -0
  143. package/Alloy/builtins/moment/lang/zh-tw.js +57 -49
  144. package/Alloy/builtins/moment.js +2587 -1501
  145. package/Alloy/commands/compile/ast/controller.js +6 -2
  146. package/Alloy/commands/compile/compilerUtils.js +6 -8
  147. package/Alloy/commands/compile/parsers/Alloy.Abstract.FixedSpace.js +2 -11
  148. package/Alloy/commands/compile/parsers/Alloy.Abstract.FlexSpace.js +2 -11
  149. package/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js +2 -2
  150. package/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js +9 -2
  151. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.ContentView.js +13 -0
  152. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar._ProxyProperty.js +13 -0
  153. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.js +35 -0
  154. package/Alloy/commands/compile/parsers/Ti.UI.Android.DrawerLayout._ProxyProperty.js +0 -1
  155. package/Alloy/commands/compile/parsers/Ti.UI.AttributedString.js +0 -5
  156. package/Alloy/commands/compile/parsers/Ti.UI.Button.js +2 -11
  157. package/Alloy/commands/compile/parsers/Ti.UI.NavigationWindow.js +0 -15
  158. package/Alloy/commands/compile/parsers/Ti.UI.OptionBar.js +0 -5
  159. package/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js +1 -1
  160. package/Alloy/commands/compile/parsers/Ti.UI.TabbedBar.js +0 -9
  161. package/Alloy/commands/compile/parsers/Ti.UI.Toolbar.js +0 -6
  162. package/Alloy/commands/generate/targets/widget.js +1 -1
  163. package/Alloy/commands/info/index.js +2 -2
  164. package/Alloy/common/constants.js +5 -3
  165. package/Alloy/lib/alloy/backbone/1.6.0/backbone.js +2155 -0
  166. package/Alloy/lib/alloy/underscore.js +1722 -1372
  167. package/Alloy/template/README +3 -9
  168. package/Alloy/template/app.tss +5 -12
  169. package/Alloy/template/controller.js +1 -1
  170. package/Alloy/template/gitignore.txt +3 -0
  171. package/Alloy/template/lib/alloy.js +0 -17
  172. package/Alloy/template/style.tss +0 -3
  173. package/Alloy/template/view.xml +4 -3
  174. package/Alloy/template/widget/style.tss +1 -2
  175. package/Alloy/tiapp.js +1 -11
  176. package/Alloy/utils.js +1 -1
  177. package/CHANGELOG.md +16 -0
  178. package/README.md +16 -0
  179. package/package.json +23 -46
  180. package/samples/lib/testUtils.js +1 -1
  181. package/test/lib/testUtils.js +1 -1
  182. package/test/projects/HarnessTemplate/tiapp.xml +1 -15
  183. package/test/specs/compile.js +3 -2
  184. package/test/specs/compilefile.js +3 -3
  185. package/test/specs/new.js +1 -1
  186. package/test/specs/optimizer.js +10 -13
  187. package/Alloy/commands/compile/parsers/Ti.UI.iPhone.NavigationGroup.js +0 -58
  188. package/dangerfile.js +0 -20
  189. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/app.tss +0 -11
  190. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/requiredlabel.tss +0 -4
  191. package/samples/apps/advanced/complex_styling/views/mobileweb/label.xml +0 -3
  192. package/samples/apps/advanced/device_query/_generated/mobileweb/alloy/controllers/index.js +0 -60
  193. package/samples/apps/advanced/dynamic_styling/views/mobileweb/features/autoStyle.xml +0 -54
  194. package/samples/apps/advanced/form_factor/_generated/mobileweb/alloy/controllers/index.js +0 -121
  195. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/animatedDialog.js +0 -44
  196. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/baseDialog.js +0 -88
  197. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/index.js +0 -59
  198. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/detail.js +0 -102
  199. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/index.js +0 -35
  200. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/master.js +0 -53
  201. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/row.js +0 -67
  202. package/samples/apps/advanced/native_modules/_generated/mobileweb/alloy/controllers/index.js +0 -37
  203. package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js +0 -60
  204. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/index.js +0 -207
  205. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/proxy.js +0 -51
  206. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/window.js +0 -49
  207. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row.js +0 -46
  208. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row_bind.js +0 -46
  209. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/section.js +0 -59
  210. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row.js +0 -14
  211. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row_bind.js +0 -14
  212. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/section.js +0 -14
  213. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/dialog.js +0 -112
  214. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/index.js +0 -118
  215. package/samples/apps/basics/builtins/_generated/mobileweb/alloy/controllers/index.js +0 -102
  216. package/samples/apps/basics/config_json/_generated/mobileweb/alloy/controllers/index.js +0 -49
  217. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/CustomView.js +0 -60
  218. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/index.js +0 -57
  219. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/index.js +0 -40
  220. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/item.js +0 -45
  221. package/samples/apps/basics/markup_events/_generated/mobileweb/alloy/controllers/index.js +0 -49
  222. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/bottom.js +0 -42
  223. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/index.js +0 -49
  224. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/middle.js +0 -45
  225. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/theRest.js +0 -41
  226. package/samples/apps/basics/simple/_generated/mobileweb/alloy/controllers/index.js +0 -49
  227. package/samples/apps/models/journal/views/mobileweb/index.xml +0 -19
  228. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/00.png +0 -0
  229. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/01.png +0 -0
  230. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/02.png +0 -0
  231. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/03.png +0 -0
  232. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/04.png +0 -0
  233. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/05.png +0 -0
  234. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/06.png +0 -0
  235. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/07.png +0 -0
  236. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/08.png +0 -0
  237. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/09.png +0 -0
  238. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/10.png +0 -0
  239. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/11.png +0 -0
  240. 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 : Ukrainian [uk]
3
+ //! author : zemlanin : https://github.com/zemlanin
4
+ //! Author : Menelion Elensúle : https://github.com/Oire
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,49 +10,64 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
15
  function plural(word, num) {
12
16
  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]);
17
+ return num % 10 === 1 && num % 100 !== 11
18
+ ? forms[0]
19
+ : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
20
+ ? forms[1]
21
+ : forms[2];
14
22
  }
15
23
  function relativeTimeWithPlural(number, withoutSuffix, key) {
16
24
  var format = {
17
- 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
18
- 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
19
- 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
20
- 'dd': 'день_дні_днів',
21
- 'MM': 'місяць_місяці_місяців',
22
- 'yy': 'рік_роки_років'
25
+ ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
26
+ mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
27
+ hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
28
+ dd: 'день_дні_днів',
29
+ MM: 'місяць_місяці_місяців',
30
+ yy: 'рік_роки_років',
23
31
  };
24
32
  if (key === 'm') {
25
33
  return withoutSuffix ? 'хвилина' : 'хвилину';
26
- }
27
- else if (key === 'h') {
34
+ } else if (key === 'h') {
28
35
  return withoutSuffix ? 'година' : 'годину';
29
- }
30
- else {
36
+ } else {
31
37
  return number + ' ' + plural(format[key], +number);
32
38
  }
33
39
  }
34
40
  function weekdaysCaseReplace(m, format) {
35
41
  var weekdays = {
36
- 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
37
- 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
38
- 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
39
- };
42
+ nominative:
43
+ 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
44
+ '_'
45
+ ),
46
+ accusative:
47
+ 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
48
+ '_'
49
+ ),
50
+ genitive:
51
+ 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
52
+ '_'
53
+ ),
54
+ },
55
+ nounCase;
40
56
 
41
57
  if (m === true) {
42
- return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
58
+ return weekdays['nominative']
59
+ .slice(1, 7)
60
+ .concat(weekdays['nominative'].slice(0, 1));
43
61
  }
44
62
  if (!m) {
45
63
  return weekdays['nominative'];
46
64
  }
47
65
 
48
- var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
49
- 'accusative' :
50
- ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
51
- 'genitive' :
52
- 'nominative');
66
+ nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
67
+ ? 'accusative'
68
+ : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
69
+ ? 'genitive'
70
+ : 'nominative';
53
71
  return weekdays[nounCase][m.day()];
54
72
  }
55
73
  function processHoursFunction(str) {
@@ -59,23 +77,30 @@
59
77
  }
60
78
 
61
79
  var uk = moment.defineLocale('uk', {
62
- months : {
63
- 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
64
- 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
80
+ months: {
81
+ format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
82
+ '_'
83
+ ),
84
+ standalone:
85
+ 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
86
+ '_'
87
+ ),
65
88
  },
66
- monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
67
- weekdays : weekdaysCaseReplace,
68
- weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
69
- weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
70
- longDateFormat : {
71
- LT : 'HH:mm',
72
- LTS : 'HH:mm:ss',
73
- L : 'DD.MM.YYYY',
74
- LL : 'D MMMM YYYY р.',
75
- LLL : 'D MMMM YYYY р., HH:mm',
76
- LLLL : 'dddd, D MMMM YYYY р., HH:mm'
89
+ monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
90
+ '_'
91
+ ),
92
+ weekdays: weekdaysCaseReplace,
93
+ weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
94
+ weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
95
+ longDateFormat: {
96
+ LT: 'HH:mm',
97
+ LTS: 'HH:mm:ss',
98
+ L: 'DD.MM.YYYY',
99
+ LL: 'D MMMM YYYY р.',
100
+ LLL: 'D MMMM YYYY р., HH:mm',
101
+ LLLL: 'dddd, D MMMM YYYY р., HH:mm',
77
102
  },
78
- calendar : {
103
+ calendar: {
79
104
  sameDay: processHoursFunction('[Сьогодні '),
80
105
  nextDay: processHoursFunction('[Завтра '),
81
106
  lastDay: processHoursFunction('[Вчора '),
@@ -93,30 +118,30 @@
93
118
  return processHoursFunction('[Минулого] dddd [').call(this);
94
119
  }
95
120
  },
96
- sameElse: 'L'
121
+ sameElse: 'L',
97
122
  },
98
- relativeTime : {
99
- future : 'за %s',
100
- past : '%s тому',
101
- s : 'декілька секунд',
102
- ss : relativeTimeWithPlural,
103
- m : relativeTimeWithPlural,
104
- mm : relativeTimeWithPlural,
105
- h : 'годину',
106
- hh : relativeTimeWithPlural,
107
- d : 'день',
108
- dd : relativeTimeWithPlural,
109
- M : 'місяць',
110
- MM : relativeTimeWithPlural,
111
- y : 'рік',
112
- yy : relativeTimeWithPlural
123
+ relativeTime: {
124
+ future: 'за %s',
125
+ past: '%s тому',
126
+ s: 'декілька секунд',
127
+ ss: relativeTimeWithPlural,
128
+ m: relativeTimeWithPlural,
129
+ mm: relativeTimeWithPlural,
130
+ h: 'годину',
131
+ hh: relativeTimeWithPlural,
132
+ d: 'день',
133
+ dd: relativeTimeWithPlural,
134
+ M: 'місяць',
135
+ MM: relativeTimeWithPlural,
136
+ y: 'рік',
137
+ yy: relativeTimeWithPlural,
113
138
  },
114
139
  // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
115
140
  meridiemParse: /ночі|ранку|дня|вечора/,
116
141
  isPM: function (input) {
117
142
  return /^(дня|вечора)$/.test(input);
118
143
  },
119
- meridiem : function (hour, minute, isLower) {
144
+ meridiem: function (hour, minute, isLower) {
120
145
  if (hour < 4) {
121
146
  return 'ночі';
122
147
  } else if (hour < 12) {
@@ -142,10 +167,10 @@
142
167
  return number;
143
168
  }
144
169
  },
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
- }
170
+ week: {
171
+ dow: 1, // Monday is the first day of the week.
172
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
173
+ },
149
174
  });
150
175
 
151
176
  return uk;
@@ -1,4 +1,7 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Urdu [ur]
3
+ //! author : Sawood Alam : https://github.com/ibnesayeed
4
+ //! author : Zack : https://github.com/ZackVision
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,78 +10,71 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
15
  var months = [
12
- 'جنوری',
13
- 'فروری',
14
- 'مارچ',
15
- 'اپریل',
16
- 'مئی',
17
- 'جون',
18
- 'جولائی',
19
- 'اگست',
20
- 'ستمبر',
21
- 'اکتوبر',
22
- 'نومبر',
23
- 'دسمبر'
24
- ];
25
- var days = [
26
- 'اتوار',
27
- 'پیر',
28
- 'منگل',
29
- 'بدھ',
30
- 'جمعرات',
31
- 'جمعہ',
32
- 'ہفتہ'
33
- ];
16
+ 'جنوری',
17
+ 'فروری',
18
+ 'مارچ',
19
+ 'اپریل',
20
+ 'مئی',
21
+ 'جون',
22
+ 'جولائی',
23
+ 'اگست',
24
+ 'ستمبر',
25
+ 'اکتوبر',
26
+ 'نومبر',
27
+ 'دسمبر',
28
+ ],
29
+ days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
34
30
 
35
31
  var ur = moment.defineLocale('ur', {
36
- months : months,
37
- monthsShort : months,
38
- weekdays : days,
39
- weekdaysShort : days,
40
- weekdaysMin : days,
41
- longDateFormat : {
42
- LT : 'HH:mm',
43
- LTS : 'HH:mm:ss',
44
- L : 'DD/MM/YYYY',
45
- LL : 'D MMMM YYYY',
46
- LLL : 'D MMMM YYYY HH:mm',
47
- LLLL : 'dddd، D MMMM YYYY HH:mm'
32
+ months: months,
33
+ monthsShort: months,
34
+ weekdays: days,
35
+ weekdaysShort: days,
36
+ weekdaysMin: days,
37
+ longDateFormat: {
38
+ LT: 'HH:mm',
39
+ LTS: 'HH:mm:ss',
40
+ L: 'DD/MM/YYYY',
41
+ LL: 'D MMMM YYYY',
42
+ LLL: 'D MMMM YYYY HH:mm',
43
+ LLLL: 'dddd، D MMMM YYYY HH:mm',
48
44
  },
49
45
  meridiemParse: /صبح|شام/,
50
- isPM : function (input) {
46
+ isPM: function (input) {
51
47
  return 'شام' === input;
52
48
  },
53
- meridiem : function (hour, minute, isLower) {
49
+ meridiem: function (hour, minute, isLower) {
54
50
  if (hour < 12) {
55
51
  return 'صبح';
56
52
  }
57
53
  return 'شام';
58
54
  },
59
- calendar : {
60
- sameDay : '[آج بوقت] LT',
61
- nextDay : '[کل بوقت] LT',
62
- nextWeek : 'dddd [بوقت] LT',
63
- lastDay : '[گذشتہ روز بوقت] LT',
64
- lastWeek : '[گذشتہ] dddd [بوقت] LT',
65
- sameElse : 'L'
55
+ calendar: {
56
+ sameDay: '[آج بوقت] LT',
57
+ nextDay: '[کل بوقت] LT',
58
+ nextWeek: 'dddd [بوقت] LT',
59
+ lastDay: '[گذشتہ روز بوقت] LT',
60
+ lastWeek: '[گذشتہ] dddd [بوقت] LT',
61
+ sameElse: 'L',
66
62
  },
67
- relativeTime : {
68
- future : '%s بعد',
69
- past : '%s قبل',
70
- s : 'چند سیکنڈ',
71
- ss : '%d سیکنڈ',
72
- m : 'ایک منٹ',
73
- mm : '%d منٹ',
74
- h : 'ایک گھنٹہ',
75
- hh : '%d گھنٹے',
76
- d : 'ایک دن',
77
- dd : '%d دن',
78
- M : 'ایک ماہ',
79
- MM : '%d ماہ',
80
- y : 'ایک سال',
81
- yy : '%d سال'
63
+ relativeTime: {
64
+ future: '%s بعد',
65
+ past: '%s قبل',
66
+ s: 'چند سیکنڈ',
67
+ ss: '%d سیکنڈ',
68
+ m: 'ایک منٹ',
69
+ mm: '%d منٹ',
70
+ h: 'ایک گھنٹہ',
71
+ hh: '%d گھنٹے',
72
+ d: 'ایک دن',
73
+ dd: '%d دن',
74
+ M: 'ایک ماہ',
75
+ MM: '%d ماہ',
76
+ y: 'ایک سال',
77
+ yy: '%d سال',
82
78
  },
83
79
  preparse: function (string) {
84
80
  return string.replace(/،/g, ',');
@@ -86,10 +82,10 @@
86
82
  postformat: function (string) {
87
83
  return string.replace(/,/g, '،');
88
84
  },
89
- week : {
90
- dow : 1, // Monday is the first day of the week.
91
- doy : 4 // The week that contains Jan 4th is the first week of the year.
92
- }
85
+ week: {
86
+ dow: 1, // Monday is the first day of the week.
87
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
88
+ },
93
89
  });
94
90
 
95
91
  return ur;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Uzbek Latin [uz-latn]
3
+ //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,49 +9,55 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var uzLatn = moment.defineLocale('uz-latn', {
12
- months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
13
- monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
14
- weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
15
- weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
16
- weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.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 : 'D MMMM YYYY, dddd HH:mm'
15
+ months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
19
+ weekdays:
20
+ 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
24
+ weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.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: 'D MMMM YYYY, dddd HH:mm',
24
32
  },
25
- calendar : {
26
- sameDay : '[Bugun soat] LT [da]',
27
- nextDay : '[Ertaga] LT [da]',
28
- nextWeek : 'dddd [kuni soat] LT [da]',
29
- lastDay : '[Kecha soat] LT [da]',
30
- lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
31
- sameElse : 'L'
33
+ calendar: {
34
+ sameDay: '[Bugun soat] LT [da]',
35
+ nextDay: '[Ertaga] LT [da]',
36
+ nextWeek: 'dddd [kuni soat] LT [da]',
37
+ lastDay: '[Kecha soat] LT [da]',
38
+ lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
39
+ sameElse: 'L',
32
40
  },
33
- relativeTime : {
34
- future : 'Yaqin %s ichida',
35
- past : 'Bir necha %s oldin',
36
- s : 'soniya',
37
- ss : '%d soniya',
38
- m : 'bir daqiqa',
39
- mm : '%d daqiqa',
40
- h : 'bir soat',
41
- hh : '%d soat',
42
- d : 'bir kun',
43
- dd : '%d kun',
44
- M : 'bir oy',
45
- MM : '%d oy',
46
- y : 'bir yil',
47
- yy : '%d yil'
41
+ relativeTime: {
42
+ future: 'Yaqin %s ichida',
43
+ past: 'Bir necha %s oldin',
44
+ s: 'soniya',
45
+ ss: '%d soniya',
46
+ m: 'bir daqiqa',
47
+ mm: '%d daqiqa',
48
+ h: 'bir soat',
49
+ hh: '%d soat',
50
+ d: 'bir kun',
51
+ dd: '%d kun',
52
+ M: 'bir oy',
53
+ MM: '%d oy',
54
+ y: 'bir yil',
55
+ yy: '%d yil',
56
+ },
57
+ week: {
58
+ dow: 1, // Monday is the first day of the week.
59
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
48
60
  },
49
- week : {
50
- dow : 1, // Monday is the first day of the week.
51
- doy : 7 // The week that contains Jan 7th is the first week of the year.
52
- }
53
61
  });
54
62
 
55
63
  return uzLatn;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Uzbek [uz]
3
+ //! author : Sardor Muminov : https://github.com/muminoff
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,49 +9,52 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var uz = moment.defineLocale('uz', {
12
- months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
13
- monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
14
- weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
15
- weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
16
- weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.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 : 'D MMMM YYYY, dddd HH:mm'
15
+ months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
19
+ weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
20
+ weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
21
+ weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.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 HH:mm',
28
+ LLLL: 'D MMMM YYYY, dddd HH:mm',
24
29
  },
25
- calendar : {
26
- sameDay : '[Бугун соат] LT [да]',
27
- nextDay : '[Эртага] LT [да]',
28
- nextWeek : 'dddd [куни соат] LT [да]',
29
- lastDay : '[Кеча соат] LT [да]',
30
- lastWeek : '[Утган] dddd [куни соат] LT [да]',
31
- sameElse : 'L'
30
+ calendar: {
31
+ sameDay: '[Бугун соат] LT [да]',
32
+ nextDay: '[Эртага] LT [да]',
33
+ nextWeek: 'dddd [куни соат] LT [да]',
34
+ lastDay: '[Кеча соат] LT [да]',
35
+ lastWeek: '[Утган] dddd [куни соат] LT [да]',
36
+ sameElse: 'L',
32
37
  },
33
- relativeTime : {
34
- future : 'Якин %s ичида',
35
- past : 'Бир неча %s олдин',
36
- s : 'фурсат',
37
- ss : '%d фурсат',
38
- m : 'бир дакика',
39
- mm : '%d дакика',
40
- h : 'бир соат',
41
- hh : '%d соат',
42
- d : 'бир кун',
43
- dd : '%d кун',
44
- M : 'бир ой',
45
- MM : '%d ой',
46
- y : 'бир йил',
47
- yy : '%d йил'
38
+ relativeTime: {
39
+ future: 'Якин %s ичида',
40
+ past: 'Бир неча %s олдин',
41
+ s: 'фурсат',
42
+ ss: '%d фурсат',
43
+ m: 'бир дакика',
44
+ mm: '%d дакика',
45
+ h: 'бир соат',
46
+ hh: '%d соат',
47
+ d: 'бир кун',
48
+ dd: '%d кун',
49
+ M: 'бир ой',
50
+ MM: '%d ой',
51
+ y: 'бир йил',
52
+ yy: '%d йил',
53
+ },
54
+ week: {
55
+ dow: 1, // Monday is the first day of the week.
56
+ doy: 7, // The week that contains Jan 4th is the first week of the year.
48
57
  },
49
- week : {
50
- dow : 1, // Monday is the first day of the week.
51
- doy : 7 // The week that contains Jan 4th is the first week of the year.
52
- }
53
58
  });
54
59
 
55
60
  return uz;