I am using globalize with webpack and globalize-webpack-plugin. I know the plugin will load required cldr json files automatically if I use let's say Currency module. But the plugin won't load cldr files that's not required by globalize modules.
Is there a way to ask the plugin to load any cldr file I want? For example, I want to get country name with country code. So I need main/<locale>/territories.json which is not loaded by any globalize module I believe.
Once it's loaded, I will be able to get country name with:
Globalize.cldr.main('localeDisplayNames/territories/<country_code>');
Is that right?
I am using globalize with webpack and globalize-webpack-plugin. I know the plugin will load required cldr json files automatically if I use let's say Currency module. But the plugin won't load cldr files that's not required by globalize modules.
Is there a way to ask the plugin to load any cldr file I want? For example, I want to get country name with country code. So I need
main/<locale>/territories.json
which is not loaded by any globalize module I believe.Once it's loaded, I will be able to get country name with:
Globalize.cldr.main('localeDisplayNames/territories/<country_code>');
Is that right?