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,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Sinhalese [si]
3
+ //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,62 +9,70 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  /*jshint -W100*/
12
15
  var si = moment.defineLocale('si', {
13
- months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
14
- monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
15
- weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
16
- weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
17
- weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
18
- weekdaysParseExact : true,
19
- longDateFormat : {
20
- LT : 'a h:mm',
21
- LTS : 'a h:mm:ss',
22
- L : 'YYYY/MM/DD',
23
- LL : 'YYYY MMMM D',
24
- LLL : 'YYYY MMMM D, a h:mm',
25
- LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
16
+ months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
17
+ '_'
18
+ ),
19
+ monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
20
+ '_'
21
+ ),
22
+ weekdays:
23
+ 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
24
+ '_'
25
+ ),
26
+ weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
27
+ weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
28
+ weekdaysParseExact: true,
29
+ longDateFormat: {
30
+ LT: 'a h:mm',
31
+ LTS: 'a h:mm:ss',
32
+ L: 'YYYY/MM/DD',
33
+ LL: 'YYYY MMMM D',
34
+ LLL: 'YYYY MMMM D, a h:mm',
35
+ LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
26
36
  },
27
- calendar : {
28
- sameDay : '[අද] LT[ට]',
29
- nextDay : '[හෙට] LT[ට]',
30
- nextWeek : 'dddd LT[ට]',
31
- lastDay : '[ඊයේ] LT[ට]',
32
- lastWeek : '[පසුගිය] dddd LT[ට]',
33
- sameElse : 'L'
37
+ calendar: {
38
+ sameDay: '[අද] LT[ට]',
39
+ nextDay: '[හෙට] LT[ට]',
40
+ nextWeek: 'dddd LT[ට]',
41
+ lastDay: '[ඊයේ] LT[ට]',
42
+ lastWeek: '[පසුගිය] dddd LT[ට]',
43
+ sameElse: 'L',
34
44
  },
35
- relativeTime : {
36
- future : '%sකින්',
37
- past : '%sකට පෙර',
38
- s : 'තත්පර කිහිපය',
39
- ss : 'තත්පර %d',
40
- m : 'මිනිත්තුව',
41
- mm : 'මිනිත්තු %d',
42
- h : 'පැය',
43
- hh : 'පැය %d',
44
- d : 'දිනය',
45
- dd : 'දින %d',
46
- M : 'මාසය',
47
- MM : 'මාස %d',
48
- y : 'වසර',
49
- yy : 'වසර %d'
45
+ relativeTime: {
46
+ future: '%sකින්',
47
+ past: '%sකට පෙර',
48
+ s: 'තත්පර කිහිපය',
49
+ ss: 'තත්පර %d',
50
+ m: 'මිනිත්තුව',
51
+ mm: 'මිනිත්තු %d',
52
+ h: 'පැය',
53
+ hh: 'පැය %d',
54
+ d: 'දිනය',
55
+ dd: 'දින %d',
56
+ M: 'මාසය',
57
+ MM: 'මාස %d',
58
+ y: 'වසර',
59
+ yy: 'වසර %d',
50
60
  },
51
61
  dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
52
- ordinal : function (number) {
62
+ ordinal: function (number) {
53
63
  return number + ' වැනි';
54
64
  },
55
- meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
56
- isPM : function (input) {
65
+ meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
66
+ isPM: function (input) {
57
67
  return input === 'ප.ව.' || input === 'පස් වරු';
58
68
  },
59
- meridiem : function (hours, minutes, isLower) {
69
+ meridiem: function (hours, minutes, isLower) {
60
70
  if (hours > 11) {
61
71
  return isLower ? 'ප.ව.' : 'පස් වරු';
62
72
  } else {
63
73
  return isLower ? 'පෙ.ව.' : 'පෙර වරු';
64
74
  }
65
- }
75
+ },
66
76
  });
67
77
 
68
78
  return si;
@@ -1,4 +1,7 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Slovak [sk]
3
+ //! author : Martin Minka : https://github.com/k2s
4
+ //! based on work of petrbela : https://github.com/petrbela
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,87 +10,85 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
- var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
15
+ var months =
16
+ 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
17
+ '_'
18
+ ),
12
19
  monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
13
20
  function plural(n) {
14
- return (n > 1) && (n < 5);
21
+ return n > 1 && n < 5;
15
22
  }
16
23
  function translate(number, withoutSuffix, key, isFuture) {
17
24
  var result = number + ' ';
18
25
  switch (key) {
19
- case 's': // a few seconds / in a few seconds / a few seconds ago
20
- return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
26
+ case 's': // a few seconds / in a few seconds / a few seconds ago
27
+ return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
21
28
  case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
22
29
  if (withoutSuffix || isFuture) {
23
30
  return result + (plural(number) ? 'sekundy' : 'sekúnd');
24
31
  } else {
25
32
  return result + 'sekundami';
26
33
  }
27
- break;
28
- case 'm': // a minute / in a minute / a minute ago
29
- return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
34
+ case 'm': // a minute / in a minute / a minute ago
35
+ return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
30
36
  case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
31
37
  if (withoutSuffix || isFuture) {
32
38
  return result + (plural(number) ? 'minúty' : 'minút');
33
39
  } else {
34
40
  return result + 'minútami';
35
41
  }
36
- break;
37
- case 'h': // an hour / in an hour / an hour ago
38
- return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
42
+ case 'h': // an hour / in an hour / an hour ago
43
+ return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
39
44
  case 'hh': // 9 hours / in 9 hours / 9 hours ago
40
45
  if (withoutSuffix || isFuture) {
41
46
  return result + (plural(number) ? 'hodiny' : 'hodín');
42
47
  } else {
43
48
  return result + 'hodinami';
44
49
  }
45
- break;
46
- case 'd': // a day / in a day / a day ago
47
- return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
50
+ case 'd': // a day / in a day / a day ago
51
+ return withoutSuffix || isFuture ? 'deň' : 'dňom';
48
52
  case 'dd': // 9 days / in 9 days / 9 days ago
49
53
  if (withoutSuffix || isFuture) {
50
54
  return result + (plural(number) ? 'dni' : 'dní');
51
55
  } else {
52
56
  return result + 'dňami';
53
57
  }
54
- break;
55
- case 'M': // a month / in a month / a month ago
56
- return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
58
+ case 'M': // a month / in a month / a month ago
59
+ return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
57
60
  case 'MM': // 9 months / in 9 months / 9 months ago
58
61
  if (withoutSuffix || isFuture) {
59
62
  return result + (plural(number) ? 'mesiace' : 'mesiacov');
60
63
  } else {
61
64
  return result + 'mesiacmi';
62
65
  }
63
- break;
64
- case 'y': // a year / in a year / a year ago
65
- return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
66
+ case 'y': // a year / in a year / a year ago
67
+ return withoutSuffix || isFuture ? 'rok' : 'rokom';
66
68
  case 'yy': // 9 years / in 9 years / 9 years ago
67
69
  if (withoutSuffix || isFuture) {
68
70
  return result + (plural(number) ? 'roky' : 'rokov');
69
71
  } else {
70
72
  return result + 'rokmi';
71
73
  }
72
- break;
73
74
  }
74
75
  }
75
76
 
76
77
  var sk = moment.defineLocale('sk', {
77
- months : months,
78
- monthsShort : monthsShort,
79
- weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
80
- weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
81
- weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
82
- longDateFormat : {
78
+ months: months,
79
+ monthsShort: monthsShort,
80
+ weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
81
+ weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
82
+ weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
83
+ longDateFormat: {
83
84
  LT: 'H:mm',
84
- LTS : 'H:mm:ss',
85
- L : 'DD.MM.YYYY',
86
- LL : 'D. MMMM YYYY',
87
- LLL : 'D. MMMM YYYY H:mm',
88
- LLLL : 'dddd D. MMMM YYYY H:mm'
85
+ LTS: 'H:mm:ss',
86
+ L: 'DD.MM.YYYY',
87
+ LL: 'D. MMMM YYYY',
88
+ LLL: 'D. MMMM YYYY H:mm',
89
+ LLLL: 'dddd D. MMMM YYYY H:mm',
89
90
  },
90
- calendar : {
91
+ calendar: {
91
92
  sameDay: '[dnes o] LT',
92
93
  nextDay: '[zajtra o] LT',
93
94
  nextWeek: function () {
@@ -124,30 +125,30 @@
124
125
  return '[minulú sobotu o] LT';
125
126
  }
126
127
  },
127
- sameElse: 'L'
128
+ sameElse: 'L',
128
129
  },
129
- relativeTime : {
130
- future : 'za %s',
131
- past : 'pred %s',
132
- s : translate,
133
- ss : translate,
134
- m : translate,
135
- mm : translate,
136
- h : translate,
137
- hh : translate,
138
- d : translate,
139
- dd : translate,
140
- M : translate,
141
- MM : translate,
142
- y : translate,
143
- yy : translate
130
+ relativeTime: {
131
+ future: 'za %s',
132
+ past: 'pred %s',
133
+ s: translate,
134
+ ss: translate,
135
+ m: translate,
136
+ mm: translate,
137
+ h: translate,
138
+ hh: translate,
139
+ d: translate,
140
+ dd: translate,
141
+ M: translate,
142
+ MM: translate,
143
+ y: translate,
144
+ yy: translate,
144
145
  },
145
146
  dayOfMonthOrdinalParse: /\d{1,2}\./,
146
- ordinal : '%d.',
147
- week : {
148
- dow : 1, // Monday is the first day of the week.
149
- doy : 4 // The week that contains Jan 4th is the first week of the year.
150
- }
147
+ ordinal: '%d.',
148
+ week: {
149
+ dow: 1, // Monday is the first day of the week.
150
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
151
+ },
151
152
  });
152
153
 
153
154
  return sk;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Slovenian [sl]
3
+ //! author : Robert Sedovšek : https://github.com/sedovsek
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,12 +9,15 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
12
15
  var result = number + ' ';
13
16
  switch (key) {
14
17
  case 's':
15
- return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18
+ return withoutSuffix || isFuture
19
+ ? 'nekaj sekund'
20
+ : 'nekaj sekundami';
16
21
  case 'ss':
17
22
  if (number === 1) {
18
23
  result += withoutSuffix ? 'sekundo' : 'sekundi';
@@ -91,26 +96,31 @@
91
96
  }
92
97
 
93
98
  var sl = moment.defineLocale('sl', {
94
- months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
95
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
99
+ months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
100
+ '_'
101
+ ),
102
+ monthsShort:
103
+ 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
104
+ '_'
105
+ ),
96
106
  monthsParseExact: true,
97
- weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
98
- weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
99
- weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
100
- weekdaysParseExact : true,
101
- longDateFormat : {
102
- LT : 'H:mm',
103
- LTS : 'H:mm:ss',
104
- L : 'DD.MM.YYYY',
105
- LL : 'D. MMMM YYYY',
106
- LLL : 'D. MMMM YYYY H:mm',
107
- LLLL : 'dddd, D. MMMM YYYY H:mm'
107
+ weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
108
+ weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
109
+ weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
110
+ weekdaysParseExact: true,
111
+ longDateFormat: {
112
+ LT: 'H:mm',
113
+ LTS: 'H:mm:ss',
114
+ L: 'DD. MM. YYYY',
115
+ LL: 'D. MMMM YYYY',
116
+ LLL: 'D. MMMM YYYY H:mm',
117
+ LLLL: 'dddd, D. MMMM YYYY H:mm',
108
118
  },
109
- calendar : {
110
- sameDay : '[danes ob] LT',
111
- nextDay : '[jutri ob] LT',
119
+ calendar: {
120
+ sameDay: '[danes ob] LT',
121
+ nextDay: '[jutri ob] LT',
112
122
 
113
- nextWeek : function () {
123
+ nextWeek: function () {
114
124
  switch (this.day()) {
115
125
  case 0:
116
126
  return '[v] [nedeljo] [ob] LT';
@@ -125,8 +135,8 @@
125
135
  return '[v] dddd [ob] LT';
126
136
  }
127
137
  },
128
- lastDay : '[včeraj ob] LT',
129
- lastWeek : function () {
138
+ lastDay: '[včeraj ob] LT',
139
+ lastWeek: function () {
130
140
  switch (this.day()) {
131
141
  case 0:
132
142
  return '[prejšnjo] [nedeljo] [ob] LT';
@@ -141,30 +151,30 @@
141
151
  return '[prejšnji] dddd [ob] LT';
142
152
  }
143
153
  },
144
- sameElse : 'L'
154
+ sameElse: 'L',
145
155
  },
146
- relativeTime : {
147
- future : 'čez %s',
148
- past : 'pred %s',
149
- s : processRelativeTime,
150
- ss : processRelativeTime,
151
- m : processRelativeTime,
152
- mm : processRelativeTime,
153
- h : processRelativeTime,
154
- hh : processRelativeTime,
155
- d : processRelativeTime,
156
- dd : processRelativeTime,
157
- M : processRelativeTime,
158
- MM : processRelativeTime,
159
- y : processRelativeTime,
160
- yy : processRelativeTime
156
+ relativeTime: {
157
+ future: 'čez %s',
158
+ past: 'pred %s',
159
+ s: processRelativeTime,
160
+ ss: processRelativeTime,
161
+ m: processRelativeTime,
162
+ mm: processRelativeTime,
163
+ h: processRelativeTime,
164
+ hh: processRelativeTime,
165
+ d: processRelativeTime,
166
+ dd: processRelativeTime,
167
+ M: processRelativeTime,
168
+ MM: processRelativeTime,
169
+ y: processRelativeTime,
170
+ yy: processRelativeTime,
161
171
  },
162
172
  dayOfMonthOrdinalParse: /\d{1,2}\./,
163
- ordinal : '%d.',
164
- week : {
165
- dow : 1, // Monday is the first day of the week.
166
- doy : 7 // The week that contains Jan 7th is the first week of the year.
167
- }
173
+ ordinal: '%d.',
174
+ week: {
175
+ dow: 1, // Monday is the first day of the week.
176
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
177
+ },
168
178
  });
169
179
 
170
180
  return sl;
@@ -1,4 +1,8 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Albanian [sq]
3
+ //! author : Flakërim Ismani : https://github.com/flakerimi
4
+ //! author : Menelion Elensúle : https://github.com/Oire
5
+ //! author : Oerd Cukalla : https://github.com/oerd
2
6
 
3
7
  ;(function (global, factory) {
4
8
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,59 +11,64 @@
7
11
  factory(global.moment)
8
12
  }(this, (function (moment) { 'use strict';
9
13
 
14
+ //! moment.js locale configuration
10
15
 
11
16
  var sq = moment.defineLocale('sq', {
12
- months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
13
- monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
14
- weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
15
- weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
16
- weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
17
- weekdaysParseExact : true,
17
+ months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
18
+ '_'
19
+ ),
20
+ monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
21
+ weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
22
+ '_'
23
+ ),
24
+ weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
25
+ weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
26
+ weekdaysParseExact: true,
18
27
  meridiemParse: /PD|MD/,
19
28
  isPM: function (input) {
20
29
  return input.charAt(0) === 'M';
21
30
  },
22
- meridiem : function (hours, minutes, isLower) {
31
+ meridiem: function (hours, minutes, isLower) {
23
32
  return hours < 12 ? 'PD' : 'MD';
24
33
  },
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'
34
+ longDateFormat: {
35
+ LT: 'HH:mm',
36
+ LTS: 'HH:mm:ss',
37
+ L: 'DD/MM/YYYY',
38
+ LL: 'D MMMM YYYY',
39
+ LLL: 'D MMMM YYYY HH:mm',
40
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
32
41
  },
33
- calendar : {
34
- sameDay : '[Sot në] LT',
35
- nextDay : '[Nesër në] LT',
36
- nextWeek : 'dddd [në] LT',
37
- lastDay : '[Dje në] LT',
38
- lastWeek : 'dddd [e kaluar në] LT',
39
- sameElse : 'L'
42
+ calendar: {
43
+ sameDay: '[Sot në] LT',
44
+ nextDay: '[Nesër në] LT',
45
+ nextWeek: 'dddd [në] LT',
46
+ lastDay: '[Dje në] LT',
47
+ lastWeek: 'dddd [e kaluar në] LT',
48
+ sameElse: 'L',
40
49
  },
41
- relativeTime : {
42
- future : 'në %s',
43
- past : '%s më parë',
44
- s : 'disa sekonda',
45
- ss : '%d sekonda',
46
- m : 'një minutë',
47
- mm : '%d minuta',
48
- h : 'një orë',
49
- hh : '%d orë',
50
- d : 'një ditë',
51
- dd : '%d ditë',
52
- M : 'një muaj',
53
- MM : '%d muaj',
54
- y : 'një vit',
55
- yy : '%d vite'
50
+ relativeTime: {
51
+ future: 'në %s',
52
+ past: '%s më parë',
53
+ s: 'disa sekonda',
54
+ ss: '%d sekonda',
55
+ m: 'një minutë',
56
+ mm: '%d minuta',
57
+ h: 'një orë',
58
+ hh: '%d orë',
59
+ d: 'një ditë',
60
+ dd: '%d ditë',
61
+ M: 'një muaj',
62
+ MM: '%d muaj',
63
+ y: 'një vit',
64
+ yy: '%d vite',
56
65
  },
57
66
  dayOfMonthOrdinalParse: /\d{1,2}\./,
58
- ordinal : '%d.',
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
- }
67
+ ordinal: '%d.',
68
+ week: {
69
+ dow: 1, // Monday is the first day of the week.
70
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
71
+ },
63
72
  });
64
73
 
65
74
  return sq;