FEATURE: Add support for CZK currency
This commit is contained in:
parent
cc43d32af7
commit
96a600155a
|
@ -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,7 +31,10 @@ export function formatCurrency([currency, amount]) {
|
|||
case "PLN":
|
||||
currencySign = "zł";
|
||||
break;
|
||||
default:
|
||||
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…
Reference in New Issue