Skip to content

Commit 728e99d

Browse files
committed
fix: strip currency display names
1 parent 6d80f57 commit 728e99d

File tree

3 files changed

+23
-905
lines changed

3 files changed

+23
-905
lines changed

gulpfile.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,26 @@ const fs = require('fs');
1010

1111
require('@telerik/kendo-package-tasks')(gulp, 'kendo-intl');
1212

13+
const cleanupCurrencies = (locale) => {
14+
const currencies = locale.numbers.currencies;
15+
const subset = {};
16+
17+
Object.keys(currencies).forEach(id => {
18+
const data = currencies[id];
19+
subset[id] = { 'symbol': data['symbol'], 'symbol-alt-narrow': data['symbol-alt-narrow'] };
20+
});
21+
22+
locale.numbers.currencies = subset;
23+
24+
return locale;
25+
};
26+
1327
gulp.task("build-default-data", () => {
1428
const cldr = require("./dist/npm/js/cldr");
1529
cldr.load(likelySubtags, currencyData, weekData, numbers, currencies, timeZoneNames, calendar);
30+
1631
const defaultData = {
17-
en: cldr.cldr.en,
32+
en: cleanupCurrencies(cldr.cldr.en),
1833
supplemental: {
1934
likelySubtags: {
2035
en: "en-Latn-US"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@telerik/kendo-intl",
33
"description": "A package exporting functions for date and number parsing and formatting",
4-
"version": "0.9.1",
4+
"version": "0.9.2",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/telerik/kendo-intl.git"

0 commit comments

Comments
 (0)