Open MickL opened 10 months ago
Currently numberFormats and dateTimeFormats need to be set for each language separately:
numberFormats
dateTimeFormats
numberFormats: { de: { currency: { style: 'currency', currency: 'EUR', }, }, nl: { currency: { style: 'currency', currency: 'EUR', }, es: { currency: { style: 'currency', currency: 'EUR', }, }, fr: { currency: { style: 'currency', currency: 'EUR', }, }, pt: { currency: { style: 'currency', currency: 'EUR', }, }, },
This results in duplicate code for countries that share the same currency or date-time-format (common within in the EU).
It would be nice to group them somehow, for example:
numberFormats: [ { locales: ['de', 'nl', 'es', 'fr', 'pt'], currency: { style: 'currency', currency: 'EUR', }, }, ],
Or in some other way.
No response
I just came back here 9 months later, having the exact same issue. Now I have way more number and date formats and languages so the duplicate code is enormous. Is there any ETA maybe @kazupon ?
Clear and concise description of the problem
Currently
numberFormats
anddateTimeFormats
need to be set for each language separately:This results in duplicate code for countries that share the same currency or date-time-format (common within in the EU).
Suggested solution
It would be nice to group them somehow, for example:
Or in some other way.
Alternative
No response
Additional context
No response
Validations