Description
I have the issue with currency format. First, in order to configure my currency to have no decimal numbers, I have modified 3 files in /vendor/magento/zendframework1/library/Zend/Locale/Data: es.xml, es_ES.xml and es_CL.xml (the latter just in case, because locale set is es_ES)
In es.xml I have:
<currencyFormats numberSystem="latn"> <currencyFormatLength> <currencyFormat type="standard"> <pattern>¤ #,##0</pattern> </currencyFormat> <currencyFormat type="accounting"> <pattern>¤ #,##0</pattern> </currencyFormat> </currencyFormatLength> <unitPattern count="one">{0} {1}</unitPattern> <unitPattern count="other">{0} {1}</unitPattern> </currencyFormats>
In both es_ES.xml and es_CL.xml I have:
<currencyFormats numberSystem="latn"> <currencyFormatLength> <currencyFormat type="standard"> <pattern>¤ #,##0;¤ -#,##0</pattern> </currencyFormat> </currencyFormatLength> </currencyFormats>
I have removed /var/cache and /var/view_preprocessed, and even, removed browser cache.
The result: the number placed using JavaScript are not formatted correctly:
Regards
Jaime