-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
In-built currency formatting not working with ICU #50
Comments
The built-in formatting is only for the i18next i18n format... but since you're using i18next-icu, this is a different i18n format and you need to check ICU instead... |
I did check with I'm currently using the following custom formatter for price: icu.addUserDefinedFormats({
number: {
PRICE_FORMAT: {
minimumFractionDigits: 0,
maximumFractionDigits: 2,
},
},
}); Is there a way to also add |
formats depend on as this basically just wraps that implementation of ICU messageformat - so you will have to look there what is possible or not |
Codesandbox: https://codesandbox.io/s/competent-wildflower-kpvrl5?file=/src/index.ts
When using ICU the built-in currency formatting doesn't seem to work at all — if you uncomment lines 2 and 4 you'll see that it breaks.
The text was updated successfully, but these errors were encountered: