FEATURE: Add support for CZK currency (#265)

This commit is contained in:
Tomas Vavrda 2025-02-18 22:48:04 +01:00 committed by GitHub
parent 832c52d5d7
commit 208ecb66a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,8 @@ module DiscourseSubscriptions
"CHF"
when "pln"
""
when "czk"
""
else
"$"
end

View File

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

View File

@ -31,6 +31,9 @@ export function formatCurrency([currency, amount]) {
case "PLN":
currencySign = "zł";
break;
case "CZK":
currencySign = "Kč";
break;
default:
currencySign = "$";
}

View File

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