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:
parent
c222d1f64e
commit
4f7324f1c0
1 changed files with 1 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue