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 : Arabic (Tunisia) [ar-tn]
|
|
3
|
+
//! author : Nader Toukabri : https://github.com/naderio
|
|
2
4
|
|
|
3
5
|
;(function (global, factory) {
|
|
4
6
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
@@ -7,21 +9,27 @@
|
|
|
7
9
|
factory(global.moment)
|
|
8
10
|
}(this, (function (moment) { 'use strict';
|
|
9
11
|
|
|
12
|
+
//! moment.js locale configuration
|
|
10
13
|
|
|
11
14
|
var arTn = moment.defineLocale('ar-tn', {
|
|
12
|
-
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
|
13
|
-
|
|
15
|
+
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
|
16
|
+
'_'
|
|
17
|
+
),
|
|
18
|
+
monthsShort:
|
|
19
|
+
'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
|
|
20
|
+
'_'
|
|
21
|
+
),
|
|
14
22
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
|
15
23
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
|
16
24
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
|
17
|
-
weekdaysParseExact
|
|
25
|
+
weekdaysParseExact: true,
|
|
18
26
|
longDateFormat: {
|
|
19
27
|
LT: 'HH:mm',
|
|
20
28
|
LTS: 'HH:mm:ss',
|
|
21
29
|
L: 'DD/MM/YYYY',
|
|
22
30
|
LL: 'D MMMM YYYY',
|
|
23
31
|
LLL: 'D MMMM YYYY HH:mm',
|
|
24
|
-
LLLL: 'dddd D MMMM YYYY HH:mm'
|
|
32
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
|
25
33
|
},
|
|
26
34
|
calendar: {
|
|
27
35
|
sameDay: '[اليوم على الساعة] LT',
|
|
@@ -29,13 +37,13 @@
|
|
|
29
37
|
nextWeek: 'dddd [على الساعة] LT',
|
|
30
38
|
lastDay: '[أمس على الساعة] LT',
|
|
31
39
|
lastWeek: 'dddd [على الساعة] LT',
|
|
32
|
-
sameElse: 'L'
|
|
40
|
+
sameElse: 'L',
|
|
33
41
|
},
|
|
34
42
|
relativeTime: {
|
|
35
43
|
future: 'في %s',
|
|
36
44
|
past: 'منذ %s',
|
|
37
45
|
s: 'ثوان',
|
|
38
|
-
ss
|
|
46
|
+
ss: '%d ثانية',
|
|
39
47
|
m: 'دقيقة',
|
|
40
48
|
mm: '%d دقائق',
|
|
41
49
|
h: 'ساعة',
|
|
@@ -45,12 +53,12 @@
|
|
|
45
53
|
M: 'شهر',
|
|
46
54
|
MM: '%d أشهر',
|
|
47
55
|
y: 'سنة',
|
|
48
|
-
yy: '%d سنوات'
|
|
56
|
+
yy: '%d سنوات',
|
|
49
57
|
},
|
|
50
58
|
week: {
|
|
51
59
|
dow: 1, // Monday is the first day of the week.
|
|
52
|
-
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
|
53
|
-
}
|
|
60
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
61
|
+
},
|
|
54
62
|
});
|
|
55
63
|
|
|
56
64
|
return arTn;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
//! moment.js locale configuration
|
|
2
|
+
//! locale : Arabic [ar]
|
|
3
|
+
//! author : Abdel Said: https://github.com/abdelsaid
|
|
4
|
+
//! author : Ahmed Elkhatib
|
|
5
|
+
//! author : forabi https://github.com/forabi
|
|
2
6
|
|
|
3
7
|
;(function (global, factory) {
|
|
4
8
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
@@ -7,126 +11,188 @@
|
|
|
7
11
|
factory(global.moment)
|
|
8
12
|
}(this, (function (moment) { 'use strict';
|
|
9
13
|
|
|
14
|
+
//! moment.js locale configuration
|
|
10
15
|
|
|
11
16
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
17
|
+
1: '١',
|
|
18
|
+
2: '٢',
|
|
19
|
+
3: '٣',
|
|
20
|
+
4: '٤',
|
|
21
|
+
5: '٥',
|
|
22
|
+
6: '٦',
|
|
23
|
+
7: '٧',
|
|
24
|
+
8: '٨',
|
|
25
|
+
9: '٩',
|
|
26
|
+
0: '٠',
|
|
27
|
+
},
|
|
28
|
+
numberMap = {
|
|
29
|
+
'١': '1',
|
|
30
|
+
'٢': '2',
|
|
31
|
+
'٣': '3',
|
|
32
|
+
'٤': '4',
|
|
33
|
+
'٥': '5',
|
|
34
|
+
'٦': '6',
|
|
35
|
+
'٧': '7',
|
|
36
|
+
'٨': '8',
|
|
37
|
+
'٩': '9',
|
|
38
|
+
'٠': '0',
|
|
39
|
+
},
|
|
40
|
+
pluralForm = function (n) {
|
|
41
|
+
return n === 0
|
|
42
|
+
? 0
|
|
43
|
+
: n === 1
|
|
44
|
+
? 1
|
|
45
|
+
: n === 2
|
|
46
|
+
? 2
|
|
47
|
+
: n % 100 >= 3 && n % 100 <= 10
|
|
48
|
+
? 3
|
|
49
|
+
: n % 100 >= 11
|
|
50
|
+
? 4
|
|
51
|
+
: 5;
|
|
52
|
+
},
|
|
53
|
+
plurals = {
|
|
54
|
+
s: [
|
|
55
|
+
'أقل من ثانية',
|
|
56
|
+
'ثانية واحدة',
|
|
57
|
+
['ثانيتان', 'ثانيتين'],
|
|
58
|
+
'%d ثوان',
|
|
59
|
+
'%d ثانية',
|
|
60
|
+
'%d ثانية',
|
|
61
|
+
],
|
|
62
|
+
m: [
|
|
63
|
+
'أقل من دقيقة',
|
|
64
|
+
'دقيقة واحدة',
|
|
65
|
+
['دقيقتان', 'دقيقتين'],
|
|
66
|
+
'%d دقائق',
|
|
67
|
+
'%d دقيقة',
|
|
68
|
+
'%d دقيقة',
|
|
69
|
+
],
|
|
70
|
+
h: [
|
|
71
|
+
'أقل من ساعة',
|
|
72
|
+
'ساعة واحدة',
|
|
73
|
+
['ساعتان', 'ساعتين'],
|
|
74
|
+
'%d ساعات',
|
|
75
|
+
'%d ساعة',
|
|
76
|
+
'%d ساعة',
|
|
77
|
+
],
|
|
78
|
+
d: [
|
|
79
|
+
'أقل من يوم',
|
|
80
|
+
'يوم واحد',
|
|
81
|
+
['يومان', 'يومين'],
|
|
82
|
+
'%d أيام',
|
|
83
|
+
'%d يومًا',
|
|
84
|
+
'%d يوم',
|
|
85
|
+
],
|
|
86
|
+
M: [
|
|
87
|
+
'أقل من شهر',
|
|
88
|
+
'شهر واحد',
|
|
89
|
+
['شهران', 'شهرين'],
|
|
90
|
+
'%d أشهر',
|
|
91
|
+
'%d شهرا',
|
|
92
|
+
'%d شهر',
|
|
93
|
+
],
|
|
94
|
+
y: [
|
|
95
|
+
'أقل من عام',
|
|
96
|
+
'عام واحد',
|
|
97
|
+
['عامان', 'عامين'],
|
|
98
|
+
'%d أعوام',
|
|
99
|
+
'%d عامًا',
|
|
100
|
+
'%d عام',
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
pluralize = function (u) {
|
|
104
|
+
return function (number, withoutSuffix, string, isFuture) {
|
|
105
|
+
var f = pluralForm(number),
|
|
106
|
+
str = plurals[u][pluralForm(number)];
|
|
107
|
+
if (f === 2) {
|
|
108
|
+
str = str[withoutSuffix ? 0 : 1];
|
|
109
|
+
}
|
|
110
|
+
return str.replace(/%d/i, number);
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
months = [
|
|
114
|
+
'يناير',
|
|
115
|
+
'فبراير',
|
|
116
|
+
'مارس',
|
|
117
|
+
'أبريل',
|
|
118
|
+
'مايو',
|
|
119
|
+
'يونيو',
|
|
120
|
+
'يوليو',
|
|
121
|
+
'أغسطس',
|
|
122
|
+
'سبتمبر',
|
|
123
|
+
'أكتوبر',
|
|
124
|
+
'نوفمبر',
|
|
125
|
+
'ديسمبر',
|
|
126
|
+
];
|
|
65
127
|
|
|
66
128
|
var ar = moment.defineLocale('ar', {
|
|
67
|
-
months
|
|
68
|
-
monthsShort
|
|
69
|
-
weekdays
|
|
70
|
-
weekdaysShort
|
|
71
|
-
weekdaysMin
|
|
72
|
-
weekdaysParseExact
|
|
73
|
-
longDateFormat
|
|
74
|
-
LT
|
|
75
|
-
LTS
|
|
76
|
-
L
|
|
77
|
-
LL
|
|
78
|
-
LLL
|
|
79
|
-
LLLL
|
|
129
|
+
months: months,
|
|
130
|
+
monthsShort: months,
|
|
131
|
+
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
|
132
|
+
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
|
133
|
+
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
|
134
|
+
weekdaysParseExact: true,
|
|
135
|
+
longDateFormat: {
|
|
136
|
+
LT: 'HH:mm',
|
|
137
|
+
LTS: 'HH:mm:ss',
|
|
138
|
+
L: 'D/\u200FM/\u200FYYYY',
|
|
139
|
+
LL: 'D MMMM YYYY',
|
|
140
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
141
|
+
LLLL: 'dddd D MMMM YYYY HH:mm',
|
|
80
142
|
},
|
|
81
143
|
meridiemParse: /ص|م/,
|
|
82
|
-
isPM
|
|
144
|
+
isPM: function (input) {
|
|
83
145
|
return 'م' === input;
|
|
84
146
|
},
|
|
85
|
-
meridiem
|
|
147
|
+
meridiem: function (hour, minute, isLower) {
|
|
86
148
|
if (hour < 12) {
|
|
87
149
|
return 'ص';
|
|
88
150
|
} else {
|
|
89
151
|
return 'م';
|
|
90
152
|
}
|
|
91
153
|
},
|
|
92
|
-
calendar
|
|
154
|
+
calendar: {
|
|
93
155
|
sameDay: '[اليوم عند الساعة] LT',
|
|
94
156
|
nextDay: '[غدًا عند الساعة] LT',
|
|
95
157
|
nextWeek: 'dddd [عند الساعة] LT',
|
|
96
158
|
lastDay: '[أمس عند الساعة] LT',
|
|
97
159
|
lastWeek: 'dddd [عند الساعة] LT',
|
|
98
|
-
sameElse: 'L'
|
|
160
|
+
sameElse: 'L',
|
|
99
161
|
},
|
|
100
|
-
relativeTime
|
|
101
|
-
future
|
|
102
|
-
past
|
|
103
|
-
s
|
|
104
|
-
ss
|
|
105
|
-
m
|
|
106
|
-
mm
|
|
107
|
-
h
|
|
108
|
-
hh
|
|
109
|
-
d
|
|
110
|
-
dd
|
|
111
|
-
M
|
|
112
|
-
MM
|
|
113
|
-
y
|
|
114
|
-
yy
|
|
162
|
+
relativeTime: {
|
|
163
|
+
future: 'بعد %s',
|
|
164
|
+
past: 'منذ %s',
|
|
165
|
+
s: pluralize('s'),
|
|
166
|
+
ss: pluralize('s'),
|
|
167
|
+
m: pluralize('m'),
|
|
168
|
+
mm: pluralize('m'),
|
|
169
|
+
h: pluralize('h'),
|
|
170
|
+
hh: pluralize('h'),
|
|
171
|
+
d: pluralize('d'),
|
|
172
|
+
dd: pluralize('d'),
|
|
173
|
+
M: pluralize('M'),
|
|
174
|
+
MM: pluralize('M'),
|
|
175
|
+
y: pluralize('y'),
|
|
176
|
+
yy: pluralize('y'),
|
|
115
177
|
},
|
|
116
178
|
preparse: function (string) {
|
|
117
|
-
return string
|
|
118
|
-
|
|
119
|
-
|
|
179
|
+
return string
|
|
180
|
+
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
|
181
|
+
return numberMap[match];
|
|
182
|
+
})
|
|
183
|
+
.replace(/،/g, ',');
|
|
120
184
|
},
|
|
121
185
|
postformat: function (string) {
|
|
122
|
-
return string
|
|
123
|
-
|
|
124
|
-
|
|
186
|
+
return string
|
|
187
|
+
.replace(/\d/g, function (match) {
|
|
188
|
+
return symbolMap[match];
|
|
189
|
+
})
|
|
190
|
+
.replace(/,/g, '،');
|
|
191
|
+
},
|
|
192
|
+
week: {
|
|
193
|
+
dow: 6, // Saturday is the first day of the week.
|
|
194
|
+
doy: 12, // The week that contains Jan 12th is the first week of the year.
|
|
125
195
|
},
|
|
126
|
-
week : {
|
|
127
|
-
dow : 6, // Saturday is the first day of the week.
|
|
128
|
-
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
|
129
|
-
}
|
|
130
196
|
});
|
|
131
197
|
|
|
132
198
|
return ar;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
//! moment.js locale configuration
|
|
2
|
+
//! locale : Azerbaijani [az]
|
|
3
|
+
//! author : topchiyev : https://github.com/topchiyev
|
|
2
4
|
|
|
3
5
|
;(function (global, factory) {
|
|
4
6
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
@@ -7,6 +9,7 @@
|
|
|
7
9
|
factory(global.moment)
|
|
8
10
|
}(this, (function (moment) { 'use strict';
|
|
9
11
|
|
|
12
|
+
//! moment.js locale configuration
|
|
10
13
|
|
|
11
14
|
var suffixes = {
|
|
12
15
|
1: '-inci',
|
|
@@ -26,53 +29,58 @@
|
|
|
26
29
|
10: '-uncu',
|
|
27
30
|
30: '-uncu',
|
|
28
31
|
60: '-ıncı',
|
|
29
|
-
90: '-ıncı'
|
|
32
|
+
90: '-ıncı',
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
var az = moment.defineLocale('az', {
|
|
33
|
-
months
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
|
|
37
|
+
'_'
|
|
38
|
+
),
|
|
39
|
+
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
|
40
|
+
weekdays:
|
|
41
|
+
'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
|
|
42
|
+
'_'
|
|
43
|
+
),
|
|
44
|
+
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
|
45
|
+
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
|
46
|
+
weekdaysParseExact: true,
|
|
47
|
+
longDateFormat: {
|
|
48
|
+
LT: 'HH:mm',
|
|
49
|
+
LTS: 'HH:mm:ss',
|
|
50
|
+
L: 'DD.MM.YYYY',
|
|
51
|
+
LL: 'D MMMM YYYY',
|
|
52
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
53
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
|
46
54
|
},
|
|
47
|
-
calendar
|
|
48
|
-
sameDay
|
|
49
|
-
nextDay
|
|
50
|
-
nextWeek
|
|
51
|
-
lastDay
|
|
52
|
-
lastWeek
|
|
53
|
-
sameElse
|
|
55
|
+
calendar: {
|
|
56
|
+
sameDay: '[bugün saat] LT',
|
|
57
|
+
nextDay: '[sabah saat] LT',
|
|
58
|
+
nextWeek: '[gələn həftə] dddd [saat] LT',
|
|
59
|
+
lastDay: '[dünən] LT',
|
|
60
|
+
lastWeek: '[keçən həftə] dddd [saat] LT',
|
|
61
|
+
sameElse: 'L',
|
|
54
62
|
},
|
|
55
|
-
relativeTime
|
|
56
|
-
future
|
|
57
|
-
past
|
|
58
|
-
s
|
|
59
|
-
ss
|
|
60
|
-
m
|
|
61
|
-
mm
|
|
62
|
-
h
|
|
63
|
-
hh
|
|
64
|
-
d
|
|
65
|
-
dd
|
|
66
|
-
M
|
|
67
|
-
MM
|
|
68
|
-
y
|
|
69
|
-
yy
|
|
63
|
+
relativeTime: {
|
|
64
|
+
future: '%s sonra',
|
|
65
|
+
past: '%s əvvəl',
|
|
66
|
+
s: 'bir neçə saniyə',
|
|
67
|
+
ss: '%d saniyə',
|
|
68
|
+
m: 'bir dəqiqə',
|
|
69
|
+
mm: '%d dəqiqə',
|
|
70
|
+
h: 'bir saat',
|
|
71
|
+
hh: '%d saat',
|
|
72
|
+
d: 'bir gün',
|
|
73
|
+
dd: '%d gün',
|
|
74
|
+
M: 'bir ay',
|
|
75
|
+
MM: '%d ay',
|
|
76
|
+
y: 'bir il',
|
|
77
|
+
yy: '%d il',
|
|
70
78
|
},
|
|
71
79
|
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
|
72
|
-
isPM
|
|
80
|
+
isPM: function (input) {
|
|
73
81
|
return /^(gündüz|axşam)$/.test(input);
|
|
74
82
|
},
|
|
75
|
-
meridiem
|
|
83
|
+
meridiem: function (hour, minute, isLower) {
|
|
76
84
|
if (hour < 4) {
|
|
77
85
|
return 'gecə';
|
|
78
86
|
} else if (hour < 12) {
|
|
@@ -84,19 +92,20 @@
|
|
|
84
92
|
}
|
|
85
93
|
},
|
|
86
94
|
dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
|
87
|
-
ordinal
|
|
88
|
-
if (number === 0) {
|
|
95
|
+
ordinal: function (number) {
|
|
96
|
+
if (number === 0) {
|
|
97
|
+
// special case for zero
|
|
89
98
|
return number + '-ıncı';
|
|
90
99
|
}
|
|
91
100
|
var a = number % 10,
|
|
92
|
-
b = number % 100 - a,
|
|
101
|
+
b = (number % 100) - a,
|
|
93
102
|
c = number >= 100 ? 100 : null;
|
|
94
103
|
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
|
95
104
|
},
|
|
96
|
-
week
|
|
97
|
-
dow
|
|
98
|
-
doy
|
|
99
|
-
}
|
|
105
|
+
week: {
|
|
106
|
+
dow: 1, // Monday is the first day of the week.
|
|
107
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
108
|
+
},
|
|
100
109
|
});
|
|
101
110
|
|
|
102
111
|
return az;
|