Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3d149c7

Browse files
santialbopetebacondarwin
authored andcommitted
feat(ngLocale): Add FIRSTDAYOFWEEK and WEEKENDRANGE from google data
Add more properties from Google closure localization data into ngLocale.
1 parent 2c4ffd6 commit 3d149c7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

i18n/spec/closureI18nExtractorSpec.js

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ describe("extractDateTimeSymbols", function() {
184184
'nov.', 'déc.'],
185185
DAY: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
186186
SHORTDAY: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
187+
FIRSTDAYOFWEEK: 6,
188+
WEEKENDRANGE: [5, 6],
187189
AMPMS: ['AM', 'PM'],
188190
medium: 'yyyy-MM-dd HH:mm:ss',
189191
short: 'yy-MM-dd HH:mm',

i18n/src/converter.js

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ function convertDatetimeData(dataObj) {
4242
datetimeFormats.DAY = dataObj.WEEKDAYS;
4343
datetimeFormats.SHORTDAY = dataObj.SHORTWEEKDAYS;
4444
datetimeFormats.AMPMS = dataObj.AMPMS;
45+
datetimeFormats.FIRSTDAYOFWEEK = dataObj.FIRSTDAYOFWEEK;
46+
datetimeFormats.WEEKENDRANGE = dataObj.WEEKENDRANGE;
4547

4648

4749
datetimeFormats.medium = dataObj.DATEFORMATS[2] + ' ' + dataObj.TIMEFORMATS[2];

0 commit comments

Comments
 (0)