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_lt-lt.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_lt-lt.js')
| -rw-r--r-- | src/ngLocale/angular-locale_lt-lt.js | 108 | 
1 files changed, 54 insertions, 54 deletions
| diff --git a/src/ngLocale/angular-locale_lt-lt.js b/src/ngLocale/angular-locale_lt-lt.js index b83a063a..6a6f81f1 100644 --- a/src/ngLocale/angular-locale_lt-lt.js +++ b/src/ngLocale/angular-locale_lt-lt.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": "prie\u0161piet", -      "1": "popiet" -    }, -    "DAY": { -      "0": "sekmadienis", -      "1": "pirmadienis", -      "2": "antradienis", -      "3": "tre\u010diadienis", -      "4": "ketvirtadienis", -      "5": "penktadienis", -      "6": "\u0161e\u0161tadienis" -    }, -    "MONTH": { -      "0": "sausio", -      "1": "vasaris", -      "2": "kovas", -      "3": "balandis", -      "4": "gegu\u017e\u0117", -      "5": "bir\u017eelis", -      "6": "liepa", -      "7": "rugpj\u016btis", -      "8": "rugs\u0117jis", -      "9": "spalis", -      "10": "lapkritis", -      "11": "gruodis" -    }, -    "SHORTDAY": { -      "0": "Sk", -      "1": "Pr", -      "2": "An", -      "3": "Tr", -      "4": "Kt", -      "5": "Pn", -      "6": "\u0160t" -    }, -    "SHORTMONTH": { -      "0": "Saus.", -      "1": "Vas", -      "2": "Kov.", -      "3": "Bal.", -      "4": "Geg.", -      "5": "Bir.", -      "6": "Liep.", -      "7": "Rugp.", -      "8": "Rugs.", -      "9": "Spal.", -      "10": "Lapkr.", -      "11": "Gruod." -    }, +    "AMPMS": [ +      "prie\u0161piet", +      "popiet" +    ], +    "DAY": [ +      "sekmadienis", +      "pirmadienis", +      "antradienis", +      "tre\u010diadienis", +      "ketvirtadienis", +      "penktadienis", +      "\u0161e\u0161tadienis" +    ], +    "MONTH": [ +      "sausio", +      "vasaris", +      "kovas", +      "balandis", +      "gegu\u017e\u0117", +      "bir\u017eelis", +      "liepa", +      "rugpj\u016btis", +      "rugs\u0117jis", +      "spalis", +      "lapkritis", +      "gruodis" +    ], +    "SHORTDAY": [ +      "Sk", +      "Pr", +      "An", +      "Tr", +      "Kt", +      "Pn", +      "\u0160t" +    ], +    "SHORTMONTH": [ +      "Saus.", +      "Vas", +      "Kov.", +      "Bal.", +      "Geg.", +      "Bir.", +      "Liep.", +      "Rugp.", +      "Rugs.", +      "Spal.", +      "Lapkr.", +      "Gruod." +    ],      "fullDate": "y 'm'. MMMM d 'd'., EEEE",      "longDate": "y 'm'. MMMM d 'd'.",      "medium": "y MMM d HH:mm:ss", @@ -65,8 +65,8 @@ $provide.value("$locale", {      "CURRENCY_SYM": "Lt",      "DECIMAL_SEP": ",",      "GROUP_SEP": "\u00a0", -    "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": "lt-lt",    "pluralCat": function (n) {  if (n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) {   return PLURAL_CATEGORY.ONE;  }  if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) {   return PLURAL_CATEGORY.FEW;  }  return PLURAL_CATEGORY.OTHER;} | 
