# Override Currency(isoCurrencyCode) method

**URL:** https://forum.shopware.com/t/override-currency-isocurrencycode-method/87508
**Category:** Shopware 6 (English)
**Tags:** programming
**Created:** [8. Mai 2021 um 13:04 UTC](https://forum.shopware.com/t/override-currency-isocurrencycode-method/87508 "2021-05-08T13:04:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jnuricumbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/jnuricumbo/32/13321_2.png) [@jnuricumbo](https://forum.shopware.com/u/jnuricumbo)
#### Post date: [8. Mai 2021 um 13:04 UTC](https://forum.shopware.com/t/override-currency-isocurrencycode-method/87508/1 "2021-05-08T13:04:46Z")

</div>

Currency will be in sometimes not correctly formated. Have a look at this [code lines](https://github.com/shopware/platform/blob/6245c596c67d94aad31e0f5ab87df91785507ca0/src/Administration/Resources/app/administration/src/core/service/utils/format.utils.js#L38)

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
