Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.18
Component:
Price
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2020 at 18:37 UTC
Updated:
26 Sep 2025 at 11:09 UTC
Jump to comment: Most recent


Comments
Comment #2
bojanz commentedA$ is the currency symbol for AUD (Australian Dollar) in the "en" locale, according to CLDR. It's not a random letter being added.
To show AUD as "$" you need to ensure your locale is set to "en-AU". That will also show USD as "US$".
Locales are set via LocaleResolvers and the default one uses "$currentLanguage-$currentCountry", where $currentCountry defaults to the country from your store address. So make sure your store has an australian address set.
Comment #3
the_glitch commentedAre you saying if my Locale is set to Australia, the A shouldn't be appearing if AUD is the selected currency for that field?
If so, the site's Locale and the Admin User's Locale are already set to Australia and Sydney but the A is appearing anyway.
Comment #4
the_glitch commented👆?
Comment #5
jsacksick commented\Drupal\commerce_price\CurrencyFormatter passes the locale to the Commerce Guys INTL currency formatter from the constructor:
You should double check what is your current locale.
Also, you could potentially swap the CurrencyFormatter with your own and hardcode the passed locale to the desired one.