diff options
| author | Lucas Galfasó | 2013-05-04 21:44:14 -0300 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-03 22:51:31 +0100 |
| commit | b3d7a038d774d823ef861b76fb8bfa22e60a3df5 (patch) | |
| tree | 87b10327d7ddb16ce636d04c81fafddb5b23219a /src/ngLocale/angular-locale_ca-ad.js | |
| parent | ef5bc6c7c3336a64bae64fe9739cb1789907c906 (diff) | |
| download | angular.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_ca-ad.js')
| -rw-r--r-- | src/ngLocale/angular-locale_ca-ad.js | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/src/ngLocale/angular-locale_ca-ad.js b/src/ngLocale/angular-locale_ca-ad.js index 1619738e..f1cdab21 100644 --- a/src/ngLocale/angular-locale_ca-ad.js +++ b/src/ngLocale/angular-locale_ca-ad.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": "a.m.", - "1": "p.m." - }, - "DAY": { - "0": "diumenge", - "1": "dilluns", - "2": "dimarts", - "3": "dimecres", - "4": "dijous", - "5": "divendres", - "6": "dissabte" - }, - "MONTH": { - "0": "de gener", - "1": "de febrer", - "2": "de mar\u00e7", - "3": "d\u2019abril", - "4": "de maig", - "5": "de juny", - "6": "de juliol", - "7": "d\u2019agost", - "8": "de setembre", - "9": "d\u2019octubre", - "10": "de novembre", - "11": "de desembre" - }, - "SHORTDAY": { - "0": "dg.", - "1": "dl.", - "2": "dt.", - "3": "dc.", - "4": "dj.", - "5": "dv.", - "6": "ds." - }, - "SHORTMONTH": { - "0": "de gen.", - "1": "de febr.", - "2": "de mar\u00e7", - "3": "d\u2019abr.", - "4": "de maig", - "5": "de juny", - "6": "de jul.", - "7": "d\u2019ag.", - "8": "de set.", - "9": "d\u2019oct.", - "10": "de nov.", - "11": "de des." - }, + "AMPMS": [ + "a.m.", + "p.m." + ], + "DAY": [ + "diumenge", + "dilluns", + "dimarts", + "dimecres", + "dijous", + "divendres", + "dissabte" + ], + "MONTH": [ + "de gener", + "de febrer", + "de mar\u00e7", + "d\u2019abril", + "de maig", + "de juny", + "de juliol", + "d\u2019agost", + "de setembre", + "d\u2019octubre", + "de novembre", + "de desembre" + ], + "SHORTDAY": [ + "dg.", + "dl.", + "dt.", + "dc.", + "dj.", + "dv.", + "ds." + ], + "SHORTMONTH": [ + "de gen.", + "de febr.", + "de mar\u00e7", + "d\u2019abr.", + "de maig", + "de juny", + "de jul.", + "d\u2019ag.", + "de set.", + "d\u2019oct.", + "de nov.", + "de des." + ], "fullDate": "EEEE d MMMM 'de' y", "longDate": "d MMMM 'de' y", "medium": "dd/MM/yyyy H:mm:ss", @@ -65,8 +65,8 @@ $provide.value("$locale", { "CURRENCY_SYM": "\u20ac", "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": "ca-ad", "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} |
