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 : Cambodian [km]
|
|
3
|
+
//! author : Kruy Vanna : https://github.com/kruyvanna
|
|
2
4
|
|
|
3
5
|
;(function (global, factory) {
|
|
4
6
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
@@ -7,38 +9,41 @@
|
|
|
7
9
|
factory(global.moment)
|
|
8
10
|
}(this, (function (moment) { 'use strict';
|
|
9
11
|
|
|
12
|
+
//! moment.js locale configuration
|
|
10
13
|
|
|
11
14
|
var symbolMap = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
1: '១',
|
|
16
|
+
2: '២',
|
|
17
|
+
3: '៣',
|
|
18
|
+
4: '៤',
|
|
19
|
+
5: '៥',
|
|
20
|
+
6: '៦',
|
|
21
|
+
7: '៧',
|
|
22
|
+
8: '៨',
|
|
23
|
+
9: '៩',
|
|
24
|
+
0: '០',
|
|
25
|
+
},
|
|
26
|
+
numberMap = {
|
|
27
|
+
'១': '1',
|
|
28
|
+
'២': '2',
|
|
29
|
+
'៣': '3',
|
|
30
|
+
'៤': '4',
|
|
31
|
+
'៥': '5',
|
|
32
|
+
'៦': '6',
|
|
33
|
+
'៧': '7',
|
|
34
|
+
'៨': '8',
|
|
35
|
+
'៩': '9',
|
|
36
|
+
'០': '0',
|
|
37
|
+
};
|
|
34
38
|
|
|
35
39
|
var km = moment.defineLocale('km', {
|
|
36
40
|
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
|
|
37
41
|
'_'
|
|
38
42
|
),
|
|
39
|
-
monthsShort:
|
|
40
|
-
'_'
|
|
41
|
-
|
|
43
|
+
monthsShort:
|
|
44
|
+
'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
|
|
45
|
+
'_'
|
|
46
|
+
),
|
|
42
47
|
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
|
|
43
48
|
weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
|
|
44
49
|
weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
|
|
@@ -49,7 +54,7 @@
|
|
|
49
54
|
L: 'DD/MM/YYYY',
|
|
50
55
|
LL: 'D MMMM YYYY',
|
|
51
56
|
LLL: 'D MMMM YYYY HH:mm',
|
|
52
|
-
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
|
57
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
53
58
|
},
|
|
54
59
|
meridiemParse: /ព្រឹក|ល្ងាច/,
|
|
55
60
|
isPM: function (input) {
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
nextWeek: 'dddd [ម៉ោង] LT',
|
|
69
74
|
lastDay: '[ម្សិលមិញ ម៉ោង] LT',
|
|
70
75
|
lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
|
|
71
|
-
sameElse: 'L'
|
|
76
|
+
sameElse: 'L',
|
|
72
77
|
},
|
|
73
78
|
relativeTime: {
|
|
74
79
|
future: '%sទៀត',
|
|
@@ -84,10 +89,10 @@
|
|
|
84
89
|
M: 'មួយខែ',
|
|
85
90
|
MM: '%d ខែ',
|
|
86
91
|
y: 'មួយឆ្នាំ',
|
|
87
|
-
yy: '%d ឆ្នាំ'
|
|
92
|
+
yy: '%d ឆ្នាំ',
|
|
88
93
|
},
|
|
89
|
-
dayOfMonthOrdinalParse
|
|
90
|
-
ordinal
|
|
94
|
+
dayOfMonthOrdinalParse: /ទី\d{1,2}/,
|
|
95
|
+
ordinal: 'ទី%d',
|
|
91
96
|
preparse: function (string) {
|
|
92
97
|
return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
|
|
93
98
|
return numberMap[match];
|
|
@@ -100,8 +105,8 @@
|
|
|
100
105
|
},
|
|
101
106
|
week: {
|
|
102
107
|
dow: 1, // Monday is the first day of the week.
|
|
103
|
-
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
|
104
|
-
}
|
|
108
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
109
|
+
},
|
|
105
110
|
});
|
|
106
111
|
|
|
107
112
|
return km;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
//! moment.js locale configuration
|
|
2
|
+
//! locale : Kannada [kn]
|
|
3
|
+
//! author : Rajeev Naik : https://github.com/rajeevnaikte
|
|
2
4
|
|
|
3
5
|
;(function (global, factory) {
|
|
4
6
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
@@ -7,70 +9,78 @@
|
|
|
7
9
|
factory(global.moment)
|
|
8
10
|
}(this, (function (moment) { 'use strict';
|
|
9
11
|
|
|
12
|
+
//! moment.js locale configuration
|
|
10
13
|
|
|
11
14
|
var symbolMap = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
1: '೧',
|
|
16
|
+
2: '೨',
|
|
17
|
+
3: '೩',
|
|
18
|
+
4: '೪',
|
|
19
|
+
5: '೫',
|
|
20
|
+
6: '೬',
|
|
21
|
+
7: '೭',
|
|
22
|
+
8: '೮',
|
|
23
|
+
9: '೯',
|
|
24
|
+
0: '೦',
|
|
25
|
+
},
|
|
26
|
+
numberMap = {
|
|
27
|
+
'೧': '1',
|
|
28
|
+
'೨': '2',
|
|
29
|
+
'೩': '3',
|
|
30
|
+
'೪': '4',
|
|
31
|
+
'೫': '5',
|
|
32
|
+
'೬': '6',
|
|
33
|
+
'೭': '7',
|
|
34
|
+
'೮': '8',
|
|
35
|
+
'೯': '9',
|
|
36
|
+
'೦': '0',
|
|
37
|
+
};
|
|
35
38
|
|
|
36
39
|
var kn = moment.defineLocale('kn', {
|
|
37
|
-
months
|
|
38
|
-
|
|
40
|
+
months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
|
|
41
|
+
'_'
|
|
42
|
+
),
|
|
43
|
+
monthsShort:
|
|
44
|
+
'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
|
|
45
|
+
'_'
|
|
46
|
+
),
|
|
39
47
|
monthsParseExact: true,
|
|
40
|
-
weekdays
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
|
|
49
|
+
'_'
|
|
50
|
+
),
|
|
51
|
+
weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
|
|
52
|
+
weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
|
|
53
|
+
longDateFormat: {
|
|
54
|
+
LT: 'A h:mm',
|
|
55
|
+
LTS: 'A h:mm:ss',
|
|
56
|
+
L: 'DD/MM/YYYY',
|
|
57
|
+
LL: 'D MMMM YYYY',
|
|
58
|
+
LLL: 'D MMMM YYYY, A h:mm',
|
|
59
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm',
|
|
50
60
|
},
|
|
51
|
-
calendar
|
|
52
|
-
sameDay
|
|
53
|
-
nextDay
|
|
54
|
-
nextWeek
|
|
55
|
-
lastDay
|
|
56
|
-
lastWeek
|
|
57
|
-
sameElse
|
|
61
|
+
calendar: {
|
|
62
|
+
sameDay: '[ಇಂದು] LT',
|
|
63
|
+
nextDay: '[ನಾಳೆ] LT',
|
|
64
|
+
nextWeek: 'dddd, LT',
|
|
65
|
+
lastDay: '[ನಿನ್ನೆ] LT',
|
|
66
|
+
lastWeek: '[ಕೊನೆಯ] dddd, LT',
|
|
67
|
+
sameElse: 'L',
|
|
58
68
|
},
|
|
59
|
-
relativeTime
|
|
60
|
-
future
|
|
61
|
-
past
|
|
62
|
-
s
|
|
63
|
-
ss
|
|
64
|
-
m
|
|
65
|
-
mm
|
|
66
|
-
h
|
|
67
|
-
hh
|
|
68
|
-
d
|
|
69
|
-
dd
|
|
70
|
-
M
|
|
71
|
-
MM
|
|
72
|
-
y
|
|
73
|
-
yy
|
|
69
|
+
relativeTime: {
|
|
70
|
+
future: '%s ನಂತರ',
|
|
71
|
+
past: '%s ಹಿಂದೆ',
|
|
72
|
+
s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
|
|
73
|
+
ss: '%d ಸೆಕೆಂಡುಗಳು',
|
|
74
|
+
m: 'ಒಂದು ನಿಮಿಷ',
|
|
75
|
+
mm: '%d ನಿಮಿಷ',
|
|
76
|
+
h: 'ಒಂದು ಗಂಟೆ',
|
|
77
|
+
hh: '%d ಗಂಟೆ',
|
|
78
|
+
d: 'ಒಂದು ದಿನ',
|
|
79
|
+
dd: '%d ದಿನ',
|
|
80
|
+
M: 'ಒಂದು ತಿಂಗಳು',
|
|
81
|
+
MM: '%d ತಿಂಗಳು',
|
|
82
|
+
y: 'ಒಂದು ವರ್ಷ',
|
|
83
|
+
yy: '%d ವರ್ಷ',
|
|
74
84
|
},
|
|
75
85
|
preparse: function (string) {
|
|
76
86
|
return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
|
|
@@ -83,7 +93,7 @@
|
|
|
83
93
|
});
|
|
84
94
|
},
|
|
85
95
|
meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
|
|
86
|
-
meridiemHour
|
|
96
|
+
meridiemHour: function (hour, meridiem) {
|
|
87
97
|
if (hour === 12) {
|
|
88
98
|
hour = 0;
|
|
89
99
|
}
|
|
@@ -97,7 +107,7 @@
|
|
|
97
107
|
return hour + 12;
|
|
98
108
|
}
|
|
99
109
|
},
|
|
100
|
-
meridiem
|
|
110
|
+
meridiem: function (hour, minute, isLower) {
|
|
101
111
|
if (hour < 4) {
|
|
102
112
|
return 'ರಾತ್ರಿ';
|
|
103
113
|
} else if (hour < 10) {
|
|
@@ -111,13 +121,13 @@
|
|
|
111
121
|
}
|
|
112
122
|
},
|
|
113
123
|
dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
|
|
114
|
-
ordinal
|
|
124
|
+
ordinal: function (number) {
|
|
115
125
|
return number + 'ನೇ';
|
|
116
126
|
},
|
|
117
|
-
week
|
|
118
|
-
dow
|
|
119
|
-
doy
|
|
120
|
-
}
|
|
127
|
+
week: {
|
|
128
|
+
dow: 0, // Sunday is the first day of the week.
|
|
129
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
|
130
|
+
},
|
|
121
131
|
});
|
|
122
132
|
|
|
123
133
|
return kn;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
//! moment.js locale configuration
|
|
2
|
+
//! locale : Korean [ko]
|
|
3
|
+
//! author : Kyungwook, Park : https://github.com/kyungw00k
|
|
4
|
+
//! author : Jeeeyul Lee <jeeeyul@gmail.com>
|
|
2
5
|
|
|
3
6
|
;(function (global, factory) {
|
|
4
7
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
@@ -7,51 +10,54 @@
|
|
|
7
10
|
factory(global.moment)
|
|
8
11
|
}(this, (function (moment) { 'use strict';
|
|
9
12
|
|
|
13
|
+
//! moment.js locale configuration
|
|
10
14
|
|
|
11
15
|
var ko = moment.defineLocale('ko', {
|
|
12
|
-
months
|
|
13
|
-
monthsShort
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
17
|
+
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
|
|
18
|
+
'_'
|
|
19
|
+
),
|
|
20
|
+
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
|
|
21
|
+
weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
|
|
22
|
+
weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
|
|
23
|
+
longDateFormat: {
|
|
24
|
+
LT: 'A h:mm',
|
|
25
|
+
LTS: 'A h:mm:ss',
|
|
26
|
+
L: 'YYYY.MM.DD.',
|
|
27
|
+
LL: 'YYYY년 MMMM D일',
|
|
28
|
+
LLL: 'YYYY년 MMMM D일 A h:mm',
|
|
29
|
+
LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
|
|
30
|
+
l: 'YYYY.MM.DD.',
|
|
31
|
+
ll: 'YYYY년 MMMM D일',
|
|
32
|
+
lll: 'YYYY년 MMMM D일 A h:mm',
|
|
33
|
+
llll: 'YYYY년 MMMM D일 dddd A h:mm',
|
|
28
34
|
},
|
|
29
|
-
calendar
|
|
30
|
-
sameDay
|
|
31
|
-
nextDay
|
|
32
|
-
nextWeek
|
|
33
|
-
lastDay
|
|
34
|
-
lastWeek
|
|
35
|
-
sameElse
|
|
35
|
+
calendar: {
|
|
36
|
+
sameDay: '오늘 LT',
|
|
37
|
+
nextDay: '내일 LT',
|
|
38
|
+
nextWeek: 'dddd LT',
|
|
39
|
+
lastDay: '어제 LT',
|
|
40
|
+
lastWeek: '지난주 dddd LT',
|
|
41
|
+
sameElse: 'L',
|
|
36
42
|
},
|
|
37
|
-
relativeTime
|
|
38
|
-
future
|
|
39
|
-
past
|
|
40
|
-
s
|
|
41
|
-
ss
|
|
42
|
-
m
|
|
43
|
-
mm
|
|
44
|
-
h
|
|
45
|
-
hh
|
|
46
|
-
d
|
|
47
|
-
dd
|
|
48
|
-
M
|
|
49
|
-
MM
|
|
50
|
-
y
|
|
51
|
-
yy
|
|
43
|
+
relativeTime: {
|
|
44
|
+
future: '%s 후',
|
|
45
|
+
past: '%s 전',
|
|
46
|
+
s: '몇 초',
|
|
47
|
+
ss: '%d초',
|
|
48
|
+
m: '1분',
|
|
49
|
+
mm: '%d분',
|
|
50
|
+
h: '한 시간',
|
|
51
|
+
hh: '%d시간',
|
|
52
|
+
d: '하루',
|
|
53
|
+
dd: '%d일',
|
|
54
|
+
M: '한 달',
|
|
55
|
+
MM: '%d달',
|
|
56
|
+
y: '일 년',
|
|
57
|
+
yy: '%d년',
|
|
52
58
|
},
|
|
53
|
-
dayOfMonthOrdinalParse
|
|
54
|
-
ordinal
|
|
59
|
+
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
|
|
60
|
+
ordinal: function (number, period) {
|
|
55
61
|
switch (period) {
|
|
56
62
|
case 'd':
|
|
57
63
|
case 'D':
|
|
@@ -66,13 +72,13 @@
|
|
|
66
72
|
return number;
|
|
67
73
|
}
|
|
68
74
|
},
|
|
69
|
-
meridiemParse
|
|
70
|
-
isPM
|
|
75
|
+
meridiemParse: /오전|오후/,
|
|
76
|
+
isPM: function (token) {
|
|
71
77
|
return token === '오후';
|
|
72
78
|
},
|
|
73
|
-
meridiem
|
|
79
|
+
meridiem: function (hour, minute, isUpper) {
|
|
74
80
|
return hour < 12 ? '오전' : '오후';
|
|
75
|
-
}
|
|
81
|
+
},
|
|
76
82
|
});
|
|
77
83
|
|
|
78
84
|
return ko;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : Northern Kurdish [ku-kmr]
|
|
3
|
+
//! authors : Mazlum Özdogan : https://github.com/mergehez
|
|
4
|
+
|
|
5
|
+
;(function (global, factory) {
|
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
7
|
+
&& typeof require === 'function' ? factory(require('/alloy/moment')) :
|
|
8
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
9
|
+
factory(global.moment)
|
|
10
|
+
}(this, (function (moment) { 'use strict';
|
|
11
|
+
|
|
12
|
+
//! moment.js locale configuration
|
|
13
|
+
|
|
14
|
+
function processRelativeTime(num, withoutSuffix, key, isFuture) {
|
|
15
|
+
var format = {
|
|
16
|
+
s: ['çend sanîye', 'çend sanîyeyan'],
|
|
17
|
+
ss: [num + ' sanîye', num + ' sanîyeyan'],
|
|
18
|
+
m: ['deqîqeyek', 'deqîqeyekê'],
|
|
19
|
+
mm: [num + ' deqîqe', num + ' deqîqeyan'],
|
|
20
|
+
h: ['saetek', 'saetekê'],
|
|
21
|
+
hh: [num + ' saet', num + ' saetan'],
|
|
22
|
+
d: ['rojek', 'rojekê'],
|
|
23
|
+
dd: [num + ' roj', num + ' rojan'],
|
|
24
|
+
w: ['hefteyek', 'hefteyekê'],
|
|
25
|
+
ww: [num + ' hefte', num + ' hefteyan'],
|
|
26
|
+
M: ['mehek', 'mehekê'],
|
|
27
|
+
MM: [num + ' meh', num + ' mehan'],
|
|
28
|
+
y: ['salek', 'salekê'],
|
|
29
|
+
yy: [num + ' sal', num + ' salan'],
|
|
30
|
+
};
|
|
31
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
|
32
|
+
}
|
|
33
|
+
// function obliqueNumSuffix(num) {
|
|
34
|
+
// if(num.includes(':'))
|
|
35
|
+
// num = parseInt(num.split(':')[0]);
|
|
36
|
+
// else
|
|
37
|
+
// num = parseInt(num);
|
|
38
|
+
// return num == 0 || num % 10 == 1 ? 'ê'
|
|
39
|
+
// : (num > 10 && num % 10 == 0 ? 'î' : 'an');
|
|
40
|
+
// }
|
|
41
|
+
function ezafeNumSuffix(num) {
|
|
42
|
+
num = '' + num;
|
|
43
|
+
var l = num.substring(num.length - 1),
|
|
44
|
+
ll = num.length > 1 ? num.substring(num.length - 2) : '';
|
|
45
|
+
if (
|
|
46
|
+
!(ll == 12 || ll == 13) &&
|
|
47
|
+
(l == '2' || l == '3' || ll == '50' || l == '70' || l == '80')
|
|
48
|
+
)
|
|
49
|
+
return 'yê';
|
|
50
|
+
return 'ê';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var kuKmr = moment.defineLocale('ku-kmr', {
|
|
54
|
+
// According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
|
|
55
|
+
// this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn'
|
|
56
|
+
// But the names below are more well known and handy
|
|
57
|
+
months: 'Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar'.split(
|
|
58
|
+
'_'
|
|
59
|
+
),
|
|
60
|
+
monthsShort: 'Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber'.split('_'),
|
|
61
|
+
monthsParseExact: true,
|
|
62
|
+
weekdays: 'Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî'.split('_'),
|
|
63
|
+
weekdaysShort: 'Yek_Du_Sê_Çar_Pên_În_Şem'.split('_'),
|
|
64
|
+
weekdaysMin: 'Ye_Du_Sê_Ça_Pê_În_Şe'.split('_'),
|
|
65
|
+
meridiem: function (hours, minutes, isLower) {
|
|
66
|
+
if (hours < 12) {
|
|
67
|
+
return isLower ? 'bn' : 'BN';
|
|
68
|
+
} else {
|
|
69
|
+
return isLower ? 'pn' : 'PN';
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
meridiemParse: /bn|BN|pn|PN/,
|
|
73
|
+
longDateFormat: {
|
|
74
|
+
LT: 'HH:mm',
|
|
75
|
+
LTS: 'HH:mm:ss',
|
|
76
|
+
L: 'DD.MM.YYYY',
|
|
77
|
+
LL: 'Do MMMM[a] YYYY[an]',
|
|
78
|
+
LLL: 'Do MMMM[a] YYYY[an] HH:mm',
|
|
79
|
+
LLLL: 'dddd, Do MMMM[a] YYYY[an] HH:mm',
|
|
80
|
+
ll: 'Do MMM[.] YYYY[an]',
|
|
81
|
+
lll: 'Do MMM[.] YYYY[an] HH:mm',
|
|
82
|
+
llll: 'ddd[.], Do MMM[.] YYYY[an] HH:mm',
|
|
83
|
+
},
|
|
84
|
+
calendar: {
|
|
85
|
+
sameDay: '[Îro di saet] LT [de]',
|
|
86
|
+
nextDay: '[Sibê di saet] LT [de]',
|
|
87
|
+
nextWeek: 'dddd [di saet] LT [de]',
|
|
88
|
+
lastDay: '[Duh di saet] LT [de]',
|
|
89
|
+
lastWeek: 'dddd[a borî di saet] LT [de]',
|
|
90
|
+
sameElse: 'L',
|
|
91
|
+
},
|
|
92
|
+
relativeTime: {
|
|
93
|
+
future: 'di %s de',
|
|
94
|
+
past: 'berî %s',
|
|
95
|
+
s: processRelativeTime,
|
|
96
|
+
ss: processRelativeTime,
|
|
97
|
+
m: processRelativeTime,
|
|
98
|
+
mm: processRelativeTime,
|
|
99
|
+
h: processRelativeTime,
|
|
100
|
+
hh: processRelativeTime,
|
|
101
|
+
d: processRelativeTime,
|
|
102
|
+
dd: processRelativeTime,
|
|
103
|
+
w: processRelativeTime,
|
|
104
|
+
ww: processRelativeTime,
|
|
105
|
+
M: processRelativeTime,
|
|
106
|
+
MM: processRelativeTime,
|
|
107
|
+
y: processRelativeTime,
|
|
108
|
+
yy: processRelativeTime,
|
|
109
|
+
},
|
|
110
|
+
dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/,
|
|
111
|
+
ordinal: function (num, period) {
|
|
112
|
+
var p = period.toLowerCase();
|
|
113
|
+
if (p.includes('w') || p.includes('m')) return num + '.';
|
|
114
|
+
|
|
115
|
+
return num + ezafeNumSuffix(num);
|
|
116
|
+
},
|
|
117
|
+
week: {
|
|
118
|
+
dow: 1, // Monday is the first day of the week.
|
|
119
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
return kuKmr;
|
|
124
|
+
|
|
125
|
+
})));
|