diff --git a/app/src/components/PaywallModal.tsx b/app/src/components/PaywallModal.tsx index 486d5e5d..e1bbf16f 100644 --- a/app/src/components/PaywallModal.tsx +++ b/app/src/components/PaywallModal.tsx @@ -63,7 +63,7 @@ export default function PaywallModal() { { posthog.capture("clicked-paywall-button"); diff --git a/app/src/lib/usePaywallModalStore.ts b/app/src/lib/usePaywallModalStore.ts index 5aebea3d..c101a9c2 100644 --- a/app/src/lib/usePaywallModalStore.ts +++ b/app/src/lib/usePaywallModalStore.ts @@ -1,3 +1,4 @@ +import { t } from "@lingui/macro"; import { create } from "zustand"; type PaywallModalStore = { @@ -34,8 +35,12 @@ export function showPaywall({ movieUrl, imgUrl = paywallImageUrl, toPricingCode, - buttonText = "Learn More", // New parameter with default value + buttonText, }: Omit) { + if (!buttonText) { + buttonText = t`Learn More`; + } + // If there is no movie URL, we will preload the image if (!movieUrl) { // Pre-load the paywall image