localize currency shit for US markets

This commit is contained in:
matty 2023-12-13 10:34:57 -05:00
parent 71d2f52578
commit 250db79c61
2 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ async function showPage({ rootEl, peertubeHelpers }) {
<div class="card-body"> <div class="card-body">
<form method="POST" action="#" class="ncdSubscriptionForm"> <form method="POST" action="#" class="ncdSubscriptionForm">
<h3 class="card-title">${plan.name}</h3> <h3 class="card-title">${plan.name}</h3>
<h4>${plan.price}${currency} /${await peertubeHelpers.translate("month")}</h4> <h4>${currency}${plan.price} /${await peertubeHelpers.translate("month")}</h4>
<p class="card-text">${plan.storage} ${await peertubeHelpers.translate("GB Storage")}</p> <p class="card-text">${plan.storage} ${await peertubeHelpers.translate("GB Storage")}</p>
<input type="hidden" name="lookup_key" value="${plan.key}"> <input type="hidden" name="lookup_key" value="${plan.key}">
@ -66,7 +66,7 @@ async function showPage({ rootEl, peertubeHelpers }) {
`))).join("")} `))).join("")}
</div> </div>
<p><i>${await translate("Secure payment with Stripe")}</i></p> <p><i>${await translate("Secure transaction with Stripe")}</i></p>
</div> </div>
${session_id ? ` ${session_id ? `
@ -80,7 +80,7 @@ async function showPage({ rootEl, peertubeHelpers }) {
` : ""} ` : ""}
${sub_plan ? ` ${sub_plan ? `
<p><i><b>${await translate("Your current plan")}</b>: ${sub_plan.name}, ${sub_plan.price}${currency} /${await peertubeHelpers.translate("month")}, ${sub_plan.storage} ${await peertubeHelpers.translate("GB Storage")}</i></p> <p><i><b>${await translate("Your current plan")}</b>: ${sub_plan.name}, ${currency}${sub_plan.price} /${await peertubeHelpers.translate("month")}, ${sub_plan.storage} ${await peertubeHelpers.translate("GB Storage")}</i></p>
` : ""} ` : ""}
</div> </div>
@ -88,7 +88,7 @@ async function showPage({ rootEl, peertubeHelpers }) {
const checkForListen = () => { const checkForListen = () => {
document.querySelectorAll(".ncdSubscriptionForm").length === 3 ? listenSubmitSubscription(peertubeHelpers) : setTimeout(() => checkForListen(), 1000); document.querySelectorAll(".ncdSubscriptionForm").length === 5 ? listenSubmitSubscription(peertubeHelpers) : setTimeout(() => checkForListen(), 1000);
}; };
checkForListen(); checkForListen();
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "peertube-plugin-ncd-sell-storage", "name": "peertube-plugin-ncd-sell-storage",
"description": "NCD fork of the peertube-plugin-orion-sell-storage to sell storage to users using Stripe", "description": "NCD fork of the peertube-plugin-orion-sell-storage to sell storage to users using Stripe",
"version": "1.1.0", "version": "1.1.1",
"author": "matty", "author": "matty",
"bugs": "https://gitea.nicecrew.digital/matty/peertube-plugin-ncd-sell-storage", "bugs": "https://gitea.nicecrew.digital/matty/peertube-plugin-ncd-sell-storage",
"clientScripts": [ "clientScripts": [