Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/serializers/discourse_subscriptions/payment_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def currency_unit
"zł"
when "czk"
"Kč"
when "sek"
"kr"
else
"$"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
{ id: "CHF", name: "CHF" },
{ id: "PLN", name: "PLN" },
{ id: "CZK", name: "CZK" },
{ id: "SEK", name: "SEK" },
];
}

Expand Down
3 changes: 3 additions & 0 deletions assets/javascripts/discourse/helpers/format-currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export function formatCurrency([currency, amount]) {
case "CZK":
currencySign = "Kč";
break;
case "SEK":
currencySign = "kr";
break;
default:
currencySign = "$";
}
Expand Down
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ discourse_subscriptions:
- CHF
- PLN
- CZK
- SEK
discourse_subscriptions_campaign_enabled:
client: true
default: false
Expand Down