diff options
| author | Lucas Galfasó | 2013-05-04 21:44:14 -0300 |
|---|---|---|
| committer | Brian Ford | 2013-08-12 16:23:38 -0700 |
| commit | 751c77f87b34389c5b85a23c71080d367c42d31b (patch) | |
| tree | 1e29a46da7d0275363a0c3528394134670c9fdd6 /src/ngLocale/angular-locale_ms-my.js | |
| parent | 634ac03c5efb7a35bb8107dfc686bf834e77f019 (diff) | |
| download | angular.js-751c77f87b34389c5b85a23c71080d367c42d31b.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_ms-my.js')
| -rw-r--r-- | src/ngLocale/angular-locale_ms-my.js | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/src/ngLocale/angular-locale_ms-my.js b/src/ngLocale/angular-locale_ms-my.js index bdc678b7..ade60360 100644 --- a/src/ngLocale/angular-locale_ms-my.js +++ b/src/ngLocale/angular-locale_ms-my.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": "PG", - "1": "PTG" - }, - "DAY": { - "0": "Ahad", - "1": "Isnin", - "2": "Selasa", - "3": "Rabu", - "4": "Khamis", - "5": "Jumaat", - "6": "Sabtu" - }, - "MONTH": { - "0": "Januari", - "1": "Februari", - "2": "Mac", - "3": "April", - "4": "Mei", - "5": "Jun", - "6": "Julai", - "7": "Ogos", - "8": "September", - "9": "Oktober", - "10": "November", - "11": "Disember" - }, - "SHORTDAY": { - "0": "Ahd", - "1": "Isn", - "2": "Sel", - "3": "Rab", - "4": "Kha", - "5": "Jum", - "6": "Sab" - }, - "SHORTMONTH": { - "0": "Jan", - "1": "Feb", - "2": "Mac", - "3": "Apr", - "4": "Mei", - "5": "Jun", - "6": "Jul", - "7": "Ogos", - "8": "Sep", - "9": "Okt", - "10": "Nov", - "11": "Dis" - }, + "AMPMS": [ + "PG", + "PTG" + ], + "DAY": [ + "Ahad", + "Isnin", + "Selasa", + "Rabu", + "Khamis", + "Jumaat", + "Sabtu" + ], + "MONTH": [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember" + ], + "SHORTDAY": [ + "Ahd", + "Isn", + "Sel", + "Rab", + "Kha", + "Jum", + "Sab" + ], + "SHORTMONTH": [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogos", + "Sep", + "Okt", + "Nov", + "Dis" + ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "dd/MM/yyyy h:mm:ss a", @@ -65,8 +65,8 @@ $provide.value("$locale", { "CURRENCY_SYM": "RM", "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": "ms-my", "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} |
