aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngLocale/angular-locale_sw-tz.js
diff options
context:
space:
mode:
authorLucas Galfasó2013-05-04 21:44:14 -0300
committerPete Bacon Darwin2013-07-03 22:51:31 +0100
commitb3d7a038d774d823ef861b76fb8bfa22e60a3df5 (patch)
tree87b10327d7ddb16ce636d04c81fafddb5b23219a /src/ngLocale/angular-locale_sw-tz.js
parentef5bc6c7c3336a64bae64fe9739cb1789907c906 (diff)
downloadangular.js-b3d7a038d774d823ef861b76fb8bfa22e60a3df5.tar.bz2
fix(i18n): Do not transform arrays into objects
Do not trasnform arrays into objects when generating the locale objects Add unit test for this check
Diffstat (limited to 'src/ngLocale/angular-locale_sw-tz.js')
-rw-r--r--src/ngLocale/angular-locale_sw-tz.js108
1 files changed, 54 insertions, 54 deletions
diff --git a/src/ngLocale/angular-locale_sw-tz.js b/src/ngLocale/angular-locale_sw-tz.js
index 9e1227d8..cd572b6f 100644
--- a/src/ngLocale/angular-locale_sw-tz.js
+++ b/src/ngLocale/angular-locale_sw-tz.js
@@ -2,56 +2,56 @@ angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
- "AMPMS": {
- "0": "asubuhi",
- "1": "alasiri"
- },
- "DAY": {
- "0": "Jumapili",
- "1": "Jumatatu",
- "2": "Jumanne",
- "3": "Jumatano",
- "4": "Alhamisi",
- "5": "Ijumaa",
- "6": "Jumamosi"
- },
- "MONTH": {
- "0": "Januari",
- "1": "Februari",
- "2": "Machi",
- "3": "Aprili",
- "4": "Mei",
- "5": "Juni",
- "6": "Julai",
- "7": "Agosti",
- "8": "Septemba",
- "9": "Oktoba",
- "10": "Novemba",
- "11": "Desemba"
- },
- "SHORTDAY": {
- "0": "J2",
- "1": "J3",
- "2": "J4",
- "3": "J5",
- "4": "Alh",
- "5": "Ij",
- "6": "J1"
- },
- "SHORTMONTH": {
- "0": "Jan",
- "1": "Feb",
- "2": "Mac",
- "3": "Apr",
- "4": "Mei",
- "5": "Jun",
- "6": "Jul",
- "7": "Ago",
- "8": "Sep",
- "9": "Okt",
- "10": "Nov",
- "11": "Des"
- },
+ "AMPMS": [
+ "asubuhi",
+ "alasiri"
+ ],
+ "DAY": [
+ "Jumapili",
+ "Jumatatu",
+ "Jumanne",
+ "Jumatano",
+ "Alhamisi",
+ "Ijumaa",
+ "Jumamosi"
+ ],
+ "MONTH": [
+ "Januari",
+ "Februari",
+ "Machi",
+ "Aprili",
+ "Mei",
+ "Juni",
+ "Julai",
+ "Agosti",
+ "Septemba",
+ "Oktoba",
+ "Novemba",
+ "Desemba"
+ ],
+ "SHORTDAY": [
+ "J2",
+ "J3",
+ "J4",
+ "J5",
+ "Alh",
+ "Ij",
+ "J1"
+ ],
+ "SHORTMONTH": [
+ "Jan",
+ "Feb",
+ "Mac",
+ "Apr",
+ "Mei",
+ "Jun",
+ "Jul",
+ "Ago",
+ "Sep",
+ "Okt",
+ "Nov",
+ "Des"
+ ],
"fullDate": "EEEE, d MMMM y",
"longDate": "d MMMM y",
"medium": "d MMM y h:mm:ss a",
@@ -65,8 +65,8 @@ $provide.value("$locale", {
"CURRENCY_SYM": "TSh",
"DECIMAL_SEP": ".",
"GROUP_SEP": ",",
- "PATTERNS": {
- "0": {
+ "PATTERNS": [
+ {
"gSize": 3,
"lgSize": 3,
"macFrac": 0,
@@ -78,7 +78,7 @@ $provide.value("$locale", {
"posPre": "",
"posSuf": ""
},
- "1": {
+ {
"gSize": 3,
"lgSize": 3,
"macFrac": 0,
@@ -90,7 +90,7 @@ $provide.value("$locale", {
"posPre": "\u00a4",
"posSuf": ""
}
- }
+ ]
},
"id": "sw-tz",
"pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}