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.
- package/.eslintignore +0 -1
- package/.eslintrc.js +2 -1
- package/.github/dependabot.yml +4 -0
- package/.github/workflows/build.yml +12 -9
- package/.github/workflows/cla.yaml +1 -1
- package/.github/workflows/publish.yml +44 -5
- package/Alloy/builtins/moment/lang/af.js +52 -42
- package/Alloy/builtins/moment/lang/ar-dz.js +151 -42
- package/Alloy/builtins/moment/lang/ar-kw.js +42 -34
- package/Alloy/builtins/moment/lang/ar-ly.js +142 -81
- package/Alloy/builtins/moment/lang/ar-ma.js +43 -34
- package/Alloy/builtins/moment/lang/ar-ps.js +123 -0
- package/Alloy/builtins/moment/lang/ar-sa.js +77 -64
- package/Alloy/builtins/moment/lang/ar-tn.js +17 -9
- package/Alloy/builtins/moment/lang/ar.js +161 -95
- package/Alloy/builtins/moment/lang/az.js +54 -45
- package/Alloy/builtins/moment/lang/be.js +73 -51
- package/Alloy/builtins/moment/lang/bg.js +50 -41
- package/Alloy/builtins/moment/lang/bm.js +43 -38
- package/Alloy/builtins/moment/lang/bn-bd.js +140 -0
- package/Alloy/builtins/moment/lang/bn.js +78 -66
- package/Alloy/builtins/moment/lang/bo.js +83 -66
- package/Alloy/builtins/moment/lang/br.js +119 -47
- package/Alloy/builtins/moment/lang/bs.js +64 -43
- package/Alloy/builtins/moment/lang/ca.js +80 -56
- package/Alloy/builtins/moment/lang/cs.js +89 -68
- package/Alloy/builtins/moment/lang/cv.js +47 -35
- package/Alloy/builtins/moment/lang/cy.js +44 -14
- package/Alloy/builtins/moment/lang/da.js +44 -39
- package/Alloy/builtins/moment/lang/de-at.js +57 -42
- package/Alloy/builtins/moment/lang/de-ch.js +54 -42
- package/Alloy/builtins/moment/lang/de.js +56 -42
- package/Alloy/builtins/moment/lang/dv.js +65 -62
- package/Alloy/builtins/moment/lang/el.js +67 -49
- package/Alloy/builtins/moment/lang/en-au.js +56 -43
- package/Alloy/builtins/moment/lang/en-ca.js +53 -40
- package/Alloy/builtins/moment/lang/en-gb.js +56 -43
- package/Alloy/builtins/moment/lang/en-ie.js +56 -43
- package/Alloy/builtins/moment/lang/en-il.js +53 -39
- package/Alloy/builtins/moment/lang/en-in.js +79 -0
- package/Alloy/builtins/moment/lang/en-nz.js +56 -43
- package/Alloy/builtins/moment/lang/en-sg.js +79 -0
- package/Alloy/builtins/moment/lang/eo.js +49 -40
- package/Alloy/builtins/moment/lang/es-do.js +81 -53
- package/Alloy/builtins/moment/lang/es-mx.js +121 -0
- package/Alloy/builtins/moment/lang/es-us.js +83 -53
- package/Alloy/builtins/moment/lang/es.js +88 -58
- package/Alloy/builtins/moment/lang/et.js +60 -50
- package/Alloy/builtins/moment/lang/eu.js +56 -45
- package/Alloy/builtins/moment/lang/fa.js +88 -69
- package/Alloy/builtins/moment/lang/fi.js +75 -48
- package/Alloy/builtins/moment/lang/fil.js +69 -0
- package/Alloy/builtins/moment/lang/fo.js +48 -39
- package/Alloy/builtins/moment/lang/fr-ca.js +46 -38
- package/Alloy/builtins/moment/lang/fr-ch.js +49 -41
- package/Alloy/builtins/moment/lang/fr.js +78 -41
- package/Alloy/builtins/moment/lang/fy.js +51 -39
- package/Alloy/builtins/moment/lang/ga.js +48 -18
- package/Alloy/builtins/moment/lang/gd.js +82 -51
- package/Alloy/builtins/moment/lang/gl.js +56 -46
- package/Alloy/builtins/moment/lang/gom-deva.js +137 -0
- package/Alloy/builtins/moment/lang/gom-latn.js +71 -58
- package/Alloy/builtins/moment/lang/gu.js +30 -20
- package/Alloy/builtins/moment/lang/he.js +52 -43
- package/Alloy/builtins/moment/lang/hi.js +120 -64
- package/Alloy/builtins/moment/lang/hr.js +57 -43
- package/Alloy/builtins/moment/lang/hu.js +64 -44
- package/Alloy/builtins/moment/lang/hy-am.js +47 -36
- package/Alloy/builtins/moment/lang/id.js +46 -40
- package/Alloy/builtins/moment/lang/is.js +63 -43
- package/Alloy/builtins/moment/lang/it-ch.js +42 -35
- package/Alloy/builtins/moment/lang/it.js +91 -42
- package/Alloy/builtins/moment/lang/ja.js +113 -45
- package/Alloy/builtins/moment/lang/jv.js +46 -40
- package/Alloy/builtins/moment/lang/ka.js +66 -51
- package/Alloy/builtins/moment/lang/kk.js +47 -40
- package/Alloy/builtins/moment/lang/km.js +37 -32
- package/Alloy/builtins/moment/lang/kn.js +74 -64
- package/Alloy/builtins/moment/lang/ko.js +50 -44
- package/Alloy/builtins/moment/lang/ku-kmr.js +125 -0
- package/Alloy/builtins/moment/lang/ku.js +94 -83
- package/Alloy/builtins/moment/lang/ky.js +49 -40
- package/Alloy/builtins/moment/lang/lb.js +43 -30
- package/Alloy/builtins/moment/lang/lo.js +46 -38
- package/Alloy/builtins/moment/lang/lt.js +82 -63
- package/Alloy/builtins/moment/lang/lv.js +60 -51
- package/Alloy/builtins/moment/lang/me.js +53 -36
- package/Alloy/builtins/moment/lang/mi.js +17 -9
- package/Alloy/builtins/moment/lang/mk.js +47 -39
- package/Alloy/builtins/moment/lang/ml.js +54 -41
- package/Alloy/builtins/moment/lang/mn.js +48 -40
- package/Alloy/builtins/moment/lang/mr.js +143 -88
- package/Alloy/builtins/moment/lang/ms-my.js +45 -39
- package/Alloy/builtins/moment/lang/ms.js +44 -39
- package/Alloy/builtins/moment/lang/mt.js +47 -39
- package/Alloy/builtins/moment/lang/my.js +40 -30
- package/Alloy/builtins/moment/lang/nb.js +46 -36
- package/Alloy/builtins/moment/lang/ne.js +75 -65
- package/Alloy/builtins/moment/lang/nl-be.js +73 -46
- package/Alloy/builtins/moment/lang/nl.js +75 -46
- package/Alloy/builtins/moment/lang/nn.js +45 -34
- package/Alloy/builtins/moment/lang/oc-lnc.js +96 -0
- package/Alloy/builtins/moment/lang/pa-in.js +73 -63
- package/Alloy/builtins/moment/lang/pl.js +69 -43
- package/Alloy/builtins/moment/lang/pt-br.js +43 -34
- package/Alloy/builtins/moment/lang/pt.js +48 -38
- package/Alloy/builtins/moment/lang/ro.js +52 -39
- package/Alloy/builtins/moment/lang/ru.js +104 -61
- package/Alloy/builtins/moment/lang/sd.js +57 -62
- package/Alloy/builtins/moment/lang/se.js +42 -33
- package/Alloy/builtins/moment/lang/si.js +50 -40
- package/Alloy/builtins/moment/lang/sk.js +54 -53
- package/Alloy/builtins/moment/lang/sl.js +51 -41
- package/Alloy/builtins/moment/lang/sq.js +50 -41
- package/Alloy/builtins/moment/lang/sr-cyrl.js +71 -43
- package/Alloy/builtins/moment/lang/sr.js +74 -44
- package/Alloy/builtins/moment/lang/ss.js +50 -42
- package/Alloy/builtins/moment/lang/sv.js +52 -41
- package/Alloy/builtins/moment/lang/sw.js +47 -39
- package/Alloy/builtins/moment/lang/ta.js +78 -64
- package/Alloy/builtins/moment/lang/te.js +54 -43
- package/Alloy/builtins/moment/lang/tet.js +51 -38
- package/Alloy/builtins/moment/lang/tg.js +51 -38
- package/Alloy/builtins/moment/lang/th.js +47 -37
- package/Alloy/builtins/moment/lang/tk.js +102 -0
- package/Alloy/builtins/moment/lang/tl-ph.js +41 -34
- package/Alloy/builtins/moment/lang/tlh.js +69 -55
- package/Alloy/builtins/moment/lang/tr.js +83 -59
- package/Alloy/builtins/moment/lang/tzl.js +67 -57
- package/Alloy/builtins/moment/lang/tzm-latn.js +41 -33
- package/Alloy/builtins/moment/lang/tzm.js +40 -32
- package/Alloy/builtins/moment/lang/ug-cn.js +13 -9
- package/Alloy/builtins/moment/lang/uk.js +82 -57
- package/Alloy/builtins/moment/lang/ur.js +58 -62
- package/Alloy/builtins/moment/lang/uz-latn.js +46 -38
- package/Alloy/builtins/moment/lang/uz.js +43 -38
- package/Alloy/builtins/moment/lang/vi.js +56 -43
- package/Alloy/builtins/moment/lang/x-pseudo.js +61 -44
- package/Alloy/builtins/moment/lang/yo.js +45 -40
- package/Alloy/builtins/moment/lang/zh-cn.js +68 -46
- package/Alloy/builtins/moment/lang/zh-hk.js +61 -51
- package/Alloy/builtins/moment/lang/zh-mo.js +111 -0
- package/Alloy/builtins/moment/lang/zh-tw.js +57 -49
- package/Alloy/builtins/moment.js +2587 -1501
- package/Alloy/commands/compile/ast/controller.js +6 -2
- package/Alloy/commands/compile/compilerUtils.js +6 -8
- package/Alloy/commands/compile/parsers/Alloy.Abstract.FixedSpace.js +2 -11
- package/Alloy/commands/compile/parsers/Alloy.Abstract.FlexSpace.js +2 -11
- package/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js +2 -2
- package/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js +9 -2
- package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.ContentView.js +13 -0
- package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar._ProxyProperty.js +13 -0
- package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.js +35 -0
- package/Alloy/commands/compile/parsers/Ti.UI.Android.DrawerLayout._ProxyProperty.js +0 -1
- package/Alloy/commands/compile/parsers/Ti.UI.AttributedString.js +0 -5
- package/Alloy/commands/compile/parsers/Ti.UI.Button.js +2 -11
- package/Alloy/commands/compile/parsers/Ti.UI.NavigationWindow.js +0 -15
- package/Alloy/commands/compile/parsers/Ti.UI.OptionBar.js +0 -5
- package/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js +1 -1
- package/Alloy/commands/compile/parsers/Ti.UI.TabbedBar.js +0 -9
- package/Alloy/commands/compile/parsers/Ti.UI.Toolbar.js +0 -6
- package/Alloy/commands/generate/targets/widget.js +1 -1
- package/Alloy/commands/info/index.js +2 -2
- package/Alloy/common/constants.js +5 -3
- package/Alloy/lib/alloy/backbone/1.6.0/backbone.js +2155 -0
- package/Alloy/lib/alloy/underscore.js +1722 -1372
- package/Alloy/template/README +3 -9
- package/Alloy/template/app.tss +5 -12
- package/Alloy/template/controller.js +1 -1
- package/Alloy/template/gitignore.txt +3 -0
- package/Alloy/template/lib/alloy.js +0 -17
- package/Alloy/template/style.tss +0 -3
- package/Alloy/template/view.xml +4 -3
- package/Alloy/template/widget/style.tss +1 -2
- package/Alloy/tiapp.js +1 -11
- package/Alloy/utils.js +1 -1
- package/CHANGELOG.md +16 -0
- package/README.md +16 -0
- package/package.json +23 -46
- package/samples/lib/testUtils.js +1 -1
- package/test/lib/testUtils.js +1 -1
- package/test/projects/HarnessTemplate/tiapp.xml +1 -15
- package/test/specs/compile.js +3 -2
- package/test/specs/compilefile.js +3 -3
- package/test/specs/new.js +1 -1
- package/test/specs/optimizer.js +10 -13
- package/Alloy/commands/compile/parsers/Ti.UI.iPhone.NavigationGroup.js +0 -58
- package/dangerfile.js +0 -20
- package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/app.tss +0 -11
- package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/requiredlabel.tss +0 -4
- package/samples/apps/advanced/complex_styling/views/mobileweb/label.xml +0 -3
- package/samples/apps/advanced/device_query/_generated/mobileweb/alloy/controllers/index.js +0 -60
- package/samples/apps/advanced/dynamic_styling/views/mobileweb/features/autoStyle.xml +0 -54
- package/samples/apps/advanced/form_factor/_generated/mobileweb/alloy/controllers/index.js +0 -121
- package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/animatedDialog.js +0 -44
- package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/baseDialog.js +0 -88
- package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/index.js +0 -59
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/detail.js +0 -102
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/index.js +0 -35
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/master.js +0 -53
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/row.js +0 -67
- package/samples/apps/advanced/native_modules/_generated/mobileweb/alloy/controllers/index.js +0 -37
- package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js +0 -60
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/index.js +0 -207
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/proxy.js +0 -51
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/window.js +0 -49
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row.js +0 -46
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row_bind.js +0 -46
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/section.js +0 -59
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row.js +0 -14
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row_bind.js +0 -14
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/section.js +0 -14
- package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/dialog.js +0 -112
- package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/index.js +0 -118
- package/samples/apps/basics/builtins/_generated/mobileweb/alloy/controllers/index.js +0 -102
- package/samples/apps/basics/config_json/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/CustomView.js +0 -60
- package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/index.js +0 -57
- package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/index.js +0 -40
- package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/item.js +0 -45
- package/samples/apps/basics/markup_events/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/bottom.js +0 -42
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/middle.js +0 -45
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/theRest.js +0 -41
- package/samples/apps/basics/simple/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/models/journal/views/mobileweb/index.xml +0 -19
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/00.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/01.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/02.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/03.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/04.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/05.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/06.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/07.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/08.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/09.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/10.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/11.png +0 -0
- 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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
29
|
-
nextDay
|
|
30
|
-
nextWeek
|
|
31
|
-
lastDay
|
|
32
|
-
lastWeek
|
|
33
|
-
sameElse
|
|
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
|
|
37
|
-
past
|
|
38
|
-
s
|
|
39
|
-
ss
|
|
40
|
-
m
|
|
41
|
-
mm
|
|
42
|
-
h
|
|
43
|
-
hh
|
|
44
|
-
d
|
|
45
|
-
dd
|
|
46
|
-
M
|
|
47
|
-
MM
|
|
48
|
-
y
|
|
49
|
-
yy
|
|
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
|
|
62
|
+
ordinal: function (number) {
|
|
53
63
|
return number + ' වැනි';
|
|
54
64
|
},
|
|
55
|
-
meridiemParse
|
|
56
|
-
isPM
|
|
65
|
+
meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
|
|
66
|
+
isPM: function (input) {
|
|
57
67
|
return input === 'ප.ව.' || input === 'පස් වරු';
|
|
58
68
|
},
|
|
59
|
-
meridiem
|
|
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 =
|
|
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
|
|
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':
|
|
20
|
-
return
|
|
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
|
-
|
|
28
|
-
|
|
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
|
-
|
|
37
|
-
|
|
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
|
-
|
|
46
|
-
|
|
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
|
-
|
|
55
|
-
|
|
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
|
-
|
|
64
|
-
|
|
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
|
|
78
|
-
monthsShort
|
|
79
|
-
weekdays
|
|
80
|
-
weekdaysShort
|
|
81
|
-
weekdaysMin
|
|
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
|
|
85
|
-
L
|
|
86
|
-
LL
|
|
87
|
-
LLL
|
|
88
|
-
LLLL
|
|
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
|
|
131
|
-
past
|
|
132
|
-
s
|
|
133
|
-
ss
|
|
134
|
-
m
|
|
135
|
-
mm
|
|
136
|
-
h
|
|
137
|
-
hh
|
|
138
|
-
d
|
|
139
|
-
dd
|
|
140
|
-
M
|
|
141
|
-
MM
|
|
142
|
-
y
|
|
143
|
-
yy
|
|
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
|
|
147
|
-
week
|
|
148
|
-
dow
|
|
149
|
-
doy
|
|
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
|
|
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
|
|
95
|
-
|
|
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
|
|
98
|
-
weekdaysShort
|
|
99
|
-
weekdaysMin
|
|
100
|
-
weekdaysParseExact
|
|
101
|
-
longDateFormat
|
|
102
|
-
LT
|
|
103
|
-
LTS
|
|
104
|
-
L
|
|
105
|
-
LL
|
|
106
|
-
LLL
|
|
107
|
-
LLLL
|
|
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
|
|
111
|
-
nextDay
|
|
119
|
+
calendar: {
|
|
120
|
+
sameDay: '[danes ob] LT',
|
|
121
|
+
nextDay: '[jutri ob] LT',
|
|
112
122
|
|
|
113
|
-
nextWeek
|
|
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
|
|
129
|
-
lastWeek
|
|
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
|
|
154
|
+
sameElse: 'L',
|
|
145
155
|
},
|
|
146
|
-
relativeTime
|
|
147
|
-
future
|
|
148
|
-
past
|
|
149
|
-
s
|
|
150
|
-
ss
|
|
151
|
-
m
|
|
152
|
-
mm
|
|
153
|
-
h
|
|
154
|
-
hh
|
|
155
|
-
d
|
|
156
|
-
dd
|
|
157
|
-
M
|
|
158
|
-
MM
|
|
159
|
-
y
|
|
160
|
-
yy
|
|
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
|
|
164
|
-
week
|
|
165
|
-
dow
|
|
166
|
-
doy
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
31
|
+
meridiem: function (hours, minutes, isLower) {
|
|
23
32
|
return hours < 12 ? 'PD' : 'MD';
|
|
24
33
|
},
|
|
25
|
-
longDateFormat
|
|
26
|
-
LT
|
|
27
|
-
LTS
|
|
28
|
-
L
|
|
29
|
-
LL
|
|
30
|
-
LLL
|
|
31
|
-
LLLL
|
|
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
|
|
35
|
-
nextDay
|
|
36
|
-
nextWeek
|
|
37
|
-
lastDay
|
|
38
|
-
lastWeek
|
|
39
|
-
sameElse
|
|
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
|
|
43
|
-
past
|
|
44
|
-
s
|
|
45
|
-
ss
|
|
46
|
-
m
|
|
47
|
-
mm
|
|
48
|
-
h
|
|
49
|
-
hh
|
|
50
|
-
d
|
|
51
|
-
dd
|
|
52
|
-
M
|
|
53
|
-
MM
|
|
54
|
-
y
|
|
55
|
-
yy
|
|
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
|
|
59
|
-
week
|
|
60
|
-
dow
|
|
61
|
-
doy
|
|
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;
|