FEATURE: add ZAR currency support (#199)

This commit is contained in:
Michelle Bueno Saquetim Vendrame 2024-04-15 20:26:26 +01:00 committed by GitHub
parent 8f1b332f9e
commit d63f241e0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,8 @@ module DiscourseSubscriptions
"KR"
when "sgd"
"S$"
when "zar"
"R"
else
"$"
end

View File

@ -41,6 +41,7 @@ export default Controller.extend({
{ id: "DKK", name: "DKK" },
{ id: "SGD", name: "SGD" },
{ id: "JPY", name: "JPY" },
{ id: "ZAR", name: "ZAR" },
];
},

View File

@ -28,6 +28,10 @@ export default Helper.helper(function (params) {
case "sgd":
currencySign = "S$";
break;
case "ZAR":
case "zar":
currencySign = "R";
break;
default:
currencySign = "$";
}

View File

@ -28,6 +28,7 @@ discourse_subscriptions:
- USD
- DKK
- SGD
- ZAR
discourse_subscriptions_campaign_enabled:
client: true
default: false