19 lines
402 B
JavaScript
19 lines
402 B
JavaScript
|
|
// TODO: typo in this helper name: currency not curency.
|
|
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("");
|
|
});
|