alloy 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/.eslintignore +0 -1
  2. package/.github/dependabot.yml +4 -0
  3. package/.github/workflows/build.yml +4 -0
  4. package/.github/workflows/publish.yml +4 -4
  5. package/Alloy/builtins/moment/lang/af.js +52 -42
  6. package/Alloy/builtins/moment/lang/ar-dz.js +151 -42
  7. package/Alloy/builtins/moment/lang/ar-kw.js +42 -34
  8. package/Alloy/builtins/moment/lang/ar-ly.js +142 -81
  9. package/Alloy/builtins/moment/lang/ar-ma.js +43 -34
  10. package/Alloy/builtins/moment/lang/ar-sa.js +77 -64
  11. package/Alloy/builtins/moment/lang/ar-tn.js +17 -9
  12. package/Alloy/builtins/moment/lang/ar.js +161 -95
  13. package/Alloy/builtins/moment/lang/az.js +54 -45
  14. package/Alloy/builtins/moment/lang/be.js +73 -51
  15. package/Alloy/builtins/moment/lang/bg.js +50 -41
  16. package/Alloy/builtins/moment/lang/bm.js +43 -38
  17. package/Alloy/builtins/moment/lang/bn-bd.js +140 -0
  18. package/Alloy/builtins/moment/lang/bn.js +78 -66
  19. package/Alloy/builtins/moment/lang/bo.js +83 -66
  20. package/Alloy/builtins/moment/lang/br.js +119 -47
  21. package/Alloy/builtins/moment/lang/bs.js +51 -40
  22. package/Alloy/builtins/moment/lang/ca.js +80 -56
  23. package/Alloy/builtins/moment/lang/cs.js +88 -68
  24. package/Alloy/builtins/moment/lang/cv.js +47 -35
  25. package/Alloy/builtins/moment/lang/cy.js +44 -14
  26. package/Alloy/builtins/moment/lang/da.js +44 -39
  27. package/Alloy/builtins/moment/lang/de-at.js +57 -42
  28. package/Alloy/builtins/moment/lang/de-ch.js +54 -42
  29. package/Alloy/builtins/moment/lang/de.js +56 -42
  30. package/Alloy/builtins/moment/lang/dv.js +65 -62
  31. package/Alloy/builtins/moment/lang/el.js +67 -49
  32. package/Alloy/builtins/moment/lang/en-au.js +56 -43
  33. package/Alloy/builtins/moment/lang/en-ca.js +53 -40
  34. package/Alloy/builtins/moment/lang/en-gb.js +56 -43
  35. package/Alloy/builtins/moment/lang/en-ie.js +56 -43
  36. package/Alloy/builtins/moment/lang/en-il.js +53 -39
  37. package/Alloy/builtins/moment/lang/en-in.js +79 -0
  38. package/Alloy/builtins/moment/lang/en-nz.js +56 -43
  39. package/Alloy/builtins/moment/lang/en-sg.js +79 -0
  40. package/Alloy/builtins/moment/lang/eo.js +49 -40
  41. package/Alloy/builtins/moment/lang/es-do.js +81 -53
  42. package/Alloy/builtins/moment/lang/es-mx.js +121 -0
  43. package/Alloy/builtins/moment/lang/es-us.js +83 -53
  44. package/Alloy/builtins/moment/lang/es.js +88 -58
  45. package/Alloy/builtins/moment/lang/et.js +60 -50
  46. package/Alloy/builtins/moment/lang/eu.js +56 -45
  47. package/Alloy/builtins/moment/lang/fa.js +88 -69
  48. package/Alloy/builtins/moment/lang/fi.js +75 -48
  49. package/Alloy/builtins/moment/lang/fil.js +69 -0
  50. package/Alloy/builtins/moment/lang/fo.js +48 -39
  51. package/Alloy/builtins/moment/lang/fr-ca.js +46 -38
  52. package/Alloy/builtins/moment/lang/fr-ch.js +49 -41
  53. package/Alloy/builtins/moment/lang/fr.js +78 -41
  54. package/Alloy/builtins/moment/lang/fy.js +51 -39
  55. package/Alloy/builtins/moment/lang/ga.js +48 -18
  56. package/Alloy/builtins/moment/lang/gd.js +82 -51
  57. package/Alloy/builtins/moment/lang/gl.js +56 -46
  58. package/Alloy/builtins/moment/lang/gom-deva.js +137 -0
  59. package/Alloy/builtins/moment/lang/gom-latn.js +71 -58
  60. package/Alloy/builtins/moment/lang/gu.js +30 -20
  61. package/Alloy/builtins/moment/lang/he.js +52 -43
  62. package/Alloy/builtins/moment/lang/hi.js +120 -64
  63. package/Alloy/builtins/moment/lang/hr.js +57 -43
  64. package/Alloy/builtins/moment/lang/hu.js +64 -44
  65. package/Alloy/builtins/moment/lang/hy-am.js +47 -36
  66. package/Alloy/builtins/moment/lang/id.js +46 -40
  67. package/Alloy/builtins/moment/lang/is.js +63 -43
  68. package/Alloy/builtins/moment/lang/it-ch.js +42 -35
  69. package/Alloy/builtins/moment/lang/it.js +91 -42
  70. package/Alloy/builtins/moment/lang/ja.js +113 -45
  71. package/Alloy/builtins/moment/lang/jv.js +46 -40
  72. package/Alloy/builtins/moment/lang/ka.js +66 -51
  73. package/Alloy/builtins/moment/lang/kk.js +47 -40
  74. package/Alloy/builtins/moment/lang/km.js +37 -32
  75. package/Alloy/builtins/moment/lang/kn.js +74 -64
  76. package/Alloy/builtins/moment/lang/ko.js +50 -44
  77. package/Alloy/builtins/moment/lang/ku.js +94 -83
  78. package/Alloy/builtins/moment/lang/ky.js +49 -40
  79. package/Alloy/builtins/moment/lang/lb.js +43 -30
  80. package/Alloy/builtins/moment/lang/lo.js +46 -38
  81. package/Alloy/builtins/moment/lang/lt.js +82 -63
  82. package/Alloy/builtins/moment/lang/lv.js +60 -51
  83. package/Alloy/builtins/moment/lang/me.js +53 -36
  84. package/Alloy/builtins/moment/lang/mi.js +17 -9
  85. package/Alloy/builtins/moment/lang/mk.js +47 -39
  86. package/Alloy/builtins/moment/lang/ml.js +54 -41
  87. package/Alloy/builtins/moment/lang/mn.js +48 -40
  88. package/Alloy/builtins/moment/lang/mr.js +143 -88
  89. package/Alloy/builtins/moment/lang/ms-my.js +45 -39
  90. package/Alloy/builtins/moment/lang/ms.js +44 -39
  91. package/Alloy/builtins/moment/lang/mt.js +47 -39
  92. package/Alloy/builtins/moment/lang/my.js +40 -30
  93. package/Alloy/builtins/moment/lang/nb.js +46 -36
  94. package/Alloy/builtins/moment/lang/ne.js +75 -65
  95. package/Alloy/builtins/moment/lang/nl-be.js +73 -46
  96. package/Alloy/builtins/moment/lang/nl.js +75 -46
  97. package/Alloy/builtins/moment/lang/nn.js +45 -34
  98. package/Alloy/builtins/moment/lang/oc-lnc.js +96 -0
  99. package/Alloy/builtins/moment/lang/pa-in.js +73 -63
  100. package/Alloy/builtins/moment/lang/pl.js +69 -43
  101. package/Alloy/builtins/moment/lang/pt-br.js +43 -34
  102. package/Alloy/builtins/moment/lang/pt.js +48 -38
  103. package/Alloy/builtins/moment/lang/ro.js +52 -39
  104. package/Alloy/builtins/moment/lang/ru.js +104 -61
  105. package/Alloy/builtins/moment/lang/sd.js +57 -62
  106. package/Alloy/builtins/moment/lang/se.js +42 -33
  107. package/Alloy/builtins/moment/lang/si.js +50 -40
  108. package/Alloy/builtins/moment/lang/sk.js +54 -53
  109. package/Alloy/builtins/moment/lang/sl.js +51 -41
  110. package/Alloy/builtins/moment/lang/sq.js +50 -41
  111. package/Alloy/builtins/moment/lang/sr-cyrl.js +71 -43
  112. package/Alloy/builtins/moment/lang/sr.js +74 -44
  113. package/Alloy/builtins/moment/lang/ss.js +50 -42
  114. package/Alloy/builtins/moment/lang/sv.js +52 -41
  115. package/Alloy/builtins/moment/lang/sw.js +47 -39
  116. package/Alloy/builtins/moment/lang/ta.js +78 -64
  117. package/Alloy/builtins/moment/lang/te.js +54 -43
  118. package/Alloy/builtins/moment/lang/tet.js +51 -38
  119. package/Alloy/builtins/moment/lang/tg.js +51 -38
  120. package/Alloy/builtins/moment/lang/th.js +47 -37
  121. package/Alloy/builtins/moment/lang/tk.js +102 -0
  122. package/Alloy/builtins/moment/lang/tl-ph.js +41 -34
  123. package/Alloy/builtins/moment/lang/tlh.js +69 -55
  124. package/Alloy/builtins/moment/lang/tr.js +83 -59
  125. package/Alloy/builtins/moment/lang/tzl.js +67 -57
  126. package/Alloy/builtins/moment/lang/tzm-latn.js +41 -33
  127. package/Alloy/builtins/moment/lang/tzm.js +40 -32
  128. package/Alloy/builtins/moment/lang/ug-cn.js +13 -9
  129. package/Alloy/builtins/moment/lang/uk.js +82 -57
  130. package/Alloy/builtins/moment/lang/ur.js +58 -62
  131. package/Alloy/builtins/moment/lang/uz-latn.js +46 -38
  132. package/Alloy/builtins/moment/lang/uz.js +43 -38
  133. package/Alloy/builtins/moment/lang/vi.js +56 -43
  134. package/Alloy/builtins/moment/lang/x-pseudo.js +61 -44
  135. package/Alloy/builtins/moment/lang/yo.js +45 -40
  136. package/Alloy/builtins/moment/lang/zh-cn.js +68 -46
  137. package/Alloy/builtins/moment/lang/zh-hk.js +61 -51
  138. package/Alloy/builtins/moment/lang/zh-mo.js +111 -0
  139. package/Alloy/builtins/moment/lang/zh-tw.js +57 -49
  140. package/Alloy/builtins/moment.js +2534 -1451
  141. package/Alloy/commands/compile/compilerUtils.js +3 -6
  142. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.ContentView.js +13 -0
  143. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar._ProxyProperty.js +13 -0
  144. package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.js +35 -0
  145. package/Alloy/commands/compile/parsers/Ti.UI.Android.DrawerLayout._ProxyProperty.js +0 -1
  146. package/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js +1 -1
  147. package/Alloy/commands/generate/targets/widget.js +1 -1
  148. package/Alloy/commands/info/index.js +2 -2
  149. package/Alloy/common/constants.js +4 -2
  150. package/Alloy/lib/alloy/underscore.js +1722 -1372
  151. package/Alloy/template/README +3 -9
  152. package/Alloy/template/app.tss +5 -12
  153. package/Alloy/template/controller.js +1 -1
  154. package/Alloy/template/gitignore.txt +3 -0
  155. package/Alloy/template/lib/alloy.js +0 -17
  156. package/Alloy/template/style.tss +0 -3
  157. package/Alloy/template/view.xml +4 -3
  158. package/Alloy/template/widget/style.tss +1 -2
  159. package/Alloy/utils.js +1 -1
  160. package/CHANGELOG.md +16 -0
  161. package/package.json +21 -25
  162. package/samples/lib/testUtils.js +1 -1
  163. package/test/lib/testUtils.js +1 -1
  164. package/test/projects/HarnessTemplate/tiapp.xml +0 -15
  165. package/test/specs/compile.js +3 -2
  166. package/test/specs/compilefile.js +3 -3
  167. package/test/specs/new.js +1 -1
  168. package/test/specs/optimizer.js +10 -13
  169. package/dangerfile.js +0 -20
  170. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/app.tss +0 -11
  171. package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/requiredlabel.tss +0 -4
  172. package/samples/apps/advanced/complex_styling/views/mobileweb/label.xml +0 -3
  173. package/samples/apps/advanced/device_query/_generated/mobileweb/alloy/controllers/index.js +0 -60
  174. package/samples/apps/advanced/dynamic_styling/views/mobileweb/features/autoStyle.xml +0 -54
  175. package/samples/apps/advanced/form_factor/_generated/mobileweb/alloy/controllers/index.js +0 -121
  176. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/animatedDialog.js +0 -44
  177. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/baseDialog.js +0 -88
  178. package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/index.js +0 -59
  179. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/detail.js +0 -102
  180. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/index.js +0 -35
  181. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/master.js +0 -53
  182. package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/row.js +0 -67
  183. package/samples/apps/advanced/native_modules/_generated/mobileweb/alloy/controllers/index.js +0 -37
  184. package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js +0 -60
  185. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/index.js +0 -207
  186. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/proxy.js +0 -51
  187. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/window.js +0 -49
  188. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row.js +0 -46
  189. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row_bind.js +0 -46
  190. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/section.js +0 -59
  191. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row.js +0 -14
  192. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row_bind.js +0 -14
  193. package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/section.js +0 -14
  194. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/dialog.js +0 -112
  195. package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/index.js +0 -118
  196. package/samples/apps/basics/builtins/_generated/mobileweb/alloy/controllers/index.js +0 -102
  197. package/samples/apps/basics/config_json/_generated/mobileweb/alloy/controllers/index.js +0 -49
  198. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/CustomView.js +0 -60
  199. package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/index.js +0 -57
  200. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/index.js +0 -40
  201. package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/item.js +0 -45
  202. package/samples/apps/basics/markup_events/_generated/mobileweb/alloy/controllers/index.js +0 -49
  203. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/bottom.js +0 -42
  204. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/index.js +0 -49
  205. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/middle.js +0 -45
  206. package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/theRest.js +0 -41
  207. package/samples/apps/basics/simple/_generated/mobileweb/alloy/controllers/index.js +0 -49
  208. package/samples/apps/models/journal/views/mobileweb/index.xml +0 -19
  209. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/00.png +0 -0
  210. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/01.png +0 -0
  211. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/02.png +0 -0
  212. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/03.png +0 -0
  213. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/04.png +0 -0
  214. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/05.png +0 -0
  215. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/06.png +0 -0
  216. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/07.png +0 -0
  217. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/08.png +0 -0
  218. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/09.png +0 -0
  219. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/10.png +0 -0
  220. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/11.png +0 -0
  221. package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/spinner.png +0 -0
@@ -1,4 +1,7 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Serbian [sr]
3
+ //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
4
+ //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
2
5
 
3
6
  ;(function (global, factory) {
4
7
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,46 +10,73 @@
7
10
  factory(global.moment)
8
11
  }(this, (function (moment) { 'use strict';
9
12
 
13
+ //! moment.js locale configuration
10
14
 
11
15
  var translator = {
12
- words: { //Different grammatical cases
16
+ words: {
17
+ //Different grammatical cases
13
18
  ss: ['sekunda', 'sekunde', 'sekundi'],
14
- m: ['jedan minut', 'jedne minute'],
15
- mm: ['minut', 'minute', 'minuta'],
19
+ m: ['jedan minut', 'jednog minuta'],
20
+ mm: ['minut', 'minuta', 'minuta'],
16
21
  h: ['jedan sat', 'jednog sata'],
17
22
  hh: ['sat', 'sata', 'sati'],
23
+ d: ['jedan dan', 'jednog dana'],
18
24
  dd: ['dan', 'dana', 'dana'],
25
+ M: ['jedan mesec', 'jednog meseca'],
19
26
  MM: ['mesec', 'meseca', 'meseci'],
20
- yy: ['godina', 'godine', 'godina']
27
+ y: ['jednu godinu', 'jedne godine'],
28
+ yy: ['godinu', 'godine', 'godina'],
21
29
  },
22
30
  correctGrammaticalCase: function (number, wordKey) {
23
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
31
+ if (
32
+ number % 10 >= 1 &&
33
+ number % 10 <= 4 &&
34
+ (number % 100 < 10 || number % 100 >= 20)
35
+ ) {
36
+ return number % 10 === 1 ? wordKey[0] : wordKey[1];
37
+ }
38
+ return wordKey[2];
24
39
  },
25
- translate: function (number, withoutSuffix, key) {
26
- var wordKey = translator.words[key];
40
+ translate: function (number, withoutSuffix, key, isFuture) {
41
+ var wordKey = translator.words[key],
42
+ word;
43
+
27
44
  if (key.length === 1) {
28
- return withoutSuffix ? wordKey[0] : wordKey[1];
29
- } else {
30
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
45
+ // Nominativ
46
+ if (key === 'y' && withoutSuffix) return 'jedna godina';
47
+ return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
48
+ }
49
+
50
+ word = translator.correctGrammaticalCase(number, wordKey);
51
+ // Nominativ
52
+ if (key === 'yy' && withoutSuffix && word === 'godinu') {
53
+ return number + ' godina';
31
54
  }
32
- }
55
+
56
+ return number + ' ' + word;
57
+ },
33
58
  };
34
59
 
35
60
  var sr = moment.defineLocale('sr', {
36
- months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
37
- monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
61
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
62
+ '_'
63
+ ),
64
+ monthsShort:
65
+ 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
38
66
  monthsParseExact: true,
39
- weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
67
+ weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
68
+ '_'
69
+ ),
40
70
  weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
41
71
  weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
42
- weekdaysParseExact : true,
72
+ weekdaysParseExact: true,
43
73
  longDateFormat: {
44
74
  LT: 'H:mm',
45
- LTS : 'H:mm:ss',
46
- L: 'DD.MM.YYYY',
47
- LL: 'D. MMMM YYYY',
48
- LLL: 'D. MMMM YYYY H:mm',
49
- LLLL: 'dddd, D. MMMM YYYY H:mm'
75
+ LTS: 'H:mm:ss',
76
+ L: 'D. M. YYYY.',
77
+ LL: 'D. MMMM YYYY.',
78
+ LLL: 'D. MMMM YYYY. H:mm',
79
+ LLLL: 'dddd, D. MMMM YYYY. H:mm',
50
80
  },
51
81
  calendar: {
52
82
  sameDay: '[danas u] LT',
@@ -66,8 +96,8 @@
66
96
  return '[u] dddd [u] LT';
67
97
  }
68
98
  },
69
- lastDay : '[juče u] LT',
70
- lastWeek : function () {
99
+ lastDay: '[juče u] LT',
100
+ lastWeek: function () {
71
101
  var lastWeekDays = [
72
102
  '[prošle] [nedelje] [u] LT',
73
103
  '[prošlog] [ponedeljka] [u] LT',
@@ -75,34 +105,34 @@
75
105
  '[prošle] [srede] [u] LT',
76
106
  '[prošlog] [četvrtka] [u] LT',
77
107
  '[prošlog] [petka] [u] LT',
78
- '[prošle] [subote] [u] LT'
108
+ '[prošle] [subote] [u] LT',
79
109
  ];
80
110
  return lastWeekDays[this.day()];
81
111
  },
82
- sameElse : 'L'
112
+ sameElse: 'L',
83
113
  },
84
- relativeTime : {
85
- future : 'za %s',
86
- past : 'pre %s',
87
- s : 'nekoliko sekundi',
88
- ss : translator.translate,
89
- m : translator.translate,
90
- mm : translator.translate,
91
- h : translator.translate,
92
- hh : translator.translate,
93
- d : 'dan',
94
- dd : translator.translate,
95
- M : 'mesec',
96
- MM : translator.translate,
97
- y : 'godinu',
98
- yy : translator.translate
114
+ relativeTime: {
115
+ future: 'za %s',
116
+ past: 'pre %s',
117
+ s: 'nekoliko sekundi',
118
+ ss: translator.translate,
119
+ m: translator.translate,
120
+ mm: translator.translate,
121
+ h: translator.translate,
122
+ hh: translator.translate,
123
+ d: translator.translate,
124
+ dd: translator.translate,
125
+ M: translator.translate,
126
+ MM: translator.translate,
127
+ y: translator.translate,
128
+ yy: translator.translate,
99
129
  },
100
130
  dayOfMonthOrdinalParse: /\d{1,2}\./,
101
- ordinal : '%d.',
102
- week : {
103
- dow : 1, // Monday is the first day of the week.
104
- doy : 7 // The week that contains Jan 7th is the first week of the year.
105
- }
131
+ ordinal: '%d.',
132
+ week: {
133
+ dow: 1, // Monday is the first day of the week.
134
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
135
+ },
106
136
  });
107
137
 
108
138
  return sr;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : siSwati [ss]
3
+ //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,48 +9,54 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var ss = moment.defineLocale('ss', {
12
- months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
13
- monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
14
- weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
15
- weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
16
- weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
17
- weekdaysParseExact : true,
18
- longDateFormat : {
19
- LT : 'h:mm A',
20
- LTS : 'h:mm:ss A',
21
- L : 'DD/MM/YYYY',
22
- LL : 'D MMMM YYYY',
23
- LLL : 'D MMMM YYYY h:mm A',
24
- LLLL : 'dddd, D MMMM YYYY h:mm A'
15
+ months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
19
+ weekdays:
20
+ 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
24
+ weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
25
+ weekdaysParseExact: true,
26
+ longDateFormat: {
27
+ LT: 'h:mm A',
28
+ LTS: 'h:mm:ss A',
29
+ L: 'DD/MM/YYYY',
30
+ LL: 'D MMMM YYYY',
31
+ LLL: 'D MMMM YYYY h:mm A',
32
+ LLLL: 'dddd, D MMMM YYYY h:mm A',
25
33
  },
26
- calendar : {
27
- sameDay : '[Namuhla nga] LT',
28
- nextDay : '[Kusasa nga] LT',
29
- nextWeek : 'dddd [nga] LT',
30
- lastDay : '[Itolo nga] LT',
31
- lastWeek : 'dddd [leliphelile] [nga] LT',
32
- sameElse : 'L'
34
+ calendar: {
35
+ sameDay: '[Namuhla nga] LT',
36
+ nextDay: '[Kusasa nga] LT',
37
+ nextWeek: 'dddd [nga] LT',
38
+ lastDay: '[Itolo nga] LT',
39
+ lastWeek: 'dddd [leliphelile] [nga] LT',
40
+ sameElse: 'L',
33
41
  },
34
- relativeTime : {
35
- future : 'nga %s',
36
- past : 'wenteka nga %s',
37
- s : 'emizuzwana lomcane',
38
- ss : '%d mzuzwana',
39
- m : 'umzuzu',
40
- mm : '%d emizuzu',
41
- h : 'lihora',
42
- hh : '%d emahora',
43
- d : 'lilanga',
44
- dd : '%d emalanga',
45
- M : 'inyanga',
46
- MM : '%d tinyanga',
47
- y : 'umnyaka',
48
- yy : '%d iminyaka'
42
+ relativeTime: {
43
+ future: 'nga %s',
44
+ past: 'wenteka nga %s',
45
+ s: 'emizuzwana lomcane',
46
+ ss: '%d mzuzwana',
47
+ m: 'umzuzu',
48
+ mm: '%d emizuzu',
49
+ h: 'lihora',
50
+ hh: '%d emahora',
51
+ d: 'lilanga',
52
+ dd: '%d emalanga',
53
+ M: 'inyanga',
54
+ MM: '%d tinyanga',
55
+ y: 'umnyaka',
56
+ yy: '%d iminyaka',
49
57
  },
50
58
  meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
51
- meridiem : function (hours, minutes, isLower) {
59
+ meridiem: function (hours, minutes, isLower) {
52
60
  if (hours < 11) {
53
61
  return 'ekuseni';
54
62
  } else if (hours < 15) {
@@ -59,7 +67,7 @@
59
67
  return 'ebusuku';
60
68
  }
61
69
  },
62
- meridiemHour : function (hour, meridiem) {
70
+ meridiemHour: function (hour, meridiem) {
63
71
  if (hour === 12) {
64
72
  hour = 0;
65
73
  }
@@ -75,11 +83,11 @@
75
83
  }
76
84
  },
77
85
  dayOfMonthOrdinalParse: /\d{1,2}/,
78
- ordinal : '%d',
79
- week : {
80
- dow : 1, // Monday is the first day of the week.
81
- doy : 4 // The week that contains Jan 4th is the first week of the year.
82
- }
86
+ ordinal: '%d',
87
+ week: {
88
+ dow: 1, // Monday is the first day of the week.
89
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
90
+ },
83
91
  });
84
92
 
85
93
  return ss;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Swedish [sv]
3
+ //! author : Jens Alm : https://github.com/ulmus
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,60 +9,69 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var sv = moment.defineLocale('sv', {
12
- months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
13
- monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
14
- weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
15
- weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
16
- weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
17
- longDateFormat : {
18
- LT : 'HH:mm',
19
- LTS : 'HH:mm:ss',
20
- L : 'YYYY-MM-DD',
21
- LL : 'D MMMM YYYY',
22
- LLL : 'D MMMM YYYY [kl.] HH:mm',
23
- LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
24
- lll : 'D MMM YYYY HH:mm',
25
- llll : 'ddd D MMM YYYY HH:mm'
15
+ months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
19
+ weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
20
+ weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
21
+ weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
22
+ longDateFormat: {
23
+ LT: 'HH:mm',
24
+ LTS: 'HH:mm:ss',
25
+ L: 'YYYY-MM-DD',
26
+ LL: 'D MMMM YYYY',
27
+ LLL: 'D MMMM YYYY [kl.] HH:mm',
28
+ LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
29
+ lll: 'D MMM YYYY HH:mm',
30
+ llll: 'ddd D MMM YYYY HH:mm',
26
31
  },
27
- calendar : {
32
+ calendar: {
28
33
  sameDay: '[Idag] LT',
29
34
  nextDay: '[Imorgon] LT',
30
35
  lastDay: '[Igår] LT',
31
36
  nextWeek: '[På] dddd LT',
32
37
  lastWeek: '[I] dddd[s] LT',
33
- sameElse: 'L'
38
+ sameElse: 'L',
34
39
  },
35
- relativeTime : {
36
- future : 'om %s',
37
- past : 'för %s sedan',
38
- s : 'några sekunder',
39
- ss : '%d sekunder',
40
- m : 'en minut',
41
- mm : '%d minuter',
42
- h : 'en timme',
43
- hh : '%d timmar',
44
- d : 'en dag',
45
- dd : '%d dagar',
46
- M : 'en månad',
47
- MM : '%d månader',
48
- y : 'ett år',
49
- yy : '%d år'
40
+ relativeTime: {
41
+ future: 'om %s',
42
+ past: 'för %s sedan',
43
+ s: 'några sekunder',
44
+ ss: '%d sekunder',
45
+ m: 'en minut',
46
+ mm: '%d minuter',
47
+ h: 'en timme',
48
+ hh: '%d timmar',
49
+ d: 'en dag',
50
+ dd: '%d dagar',
51
+ M: 'en månad',
52
+ MM: '%d månader',
53
+ y: 'ett år',
54
+ yy: '%d år',
50
55
  },
51
- dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
52
- ordinal : function (number) {
56
+ dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
57
+ ordinal: function (number) {
53
58
  var b = number % 10,
54
- output = (~~(number % 100 / 10) === 1) ? 'e' :
55
- (b === 1) ? 'a' :
56
- (b === 2) ? 'a' :
57
- (b === 3) ? 'e' : 'e';
59
+ output =
60
+ ~~((number % 100) / 10) === 1
61
+ ? ':e'
62
+ : b === 1
63
+ ? ':a'
64
+ : b === 2
65
+ ? ':a'
66
+ : b === 3
67
+ ? ':e'
68
+ : ':e';
58
69
  return number + output;
59
70
  },
60
- week : {
61
- dow : 1, // Monday is the first day of the week.
62
- doy : 4 // The week that contains Jan 4th is the first week of the year.
63
- }
71
+ week: {
72
+ dow: 1, // Monday is the first day of the week.
73
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
74
+ },
64
75
  });
65
76
 
66
77
  return sv;
@@ -1,4 +1,6 @@
1
1
  //! moment.js locale configuration
2
+ //! locale : Swahili [sw]
3
+ //! author : Fahad Kassim : https://github.com/fadsel
2
4
 
3
5
  ;(function (global, factory) {
4
6
  typeof exports === 'object' && typeof module !== 'undefined'
@@ -7,50 +9,56 @@
7
9
  factory(global.moment)
8
10
  }(this, (function (moment) { 'use strict';
9
11
 
12
+ //! moment.js locale configuration
10
13
 
11
14
  var sw = moment.defineLocale('sw', {
12
- months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
13
- monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
14
- weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
15
- weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
16
- weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
17
- weekdaysParseExact : true,
18
- longDateFormat : {
19
- LT : 'HH:mm',
20
- LTS : 'HH:mm:ss',
21
- L : 'DD.MM.YYYY',
22
- LL : 'D MMMM YYYY',
23
- LLL : 'D MMMM YYYY HH:mm',
24
- LLLL : 'dddd, D MMMM YYYY HH:mm'
15
+ months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
16
+ '_'
17
+ ),
18
+ monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
19
+ weekdays:
20
+ 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
21
+ '_'
22
+ ),
23
+ weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
24
+ weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
25
+ weekdaysParseExact: true,
26
+ longDateFormat: {
27
+ LT: 'hh:mm A',
28
+ LTS: 'HH:mm:ss',
29
+ L: 'DD.MM.YYYY',
30
+ LL: 'D MMMM YYYY',
31
+ LLL: 'D MMMM YYYY HH:mm',
32
+ LLLL: 'dddd, D MMMM YYYY HH:mm',
25
33
  },
26
- calendar : {
27
- sameDay : '[leo saa] LT',
28
- nextDay : '[kesho saa] LT',
29
- nextWeek : '[wiki ijayo] dddd [saat] LT',
30
- lastDay : '[jana] LT',
31
- lastWeek : '[wiki iliyopita] dddd [saat] LT',
32
- sameElse : 'L'
34
+ calendar: {
35
+ sameDay: '[leo saa] LT',
36
+ nextDay: '[kesho saa] LT',
37
+ nextWeek: '[wiki ijayo] dddd [saat] LT',
38
+ lastDay: '[jana] LT',
39
+ lastWeek: '[wiki iliyopita] dddd [saat] LT',
40
+ sameElse: 'L',
33
41
  },
34
- relativeTime : {
35
- future : '%s baadaye',
36
- past : 'tokea %s',
37
- s : 'hivi punde',
38
- ss : 'sekunde %d',
39
- m : 'dakika moja',
40
- mm : 'dakika %d',
41
- h : 'saa limoja',
42
- hh : 'masaa %d',
43
- d : 'siku moja',
44
- dd : 'masiku %d',
45
- M : 'mwezi mmoja',
46
- MM : 'miezi %d',
47
- y : 'mwaka mmoja',
48
- yy : 'miaka %d'
42
+ relativeTime: {
43
+ future: '%s baadaye',
44
+ past: 'tokea %s',
45
+ s: 'hivi punde',
46
+ ss: 'sekunde %d',
47
+ m: 'dakika moja',
48
+ mm: 'dakika %d',
49
+ h: 'saa limoja',
50
+ hh: 'masaa %d',
51
+ d: 'siku moja',
52
+ dd: 'siku %d',
53
+ M: 'mwezi mmoja',
54
+ MM: 'miezi %d',
55
+ y: 'mwaka mmoja',
56
+ yy: 'miaka %d',
57
+ },
58
+ week: {
59
+ dow: 1, // Monday is the first day of the week.
60
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
49
61
  },
50
- week : {
51
- dow : 1, // Monday is the first day of the week.
52
- doy : 7 // The week that contains Jan 7th is the first week of the year.
53
- }
54
62
  });
55
63
 
56
64
  return sw;