mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-21 10:56:55 +00:00
FEATURE: Add support for CZK currency (#265)
This commit is contained in:
parent
832c52d5d7
commit
208ecb66a3
@ -57,6 +57,8 @@ module DiscourseSubscriptions
|
||||
"CHF"
|
||||
when "pln"
|
||||
"zł"
|
||||
when "czk"
|
||||
"Kč"
|
||||
else
|
||||
"$"
|
||||
end
|
||||
|
@ -45,6 +45,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
|
||||
{ id: "ZAR", name: "ZAR" },
|
||||
{ id: "CHF", name: "CHF" },
|
||||
{ id: "PLN", name: "PLN" },
|
||||
{ id: "CZK", name: "CZK" },
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,9 @@ export function formatCurrency([currency, amount]) {
|
||||
case "PLN":
|
||||
currencySign = "zł";
|
||||
break;
|
||||
case "CZK":
|
||||
currencySign = "Kč";
|
||||
break;
|
||||
default:
|
||||
currencySign = "$";
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ discourse_subscriptions:
|
||||
- ZAR
|
||||
- CHF
|
||||
- PLN
|
||||
- CZK
|
||||
discourse_subscriptions_campaign_enabled:
|
||||
client: true
|
||||
default: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user