FEATURE: Add support for CZK currency
This commit is contained in:
parent
cc43d32af7
commit
96a600155a
|
@ -57,6 +57,8 @@ module DiscourseSubscriptions
|
||||||
"CHF"
|
"CHF"
|
||||||
when "pln"
|
when "pln"
|
||||||
"zł"
|
"zł"
|
||||||
|
when "czk"
|
||||||
|
"Kč"
|
||||||
else
|
else
|
||||||
"$"
|
"$"
|
||||||
end
|
end
|
||||||
|
|
|
@ -45,6 +45,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
|
||||||
{ id: "ZAR", name: "ZAR" },
|
{ id: "ZAR", name: "ZAR" },
|
||||||
{ id: "CHF", name: "CHF" },
|
{ id: "CHF", name: "CHF" },
|
||||||
{ id: "PLN", name: "PLN" },
|
{ id: "PLN", name: "PLN" },
|
||||||
|
{ id: "CZK", name: "CZK" },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,10 @@ export function formatCurrency([currency, amount]) {
|
||||||
case "PLN":
|
case "PLN":
|
||||||
currencySign = "zł";
|
currencySign = "zł";
|
||||||
break;
|
break;
|
||||||
default:
|
case "CZK":
|
||||||
|
currencySign = "Kč";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
currencySign = "$";
|
currencySign = "$";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ discourse_subscriptions:
|
||||||
- ZAR
|
- ZAR
|
||||||
- CHF
|
- CHF
|
||||||
- PLN
|
- PLN
|
||||||
|
- CZK
|
||||||
discourse_subscriptions_campaign_enabled:
|
discourse_subscriptions_campaign_enabled:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Reference in New Issue