Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6a96a82

Browse files
committedSep 11, 2014
fix(ngLocale): Regenerate Locale Files
Fixes number formatting and symbols for many locales. Adds support for additional locales. Closes #8931 Closes #8583 Closes #7799
1 parent 871f321 commit 6a96a82

File tree

724 files changed

+32728
-1218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

724 files changed

+32728
-1218
lines changed
 

‎src/ngLocale/angular-locale_aa-dj.js

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
'use strict';
2+
angular.module("ngLocale", [], ["$provide", function($provide) {
3+
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
4+
function getDecimals(n) {
5+
n = n + '';
6+
var i = n.indexOf('.');
7+
return (i == -1) ? 0 : n.length - i - 1;
8+
}
9+
10+
function getVF(n, opt_precision) {
11+
var v = opt_precision;
12+
13+
if (undefined === v) {
14+
v = Math.min(getDecimals(n), 3);
15+
}
16+
17+
var base = Math.pow(10, v);
18+
var f = ((n * base) | 0) % base;
19+
return {v: v, f: f};
20+
}
21+
22+
$provide.value("$locale", {
23+
"DATETIME_FORMATS": {
24+
"AMPMS": [
25+
"saaku",
26+
"carra"
27+
],
28+
"DAY": [
29+
"Acaada",
30+
"Etleeni",
31+
"Talaata",
32+
"Arbaqa",
33+
"Kamiisi",
34+
"Gumqata",
35+
"Sabti"
36+
],
37+
"MONTH": [
38+
"Qunxa Garablu",
39+
"Kudo",
40+
"Ciggilta Kudo",
41+
"Agda Baxis",
42+
"Caxah Alsa",
43+
"Qasa Dirri",
44+
"Qado Dirri",
45+
"Leqeeni",
46+
"Waysu",
47+
"Diteli",
48+
"Ximoli",
49+
"Kaxxa Garablu"
50+
],
51+
"SHORTDAY": [
52+
"Aca",
53+
"Etl",
54+
"Tal",
55+
"Arb",
56+
"Kam",
57+
"Gum",
58+
"Sab"
59+
],
60+
"SHORTMONTH": [
61+
"Qun",
62+
"Nah",
63+
"Cig",
64+
"Agd",
65+
"Cax",
66+
"Qas",
67+
"Qad",
68+
"Leq",
69+
"Way",
70+
"Dit",
71+
"Xim",
72+
"Kax"
73+
],
74+
"fullDate": "EEEE, MMMM dd, y",
75+
"longDate": "dd MMMM y",
76+
"medium": "dd-MMM-y h:mm:ss a",
77+
"mediumDate": "dd-MMM-y",
78+
"mediumTime": "h:mm:ss a",
79+
"short": "dd/MM/yy h:mm a",
80+
"shortDate": "dd/MM/yy",
81+
"shortTime": "h:mm a"
82+
},
83+
"NUMBER_FORMATS": {
84+
"CURRENCY_SYM": "Fdj",
85+
"DECIMAL_SEP": ".",
86+
"GROUP_SEP": ",",
87+
"PATTERNS": [
88+
{
89+
"gSize": 3,
90+
"lgSize": 3,
91+
"maxFrac": 3,
92+
"minFrac": 0,
93+
"minInt": 1,
94+
"negPre": "-",
95+
"negSuf": "",
96+
"posPre": "",
97+
"posSuf": ""
98+
},
99+
{
100+
"gSize": 3,
101+
"lgSize": 3,
102+
"maxFrac": 2,
103+
"minFrac": 2,
104+
"minInt": 1,
105+
"negPre": "\u00a4-",
106+
"negSuf": "",
107+
"posPre": "\u00a4",
108+
"posSuf": ""
109+
}
110+
]
111+
},
112+
"id": "aa-dj",
113+
"pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
114+
});
115+
}]);

‎src/ngLocale/angular-locale_aa-er.js

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
'use strict';
2+
angular.module("ngLocale", [], ["$provide", function($provide) {
3+
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
4+
function getDecimals(n) {
5+
n = n + '';
6+
var i = n.indexOf('.');
7+
return (i == -1) ? 0 : n.length - i - 1;
8+
}
9+
10+
function getVF(n, opt_precision) {
11+
var v = opt_precision;
12+
13+
if (undefined === v) {
14+
v = Math.min(getDecimals(n), 3);
15+
}
16+
17+
var base = Math.pow(10, v);
18+
var f = ((n * base) | 0) % base;
19+
return {v: v, f: f};
20+
}
21+
22+
$provide.value("$locale", {
23+
"DATETIME_FORMATS": {
24+
"AMPMS": [
25+
"saaku",
26+
"carra"
27+
],
28+
"DAY": [
29+
"Acaada",
30+
"Etleeni",
31+
"Talaata",
32+
"Arbaqa",
33+
"Kamiisi",
34+
"Gumqata",
35+
"Sabti"
36+
],
37+
"MONTH": [
38+
"Qunxa Garablu",
39+
"Kudo",
40+
"Ciggilta Kudo",
41+
"Agda Baxis",
42+
"Caxah Alsa",
43+
"Qasa Dirri",
44+
"Qado Dirri",
45+
"Liiqen",
46+
"Waysu",
47+
"Diteli",
48+
"Ximoli",
49+
"Kaxxa Garablu"
50+
],
51+
"SHORTDAY": [
52+
"Aca",
53+
"Etl",
54+
"Tal",
55+
"Arb",
56+
"Kam",
57+
"Gum",
58+
"Sab"
59+
],
60+
"SHORTMONTH": [
61+
"Qun",
62+
"Nah",
63+
"Cig",
64+
"Agd",
65+
"Cax",
66+
"Qas",
67+
"Qad",
68+
"Leq",
69+
"Way",
70+
"Dit",
71+
"Xim",
72+
"Kax"
73+
],
74+
"fullDate": "EEEE, MMMM dd, y",
75+
"longDate": "dd MMMM y",
76+
"medium": "dd-MMM-y h:mm:ss a",
77+
"mediumDate": "dd-MMM-y",
78+
"mediumTime": "h:mm:ss a",
79+
"short": "dd/MM/yy h:mm a",
80+
"shortDate": "dd/MM/yy",
81+
"shortTime": "h:mm a"
82+
},
83+
"NUMBER_FORMATS": {
84+
"CURRENCY_SYM": "Nfk",
85+
"DECIMAL_SEP": ".",
86+
"GROUP_SEP": ",",
87+
"PATTERNS": [
88+
{
89+
"gSize": 3,
90+
"lgSize": 3,
91+
"maxFrac": 3,
92+
"minFrac": 0,
93+
"minInt": 1,
94+
"negPre": "-",
95+
"negSuf": "",
96+
"posPre": "",
97+
"posSuf": ""
98+
},
99+
{
100+
"gSize": 3,
101+
"lgSize": 3,
102+
"maxFrac": 2,
103+
"minFrac": 2,
104+
"minInt": 1,
105+
"negPre": "\u00a4-",
106+
"negSuf": "",
107+
"posPre": "\u00a4",
108+
"posSuf": ""
109+
}
110+
]
111+
},
112+
"id": "aa-er",
113+
"pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
114+
});
115+
}]);

0 commit comments

Comments
 (0)
This repository has been archived.