localize currency shit for US markets
This commit is contained in:
		| @ -54,7 +54,7 @@ async function showPage({ rootEl, peertubeHelpers }) { | ||||
|                                 <div class="card-body"> | ||||
|                                     <form method="POST" action="#" class="ncdSubscriptionForm"> | ||||
|                                         <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> | ||||
|  | ||||
|                                         <input type="hidden" name="lookup_key" value="${plan.key}"> | ||||
| @ -66,7 +66,7 @@ async function showPage({ rootEl, peertubeHelpers }) { | ||||
|                     `))).join("")} | ||||
|                 </div> | ||||
|  | ||||
|                 <p><i>${await translate("Secure payment with Stripe")}</i></p> | ||||
|                 <p><i>${await translate("Secure transaction with Stripe")}</i></p> | ||||
|             </div> | ||||
|  | ||||
|             ${session_id ? ` | ||||
| @ -80,7 +80,7 @@ async function showPage({ rootEl, peertubeHelpers }) { | ||||
|             ` : ""} | ||||
|  | ||||
|             ${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> | ||||
| @ -88,7 +88,7 @@ async function showPage({ rootEl, peertubeHelpers }) { | ||||
|  | ||||
|  | ||||
|     const checkForListen = () => { | ||||
|         document.querySelectorAll(".ncdSubscriptionForm").length === 3 ? listenSubmitSubscription(peertubeHelpers) : setTimeout(() => checkForListen(), 1000); | ||||
|         document.querySelectorAll(".ncdSubscriptionForm").length === 5 ? listenSubmitSubscription(peertubeHelpers) : setTimeout(() => checkForListen(), 1000); | ||||
|     }; | ||||
|     checkForListen(); | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user