You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constnumberFormat=newIntl.NumberFormat('no-NO',{currency: 'NOK',style: 'currency',maximumFractionDigits: 0});numberFormat.format(10);>'kr 10'// What I expect
in Node 20.12:
constnumberFormat=newIntl.NumberFormat('no-NO',{currency: 'NOK',style: 'currency',maximumFractionDigits: 0});numberFormat.format(10);>'10 kr'// What I get
After the 20.12 update, the price formatting changed - kr doesn't always precede the amount.
How often does it reproduce? Is there a required condition?
I noticed this during running unit tests. 95% of the time it returns '10 kr' and when you rerun tests multiple times you will end up with the correct price format 'kr 10'.
In application, it causes a hydration error and it always reproduces.
What is the expected behavior? Why is that the expected behavior?
The expected behavior is that this new version update is not a breaking change or at least that there is info that this is a breaking change.
However, this should not be changed as I'm not sure the Norwegians started to show their prices suddenly in a different format.
I'm expecting this:
constnumberFormat=newIntl.NumberFormat('no-NO',{currency: 'NOK',style: 'currency',maximumFractionDigits: 0});numberFormat.format(10);>'kr 10'// => This is how it should look like. // And if you try to write this in the browser console you will get the correct price format:// Intl.NumberFormat('no-NO', { currency: 'NOK', style: 'currency', minimumFractionDigits: 0}).format(10) => 'kr 10'
What do you see instead?
I see this instead:
constnumberFormat=newIntl.NumberFormat('no-NO',{currency: 'NOK',style: 'currency',maximumFractionDigits: 0});numberFormat.format(10);>'10 kr'// => I'm getting price format with switched places of currency and amount
Additional information
No response
The text was updated successfully, but these errors were encountered:
Seeing this on my end as well. So that means browsers are going to eventually show the same style as Node 20 for placement of the currency symbol for Norwegian?
Version
20.12.0
Platform
Linux, Mac
Subsystem
No response
What steps will reproduce the bug?
in Node 20.9, 20.10, 20.11:
in Node 20.12:
After the 20.12 update, the price formatting changed - kr doesn't always precede the amount.

How often does it reproduce? Is there a required condition?
I noticed this during running unit tests. 95% of the time it returns '10 kr' and when you rerun tests multiple times you will end up with the correct price format 'kr 10'.
In application, it causes a hydration error and it always reproduces.
What is the expected behavior? Why is that the expected behavior?
The expected behavior is that this new version update is not a breaking change or at least that there is info that this is a breaking change.
However, this should not be changed as I'm not sure the Norwegians started to show their prices suddenly in a different format.
I'm expecting this:
What do you see instead?
I see this instead:
Additional information
No response
The text was updated successfully, but these errors were encountered: