diff --git a/app/serializers/discourse_subscriptions/payment_serializer.rb b/app/serializers/discourse_subscriptions/payment_serializer.rb index 5991e25e..5e198236 100644 --- a/app/serializers/discourse_subscriptions/payment_serializer.rb +++ b/app/serializers/discourse_subscriptions/payment_serializer.rb @@ -59,6 +59,8 @@ def currency_unit "zł" when "czk" "Kč" + when "sek" + "kr" else "$" end diff --git a/assets/javascripts/discourse/controllers/admin-plugins-discourse-subscriptions-products-show-plans-show.js b/assets/javascripts/discourse/controllers/admin-plugins-discourse-subscriptions-products-show-plans-show.js index 86710db1..e3226bcd 100644 --- a/assets/javascripts/discourse/controllers/admin-plugins-discourse-subscriptions-products-show-plans-show.js +++ b/assets/javascripts/discourse/controllers/admin-plugins-discourse-subscriptions-products-show-plans-show.js @@ -46,6 +46,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont { id: "CHF", name: "CHF" }, { id: "PLN", name: "PLN" }, { id: "CZK", name: "CZK" }, + { id: "SEK", name: "SEK" }, ]; } diff --git a/assets/javascripts/discourse/helpers/format-currency.js b/assets/javascripts/discourse/helpers/format-currency.js index d86df083..975d446f 100644 --- a/assets/javascripts/discourse/helpers/format-currency.js +++ b/assets/javascripts/discourse/helpers/format-currency.js @@ -34,6 +34,9 @@ export function formatCurrency([currency, amount]) { case "CZK": currencySign = "Kč"; break; + case "SEK": + currencySign = "kr"; + break; default: currencySign = "$"; } diff --git a/config/settings.yml b/config/settings.yml index 80cb3554..1eec343f 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -38,6 +38,7 @@ discourse_subscriptions: - CHF - PLN - CZK + - SEK discourse_subscriptions_campaign_enabled: client: true default: false