[Feature]: Improve i18n-cookies
sequensucks opened this issue · 0 comments
sequensucks commented
How the project can be improved?
It will be great. If you can update a getCurrencyByLocale method in the
https://github.com/vuestorefront/vue-storefront/blob/main/packages/core/nuxt-module/lib/plugins/i18n-cookies.js
Like this
const getCurrencyByLocale = (locale) =>
i18n.numberFormats?.[locale]?.currency?.currency
|| i18n.numberFormats?.[i18n.fallbackLocale?.[locale][0]]?.currency?.currency
|| i18nOptions.currency
|| (i18nOptions.currencies.length && i18nOptions.currencies[0].name);
Because i have not standard locales and i get numberFormats across a fallbackLocale prop.
What are the acceptance criteria?
- [ ]
Additional information
No response
What version of Vue Storefront this feature can be implemented?
2.5.2
Code of Conduct
- I agree to follow this project's Code of Conduct