intlify/vue-i18n

Use different locale for number and date formatting than current locale

Opened this issue · 0 comments

MickL commented

Clear and concise description of the problem

  • The common number format in the EU, at least for the countries I know, is 1.000,00 €
  • I have a website translated in German, French and Spanish as well as an English version for all other countries
  • For the English version I use the locale en
  • The format now is incorrectly €1,000.00 instead of 1.000,00 €

Suggested solution

The problem is that even when trying to format 'en' with Intl.NumberFormat to a European format it is not possible. So the only solution I could imagine is to be able to set a different locale for translations and for number formatting.

Alternative

No response

Additional context

No response

Validations