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_eu.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_eu.js')
| -rw-r--r-- | src/ngLocale/angular-locale_eu.js | 108 | 
1 files changed, 54 insertions, 54 deletions
| diff --git a/src/ngLocale/angular-locale_eu.js b/src/ngLocale/angular-locale_eu.js index e101cdba..72400107 100644 --- a/src/ngLocale/angular-locale_eu.js +++ b/src/ngLocale/angular-locale_eu.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": "AM", -      "1": "PM" -    }, -    "DAY": { -      "0": "igandea", -      "1": "astelehena", -      "2": "asteartea", -      "3": "asteazkena", -      "4": "osteguna", -      "5": "ostirala", -      "6": "larunbata" -    }, -    "MONTH": { -      "0": "urtarrila", -      "1": "otsaila", -      "2": "martxoa", -      "3": "apirila", -      "4": "maiatza", -      "5": "ekaina", -      "6": "uztaila", -      "7": "abuztua", -      "8": "iraila", -      "9": "urria", -      "10": "azaroa", -      "11": "abendua" -    }, -    "SHORTDAY": { -      "0": "ig", -      "1": "al", -      "2": "as", -      "3": "az", -      "4": "og", -      "5": "or", -      "6": "lr" -    }, -    "SHORTMONTH": { -      "0": "urt", -      "1": "ots", -      "2": "mar", -      "3": "api", -      "4": "mai", -      "5": "eka", -      "6": "uzt", -      "7": "abu", -      "8": "ira", -      "9": "urr", -      "10": "aza", -      "11": "abe" -    }, +    "AMPMS": [ +      "AM", +      "PM" +    ], +    "DAY": [ +      "igandea", +      "astelehena", +      "asteartea", +      "asteazkena", +      "osteguna", +      "ostirala", +      "larunbata" +    ], +    "MONTH": [ +      "urtarrila", +      "otsaila", +      "martxoa", +      "apirila", +      "maiatza", +      "ekaina", +      "uztaila", +      "abuztua", +      "iraila", +      "urria", +      "azaroa", +      "abendua" +    ], +    "SHORTDAY": [ +      "ig", +      "al", +      "as", +      "az", +      "og", +      "or", +      "lr" +    ], +    "SHORTMONTH": [ +      "urt", +      "ots", +      "mar", +      "api", +      "mai", +      "eka", +      "uzt", +      "abu", +      "ira", +      "urr", +      "aza", +      "abe" +    ],      "fullDate": "EEEE, y'eko' MMMM'ren' dd'a'",      "longDate": "y'eko' MMM'ren' dd'a'",      "medium": "y MMM d HH: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": "",          "posSuf": "\u00a0\u00a4"        } -    } +    ]    },    "id": "eu",    "pluralCat": function (n) {  if (n == 1) {   return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;} | 
