2019-09-12 04:16:47 -04:00
|
|
|
export default Ember.Helper.helper(function(params) {
|
|
|
|
let currencySign;
|
|
|
|
|
|
|
|
switch (Discourse.SiteSettings.discourse_patrons_currency) {
|
2019-09-12 04:18:50 -04:00
|
|
|
case "EUR":
|
2019-09-12 04:16:47 -04:00
|
|
|
currencySign = "€";
|
|
|
|
break;
|
2019-09-12 04:18:50 -04:00
|
|
|
case "GBP":
|
2019-09-12 04:16:47 -04:00
|
|
|
currencySign = "£";
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
currencySign = "$";
|
|
|
|
}
|
|
|
|
|
2019-09-12 04:18:50 -04:00
|
|
|
return [currencySign, params[0]].join("");
|
2019-09-12 04:16:47 -04:00
|
|
|
});
|