You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not just the symbol position, it's also whether there's a space between the number and the symbol, the decimal separator, the grouping separator, the size of the primary and secondary digit groups.
All of this is per locale.
Thelia can require the intl extension and use its NumberFormatter class, or ship the CLDR data and reimplement the formatter like commerceguys/intl did.
commerceguys/intl is my library so I'm happy to answer questions about this problem space.
The currency symbol position is hardcoded in core/lib/Thelia/Tools/MoneyFormat.php:
$number = $number . ' ' . $symbol;
The symbol position (or even the complete money format) should be a per-langage configuration parameter.
The text was updated successfully, but these errors were encountered: