FEATURE: Add support for SEK currency (#276)

Ref: https://meta.discourse.org/t/adding-new-currency-options-for-the-subscriptions-plugin/316003/12
This commit is contained in:
Mark Doerr 2025-07-07 07:42:18 -07:00 committed by GitHub
parent 46f9fea9e2
commit 9e5f61832d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,8 @@ module DiscourseSubscriptions
""
when "czk"
""
when "sek"
"kr"
else
"$"
end

View File

@ -46,6 +46,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
{ id: "CHF", name: "CHF" },
{ id: "PLN", name: "PLN" },
{ id: "CZK", name: "CZK" },
{ id: "SEK", name: "SEK" },
];
}

View File

@ -32,6 +32,9 @@ export default function formatCurrency(currency, amount) {
case "CZK":
currencySign = "Kč";
break;
case "SEK":
currencySign = "kr";
break;
default:
currencySign = "$";
}

View File

@ -38,6 +38,7 @@ discourse_subscriptions:
- CHF
- PLN
- CZK
- SEK
discourse_subscriptions_campaign_enabled:
client: true
default: false