21 lines
455 B
Plaintext
Raw Normal View History

2019-10-31 14:35:19 +11:00
// TODO: typo in this helper name: currency not curency.
export default Ember.Helper.helper(function (params) {
let currencySign
2019-09-12 18:16:47 +10:00
2019-12-04 11:53:05 +11:00
switch (Discourse.SiteSettings.discourse_subscriptions_currency) {
case 'EUR':
currencySign = '€'
break
case 'GBP':
currencySign = '£'
break
case 'INR':
currencySign = '₹'
break
2019-09-12 18:16:47 +10:00
default:
currencySign = '$'
2019-09-12 18:16:47 +10:00
}
return [currencySign, params[0]].join('')
})