Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globalize date formatter prints quotes around string literals when using short formats #946

Open
danielt998 opened this issue Mar 29, 2024 · 0 comments

Comments

@danielt998
Copy link

danielt998 commented Mar 29, 2024

When running the following

var Globalize = require( "globalize" );
Globalize.load( require( "cldr-data" ).entireSupplemental() );
Globalize.load( require( "cldr-data" ).entireMainFor( "en", "es", "bg" ) );
console.log("Globalize curr with formatCurrency:" + Globalize("bg").formatCurrency(11231241223, "BGN", {
   compact: "short"
}));

console.log("Globalize curr with currencyFormatter:" + Globalize("bg").currencyFormatter("BGN", {
     compact: "short"
})(11231241223)); 

we get:

Globalize curr with formatCurrency:11 млрд'.' лв.
Globalize curr with currencyFormatter:11 млрд'.' лв.

I believe this is incorrect, and that the single quotes should not be there

The data is coming, I believe, from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant