FEATURE: add ZAR currency support (#199)

This commit is contained in:
Michelle Bueno Saquetim Vendrame
2024-04-15 21:26:26 +02:00
committed by GitHub
parent 8f1b332f9e
commit d63f241e0d
4 changed files with 8 additions and 0 deletions
@@ -51,6 +51,8 @@ module DiscourseSubscriptions
"KR"
when "sgd"
"S$"
when "zar"
"R"
else
"$"
end
@@ -41,6 +41,7 @@ export default Controller.extend({
{ id: "DKK", name: "DKK" },
{ id: "SGD", name: "SGD" },
{ id: "JPY", name: "JPY" },
{ id: "ZAR", name: "ZAR" },
];
},
@@ -28,6 +28,10 @@ export default Helper.helper(function (params) {
case "sgd":
currencySign = "S$";
break;
case "ZAR":
case "zar":
currencySign = "R";
break;
default:
currencySign = "$";
}
+1
View File
@@ -28,6 +28,7 @@ discourse_subscriptions:
- USD
- DKK
- SGD
- ZAR
discourse_subscriptions_campaign_enabled:
client: true
default: false