new GlobalizePlugin({
developmentLocale: 'en',
}),
code
var en = new Globalize( "en" );
// You can optionally omit the `new` operator.
var pt = Globalize( "pt" );
console.log(en.formatNumber( 3.1415 ));
// > 3.142
console.log(pt.formatNumber( 3.1415 ));
output
Uncaught Error: E_MISSING_CLDR: Missing required CLDR content `main/pt/numbers/defaultNumberingSystem`.
at createError (globalize.js:105)
at validate (globalize.js:182)
webpack config
code
output