skip to Main Content

Intl.NumberFormat returns different results between Safari and Chrome for exact same locale – React native

Here's my test codes running from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat const number = 123456.789; const locale = new Intl.Locale('en-DE', { region: 'DE' }); console.log(new Intl.NumberFormat(locale, { style: 'currency', currency: 'EUR' }).format(number)); console.log(new Intl.NumberFormat('en-DE', { style: 'currency', currency: 'EUR' }).format(number)); console.log(new Intl.NumberFormat(locale).format(number)); console.log(new Intl.NumberFormat('en-DE').format(number));…

VIEW QUESTION
Back To Top
Search