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 : French (Switzerland) [fr-ch]
3
+ //! author : Gaspard Bucher : https://github.com/gaspard
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 frCh = moment.defineLocale('fr-ch', {
12
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
13
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
14
- monthsParseExact : true,
15
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
16
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
17
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
18
- weekdaysParseExact : true,
19
- longDateFormat : {
20
- LT : 'HH:mm',
21
- LTS : 'HH:mm:ss',
22
- L : 'DD.MM.YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY HH:mm',
25
- LLLL : 'dddd D MMMM YYYY HH:mm'
15
+ months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
16
+ '_'
17
+ ),
18
+ monthsShort:
19
+ 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
20
+ '_'
21
+ ),
22
+ monthsParseExact: true,
23
+ weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
24
+ weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
25
+ weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
26
+ weekdaysParseExact: true,
27
+ longDateFormat: {
28
+ LT: 'HH:mm',
29
+ LTS: 'HH:mm:ss',
30
+ L: 'DD.MM.YYYY',
31
+ LL: 'D MMMM YYYY',
32
+ LLL: 'D MMMM YYYY HH:mm',
33
+ LLLL: 'dddd D MMMM YYYY HH:mm',
26
34
  },
27
- calendar : {
28
- sameDay : '[Aujourd’hui à] LT',
29
- nextDay : '[Demain à] LT',
30
- nextWeek : 'dddd [à] LT',
31
- lastDay : '[Hier à] LT',
32
- lastWeek : 'dddd [dernier à] LT',
33
- sameElse : 'L'
35
+ calendar: {
36
+ sameDay: '[Aujourd’hui à] LT',
37
+ nextDay: '[Demain à] LT',
38
+ nextWeek: 'dddd [à] LT',
39
+ lastDay: '[Hier à] LT',
40
+ lastWeek: 'dddd [dernier à] LT',
41
+ sameElse: 'L',
34
42
  },
35
- relativeTime : {
36
- future : 'dans %s',
37
- past : 'il y a %s',
38
- s : 'quelques secondes',
39
- ss : '%d secondes',
40
- m : 'une minute',
41
- mm : '%d minutes',
42
- h : 'une heure',
43
- hh : '%d heures',
44
- d : 'un jour',
45
- dd : '%d jours',
46
- M : 'un mois',
47
- MM : '%d mois',
48
- y : 'un an',
49
- yy : '%d ans'
43
+ relativeTime: {
44
+ future: 'dans %s',
45
+ past: 'il y a %s',
46
+ s: 'quelques secondes',
47
+ ss: '%d secondes',
48
+ m: 'une minute',
49
+ mm: '%d minutes',
50
+ h: 'une heure',
51
+ hh: '%d heures',
52
+ d: 'un jour',
53
+ dd: '%d jours',
54
+ M: 'un mois',
55
+ MM: '%d mois',
56
+ y: 'un an',
57
+ yy: '%d ans',
50
58
  },
51
59
  dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
52
- ordinal : function (number, period) {
60
+ ordinal: function (number, period) {
53
61
  switch (period) {
54
62
  // Words with masculine grammatical gender: mois, trimestre, jour
55
63
  default:
@@ -66,10 +74,10 @@
66
74
  return number + (number === 1 ? 're' : 'e');
67
75
  }
68
76
  },
69
- week : {
70
- dow : 1, // Monday is the first day of the week.
71
- doy : 4 // The week that contains Jan 4th is the first week of the year.
72
- }
77
+ week: {
78
+ dow: 1, // Monday is the first day of the week.
79
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
80
+ },
73
81
  });
74
82
 
75
83
  return frCh;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : French [fr]
3
+ //! author : John Fischer : https://github.com/jfroffice
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,49 +9,84 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
13
+
14
+ var monthsStrictRegex =
15
+ /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
16
+ monthsShortStrictRegex =
17
+ /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
18
+ monthsRegex =
19
+ /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
20
+ monthsParse = [
21
+ /^janv/i,
22
+ /^févr/i,
23
+ /^mars/i,
24
+ /^avr/i,
25
+ /^mai/i,
26
+ /^juin/i,
27
+ /^juil/i,
28
+ /^août/i,
29
+ /^sept/i,
30
+ /^oct/i,
31
+ /^nov/i,
32
+ /^déc/i,
33
+ ];
10
34
 
11
35
  var fr = moment.defineLocale('fr', {
12
- months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
13
- monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
14
- monthsParseExact : true,
15
- weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
16
- weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
17
- weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
18
- weekdaysParseExact : true,
19
- longDateFormat : {
20
- LT : 'HH:mm',
21
- LTS : 'HH:mm:ss',
22
- L : 'DD/MM/YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY HH:mm',
25
- LLLL : 'dddd D MMMM YYYY HH:mm'
36
+ months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
37
+ '_'
38
+ ),
39
+ monthsShort:
40
+ 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
41
+ '_'
42
+ ),
43
+ monthsRegex: monthsRegex,
44
+ monthsShortRegex: monthsRegex,
45
+ monthsStrictRegex: monthsStrictRegex,
46
+ monthsShortStrictRegex: monthsShortStrictRegex,
47
+ monthsParse: monthsParse,
48
+ longMonthsParse: monthsParse,
49
+ shortMonthsParse: monthsParse,
50
+ weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
51
+ weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
52
+ weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
53
+ weekdaysParseExact: true,
54
+ longDateFormat: {
55
+ LT: 'HH:mm',
56
+ LTS: 'HH:mm:ss',
57
+ L: 'DD/MM/YYYY',
58
+ LL: 'D MMMM YYYY',
59
+ LLL: 'D MMMM YYYY HH:mm',
60
+ LLLL: 'dddd D MMMM YYYY HH:mm',
26
61
  },
27
- calendar : {
28
- sameDay : '[Aujourd’hui à] LT',
29
- nextDay : '[Demain à] LT',
30
- nextWeek : 'dddd [à] LT',
31
- lastDay : '[Hier à] LT',
32
- lastWeek : 'dddd [dernier à] LT',
33
- sameElse : 'L'
62
+ calendar: {
63
+ sameDay: '[Aujourd’hui à] LT',
64
+ nextDay: '[Demain à] LT',
65
+ nextWeek: 'dddd [à] LT',
66
+ lastDay: '[Hier à] LT',
67
+ lastWeek: 'dddd [dernier à] LT',
68
+ sameElse: 'L',
34
69
  },
35
- relativeTime : {
36
- future : 'dans %s',
37
- past : 'il y a %s',
38
- s : 'quelques secondes',
39
- ss : '%d secondes',
40
- m : 'une minute',
41
- mm : '%d minutes',
42
- h : 'une heure',
43
- hh : '%d heures',
44
- d : 'un jour',
45
- dd : '%d jours',
46
- M : 'un mois',
47
- MM : '%d mois',
48
- y : 'un an',
49
- yy : '%d ans'
70
+ relativeTime: {
71
+ future: 'dans %s',
72
+ past: 'il y a %s',
73
+ s: 'quelques secondes',
74
+ ss: '%d secondes',
75
+ m: 'une minute',
76
+ mm: '%d minutes',
77
+ h: 'une heure',
78
+ hh: '%d heures',
79
+ d: 'un jour',
80
+ dd: '%d jours',
81
+ w: 'une semaine',
82
+ ww: '%d semaines',
83
+ M: 'un mois',
84
+ MM: '%d mois',
85
+ y: 'un an',
86
+ yy: '%d ans',
50
87
  },
51
88
  dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
52
- ordinal : function (number, period) {
89
+ ordinal: function (number, period) {
53
90
  switch (period) {
54
91
  // TODO: Return 'e' when day of month > 1. Move this case inside
55
92
  // block for masculine words below.
@@ -71,10 +108,10 @@
71
108
  return number + (number === 1 ? 're' : 'e');
72
109
  }
73
110
  },
74
- week : {
75
- dow : 1, // Monday is the first day of the week.
76
- doy : 4 // The week that contains Jan 4th is the first week of the year.
77
- }
111
+ week: {
112
+ dow: 1, // Monday is the first day of the week.
113
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
114
+ },
78
115
  });
79
116
 
80
117
  return fr;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Frisian [fy]
3
+ //! author : Robin van der Vliet : https://github.com/robin0van0der0v
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,13 +9,18 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
- var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
12
- monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
14
+ var monthsShortWithDots =
15
+ 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
16
+ monthsShortWithoutDots =
17
+ 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
13
18
 
14
19
  var fy = moment.defineLocale('fy', {
15
- months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
16
- monthsShort : function (m, format) {
20
+ months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
21
+ '_'
22
+ ),
23
+ monthsShort: function (m, format) {
17
24
  if (!m) {
18
25
  return monthsShortWithDots;
19
26
  } else if (/-MMM-/.test(format)) {
@@ -22,51 +29,56 @@
22
29
  return monthsShortWithDots[m.month()];
23
30
  }
24
31
  },
25
- monthsParseExact : true,
26
- weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
27
- weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
28
- weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
29
- weekdaysParseExact : true,
30
- longDateFormat : {
31
- LT : 'HH:mm',
32
- LTS : 'HH:mm:ss',
33
- L : 'DD-MM-YYYY',
34
- LL : 'D MMMM YYYY',
35
- LLL : 'D MMMM YYYY HH:mm',
36
- LLLL : 'dddd D MMMM YYYY HH:mm'
32
+ monthsParseExact: true,
33
+ weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
34
+ '_'
35
+ ),
36
+ weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
37
+ weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
38
+ weekdaysParseExact: true,
39
+ longDateFormat: {
40
+ LT: 'HH:mm',
41
+ LTS: 'HH:mm:ss',
42
+ L: 'DD-MM-YYYY',
43
+ LL: 'D MMMM YYYY',
44
+ LLL: 'D MMMM YYYY HH:mm',
45
+ LLLL: 'dddd D MMMM YYYY HH:mm',
37
46
  },
38
- calendar : {
47
+ calendar: {
39
48
  sameDay: '[hjoed om] LT',
40
49
  nextDay: '[moarn om] LT',
41
50
  nextWeek: 'dddd [om] LT',
42
51
  lastDay: '[juster om] LT',
43
52
  lastWeek: '[ôfrûne] dddd [om] LT',
44
- sameElse: 'L'
53
+ sameElse: 'L',
45
54
  },
46
- relativeTime : {
47
- future : 'oer %s',
48
- past : '%s lyn',
49
- s : 'in pear sekonden',
50
- ss : '%d sekonden',
51
- m : 'ien minút',
52
- mm : '%d minuten',
53
- h : 'ien oere',
54
- hh : '%d oeren',
55
- d : 'ien dei',
56
- dd : '%d dagen',
57
- M : 'ien moanne',
58
- MM : '%d moannen',
59
- y : 'ien jier',
60
- yy : '%d jierren'
55
+ relativeTime: {
56
+ future: 'oer %s',
57
+ past: '%s lyn',
58
+ s: 'in pear sekonden',
59
+ ss: '%d sekonden',
60
+ m: 'ien minút',
61
+ mm: '%d minuten',
62
+ h: 'ien oere',
63
+ hh: '%d oeren',
64
+ d: 'ien dei',
65
+ dd: '%d dagen',
66
+ M: 'ien moanne',
67
+ MM: '%d moannen',
68
+ y: 'ien jier',
69
+ yy: '%d jierren',
61
70
  },
62
71
  dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
63
- ordinal : function (number) {
64
- return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
72
+ ordinal: function (number) {
73
+ return (
74
+ number +
75
+ (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
76
+ );
77
+ },
78
+ week: {
79
+ dow: 1, // Monday is the first day of the week.
80
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
65
81
  },
66
- week : {
67
- dow : 1, // Monday is the first day of the week.
68
- doy : 4 // The week that contains Jan 4th is the first week of the year.
69
- }
70
82
  });
71
83
 
72
84
  return fy;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Irish or Irish Gaelic [ga]
3
+ //! author : André Silva : https://github.com/askpt
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,19 +9,47 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
10
-
12
+ //! moment.js locale configuration
11
13
 
12
14
  var months = [
13
- 'Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Méitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deaireadh Fómhair', 'Samhain', 'Nollaig'
14
- ];
15
-
16
- var monthsShort = ['Eaná', 'Feab', 'Márt', 'Aibr', 'Beal', 'Méit', 'Iúil', 'Lúna', 'Meán', 'Deai', 'Samh', 'Noll'];
17
-
18
- var weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Satharn'];
19
-
20
- var weekdaysShort = ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'];
21
-
22
- var weekdaysMin = ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'];
15
+ 'Eanáir',
16
+ 'Feabhra',
17
+ 'Márta',
18
+ 'Aibreán',
19
+ 'Bealtaine',
20
+ 'Meitheamh',
21
+ 'Iúil',
22
+ 'Lúnasa',
23
+ 'Meán Fómhair',
24
+ 'Deireadh Fómhair',
25
+ 'Samhain',
26
+ 'Nollaig',
27
+ ],
28
+ monthsShort = [
29
+ 'Ean',
30
+ 'Feabh',
31
+ 'Márt',
32
+ 'Aib',
33
+ 'Beal',
34
+ 'Meith',
35
+ 'Iúil',
36
+ 'Lún',
37
+ 'M.F.',
38
+ 'D.F.',
39
+ 'Samh',
40
+ 'Noll',
41
+ ],
42
+ weekdays = [
43
+ 'Dé Domhnaigh',
44
+ 'Dé Luain',
45
+ 'Dé Máirt',
46
+ 'Dé Céadaoin',
47
+ 'Déardaoin',
48
+ 'Dé hAoine',
49
+ 'Dé Sathairn',
50
+ ],
51
+ weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
52
+ weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
23
53
 
24
54
  var ga = moment.defineLocale('ga', {
25
55
  months: months,
@@ -34,15 +64,15 @@
34
64
  L: 'DD/MM/YYYY',
35
65
  LL: 'D MMMM YYYY',
36
66
  LLL: 'D MMMM YYYY HH:mm',
37
- LLLL: 'dddd, D MMMM YYYY HH:mm'
67
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
38
68
  },
39
69
  calendar: {
40
70
  sameDay: '[Inniu ag] LT',
41
71
  nextDay: '[Amárach ag] LT',
42
72
  nextWeek: 'dddd [ag] LT',
43
- lastDay: '[Inné aig] LT',
73
+ lastDay: '[Inné ag] LT',
44
74
  lastWeek: 'dddd [seo caite] [ag] LT',
45
- sameElse: 'L'
75
+ sameElse: 'L',
46
76
  },
47
77
  relativeTime: {
48
78
  future: 'i %s',
@@ -56,9 +86,9 @@
56
86
  d: 'lá',
57
87
  dd: '%d lá',
58
88
  M: 'mí',
59
- MM: '%d mí',
89
+ MM: '%d míonna',
60
90
  y: 'bliain',
61
- yy: '%d bliain'
91
+ yy: '%d bliain',
62
92
  },
63
93
  dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
64
94
  ordinal: function (number) {
@@ -67,8 +97,8 @@
67
97
  },
68
98
  week: {
69
99
  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
- }
100
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
101
+ },
72
102
  });
73
103
 
74
104
  return ga;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Scottish Gaelic [gd]
3
+ //! author : Jon Ashdown : https://github.com/jonashdown
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,67 +9,96 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var months = [
12
- 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
13
- ];
14
-
15
- var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
16
-
17
- var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
18
-
19
- var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
20
-
21
- var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
15
+ 'Am Faoilleach',
16
+ 'An Gearran',
17
+ 'Am Màrt',
18
+ 'An Giblean',
19
+ 'An Cèitean',
20
+ 'An t-Ògmhios',
21
+ 'An t-Iuchar',
22
+ 'An Lùnastal',
23
+ 'An t-Sultain',
24
+ 'An Dàmhair',
25
+ 'An t-Samhain',
26
+ 'An Dùbhlachd',
27
+ ],
28
+ monthsShort = [
29
+ 'Faoi',
30
+ 'Gear',
31
+ 'Màrt',
32
+ 'Gibl',
33
+ 'Cèit',
34
+ 'Ògmh',
35
+ 'Iuch',
36
+ 'Lùn',
37
+ 'Sult',
38
+ 'Dàmh',
39
+ 'Samh',
40
+ 'Dùbh',
41
+ ],
42
+ weekdays = [
43
+ 'Didòmhnaich',
44
+ 'Diluain',
45
+ 'Dimàirt',
46
+ 'Diciadain',
47
+ 'Diardaoin',
48
+ 'Dihaoine',
49
+ 'Disathairne',
50
+ ],
51
+ weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
52
+ weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
22
53
 
23
54
  var gd = moment.defineLocale('gd', {
24
- months : months,
25
- monthsShort : monthsShort,
26
- monthsParseExact : true,
27
- weekdays : weekdays,
28
- weekdaysShort : weekdaysShort,
29
- weekdaysMin : weekdaysMin,
30
- longDateFormat : {
31
- LT : 'HH:mm',
32
- LTS : 'HH:mm:ss',
33
- L : 'DD/MM/YYYY',
34
- LL : 'D MMMM YYYY',
35
- LLL : 'D MMMM YYYY HH:mm',
36
- LLLL : 'dddd, D MMMM YYYY HH:mm'
55
+ months: months,
56
+ monthsShort: monthsShort,
57
+ monthsParseExact: true,
58
+ weekdays: weekdays,
59
+ weekdaysShort: weekdaysShort,
60
+ weekdaysMin: weekdaysMin,
61
+ longDateFormat: {
62
+ LT: 'HH:mm',
63
+ LTS: 'HH:mm:ss',
64
+ L: 'DD/MM/YYYY',
65
+ LL: 'D MMMM YYYY',
66
+ LLL: 'D MMMM YYYY HH:mm',
67
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
37
68
  },
38
- calendar : {
39
- sameDay : '[An-diugh aig] LT',
40
- nextDay : '[A-màireach aig] LT',
41
- nextWeek : 'dddd [aig] LT',
42
- lastDay : '[An-dè aig] LT',
43
- lastWeek : 'dddd [seo chaidh] [aig] LT',
44
- sameElse : 'L'
69
+ calendar: {
70
+ sameDay: '[An-diugh aig] LT',
71
+ nextDay: '[A-màireach aig] LT',
72
+ nextWeek: 'dddd [aig] LT',
73
+ lastDay: '[An-dè aig] LT',
74
+ lastWeek: 'dddd [seo chaidh] [aig] LT',
75
+ sameElse: 'L',
45
76
  },
46
- relativeTime : {
47
- future : 'ann an %s',
48
- past : 'bho chionn %s',
49
- s : 'beagan diogan',
50
- ss : '%d diogan',
51
- m : 'mionaid',
52
- mm : '%d mionaidean',
53
- h : 'uair',
54
- hh : '%d uairean',
55
- d : 'latha',
56
- dd : '%d latha',
57
- M : 'mìos',
58
- MM : '%d mìosan',
59
- y : 'bliadhna',
60
- yy : '%d bliadhna'
77
+ relativeTime: {
78
+ future: 'ann an %s',
79
+ past: 'bho chionn %s',
80
+ s: 'beagan diogan',
81
+ ss: '%d diogan',
82
+ m: 'mionaid',
83
+ mm: '%d mionaidean',
84
+ h: 'uair',
85
+ hh: '%d uairean',
86
+ d: 'latha',
87
+ dd: '%d latha',
88
+ M: 'mìos',
89
+ MM: '%d mìosan',
90
+ y: 'bliadhna',
91
+ yy: '%d bliadhna',
61
92
  },
62
- dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
63
- ordinal : function (number) {
93
+ dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
94
+ ordinal: function (number) {
64
95
  var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
65
96
  return number + output;
66
97
  },
67
- week : {
68
- dow : 1, // Monday is the first day of the week.
69
- doy : 4 // The week that contains Jan 4th is the first week of the year.
70
- }
98
+ week: {
99
+ dow: 1, // Monday is the first day of the week.
100
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
101
+ },
71
102
  });
72
103
 
73
104
  return gd;