Turn your audience into a business. Publishing, memberships, subscriptions and newsletters.
Go to file
Fabien 'egg' O'Carroll ccde2519a8 Used Intl.NumberFormat to determine currency symbol (#128)
refs https://github.com/TryGhost/Team/issues/473
refs https://github.com/TryGhost/Ghost/pull/12700/commits/006cf434

Ghost no longer sends back currency symbols from the API, so we calculate the currency
symbol using `Intl.NumberFormat`.

We've also renamed the `currency` property to `currency_symbol` - as it does not store a currency.

Depending on currency and locale, currency symbols can be the currency ISO code (e.g. AED).
In order to style these differently we add a different class to the element.
2021-02-25 09:58:19 +00:00
ghost/portal Used Intl.NumberFormat to determine currency symbol (#128) 2021-02-25 09:58:19 +00:00