0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Added a note to potentially breaking price helper

refs https://github.com/TryGhost/Team/issues/449

- Once we deprecate site.lang use in favor of site.locale this helper will need inspection for potentially breaking change. Left a note to come back to it once it's time
This commit is contained in:
Naz 2022-04-01 11:32:54 +08:00
parent c222d1f64e
commit 4f7324f1c0

View file

@ -58,6 +58,7 @@ module.exports = function price(planOrAmount, options) {
}
options = options || {};
options.hash = options.hash || {};
// NOTE: potentially breaking place once site.lang is removed in favor of site.locale
const {currency, numberFormat = 'short', currencyFormat = 'symbol', locale = _.get(options, 'data.site.lang', 'en')} = options.hash;
if (plan) {
return formatter({