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

Commit 5036644

Browse files
committed
Always include latn numeric system in locale data
1 parent f5ab43f commit 5036644

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/utils/reduce.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ module.exports = function processObj(locale, data) {
2727
gopv = function (o) {
2828
return o ? Object.getOwnPropertyNames(o).map(function (e) { return o[e]; }) : undefined;
2929
},
30+
latnNu = 'latn',
3031

3132
// Copy numbering systems
3233
defaultNu = data.numbers.defaultNumberingSystem,
3334
otherNu = gopn(data.numbers.otherNumberingSystems).map(function(key) {
3435
return data.numbers.otherNumberingSystems[key];
3536
}).filter(function (key) {
36-
return key !== defaultNu;
37+
return key !== defaultNu && key !== latnNu;
3738
}),
3839

3940
// Map calendar names to BCP 47 unicode extension 'ca' keys
@@ -76,11 +77,11 @@ module.exports = function processObj(locale, data) {
7677
hour12: !/H|k/.test(defaultTimeFormat),
7778

7879
formats: [],
79-
calendars: {},
80+
calendars: {}
8081
},
8182
number: {
8283
// Numbering systems, with the default first
83-
nu: [ defaultNu ],
84+
nu: (defaultNu === latnNu) ? [ latnNu ] : [ defaultNu, latnNu ],
8485

8586
// Formatting patterns
8687
patterns: {},

0 commit comments

Comments
 (0)