Skip to content

Commit ed36a8d

Browse files
committed
fix: leave display names for currencies in tests
1 parent 728e99d commit ed36a8d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

gulpfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ const cleanupCurrencies = (locale) => {
1616

1717
Object.keys(currencies).forEach(id => {
1818
const data = currencies[id];
19-
subset[id] = { 'symbol': data['symbol'], 'symbol-alt-narrow': data['symbol-alt-narrow'] };
19+
if (id === 'USD' || id === 'BGN') {
20+
subset[id] = data;
21+
} else {
22+
subset[id] = { 'symbol': data['symbol'], 'symbol-alt-narrow': data['symbol-alt-narrow'] };
23+
}
2024
});
2125

2226
locale.numbers.currencies = subset;

src/cldr/default-data.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ const defaultData = {
158158
"symbol": "BGM"
159159
},
160160
"BGN": {
161+
"displayName": "Bulgarian Lev",
162+
"displayName-count-one": "Bulgarian lev",
163+
"displayName-count-other": "Bulgarian leva",
161164
"symbol": "BGN"
162165
},
163166
"BGO": {
@@ -882,6 +885,9 @@ const defaultData = {
882885
"symbol": "UGX"
883886
},
884887
"USD": {
888+
"displayName": "US Dollar",
889+
"displayName-count-one": "US dollar",
890+
"displayName-count-other": "US dollars",
885891
"symbol": "$",
886892
"symbol-alt-narrow": "$"
887893
},

0 commit comments

Comments
 (0)