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

17 lines
344 B
Plaintext
Raw Normal View History

2019-09-12 04:16:47 -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 = "$";
}
return [currencySign, params[0]].join('');
});