discourse-subscriptions/assets/javascripts/discourse/helpers/format-currency.js.es6

17 lines
367 B
Plaintext
Raw Normal View History

2019-10-30 23:35:19 -04:00
export default Ember.Helper.helper(function(params) {
let currencySign;
switch (Discourse.SiteSettings.discourse_patrons_currency) {
case "EUR":
currencySign = "€";
break;
case "GBP":
currencySign = "£";
break;
default:
currencySign = "$";
}
2019-11-06 04:59:35 -05:00
return currencySign + params.map(p => p.toUpperCase()).join(" ");
2019-10-30 23:35:19 -04:00
});