Currency will be in sometimes not correctly formated. Have a look at this code lines
The default language is de-DE but if the currency is USD then it is en-US, that means any other currency will be using the language de-DE leading to wrong currency formatting.
For example, using {{ 1000 | currency(‚CAD‘) }} will use de-DE and results in 1.000,00 CAD. This is not correct because it should use en-CA and give as result 1,000.00 CAD
Same with other currencies like MXN wich uses as locale es-MX.
please anyone can tell me how can I override the function in a plugin?
Thanks