Permalink
Browse files

feat(ngLocale): Add FIRSTDAYOFWEEK and WEEKENDRANGE from google data

Add more properties from Google closure localization data into ngLocale.
  • Loading branch information...
1 parent 2c4ffd6 commit 3d149c7f20ffabab5a635af9ddcfc7105112ab4a @santialbo santialbo committed with petebacondarwin Jan 30, 2015
Showing with 4 additions and 0 deletions.
  1. +2 −0 i18n/spec/closureI18nExtractorSpec.js
  2. +2 −0 i18n/src/converter.js
@@ -184,6 +184,8 @@ describe("extractDateTimeSymbols", function() {
'nov.', 'déc.'],
DAY: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
SHORTDAY: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
+ FIRSTDAYOFWEEK: 6,
+ WEEKENDRANGE: [5, 6],
AMPMS: ['AM', 'PM'],
medium: 'yyyy-MM-dd HH:mm:ss',
short: 'yy-MM-dd HH:mm',
@@ -42,6 +42,8 @@ function convertDatetimeData(dataObj) {
datetimeFormats.DAY = dataObj.WEEKDAYS;
datetimeFormats.SHORTDAY = dataObj.SHORTWEEKDAYS;
datetimeFormats.AMPMS = dataObj.AMPMS;
+ datetimeFormats.FIRSTDAYOFWEEK = dataObj.FIRSTDAYOFWEEK;
+ datetimeFormats.WEEKENDRANGE = dataObj.WEEKENDRANGE;
datetimeFormats.medium = dataObj.DATEFORMATS[2] + ' ' + dataObj.TIMEFORMATS[2];

0 comments on commit 3d149c7

Please sign in to comment.