diff --git a/app/[locale]/apoiar/page.tsx b/app/[locale]/apoiar/page.tsx index 13ceddd..9d846c2 100644 --- a/app/[locale]/apoiar/page.tsx +++ b/app/[locale]/apoiar/page.tsx @@ -168,7 +168,7 @@ export default async function SupportPage({

- Escolha como apoiar + {t("cta.support")}

diff --git a/components/Header.tsx b/components/Header.tsx index c217f3c..5f7b2f2 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -23,7 +23,7 @@ export default function Header() { { href: `/${locale}/market`, label: t("market") }, { href: `/${locale}/sobre`, label: t("about") }, { href: `/${locale}/precos`, label: t("prices") }, - { href: `/${locale}/apoiar`, label: "Apoiar", highlight: true }, + { href: `/${locale}/apoiar`, label: t("support"), highlight: true }, ]; return ( diff --git a/components/donation-card.tsx b/components/donation-card.tsx index 600df42..dbcaa5f 100644 --- a/components/donation-card.tsx +++ b/components/donation-card.tsx @@ -26,6 +26,7 @@ import { DialogTitle, } from "@/components/ui/dialog"; import { DonationTier, DonationResponse } from "@/types/donation"; +import { useTranslations } from "next-intl"; interface DonationCardProps extends DonationTier {} @@ -63,6 +64,8 @@ export function DonationCard({ const [paymentConfirmed, setPaymentConfirmed] = useState(false); const [showThankYouModal, setShowThankYouModal] = useState(false); + const t = useTranslations("donation"); + const icons = { coffee: Coffee, pizza: Pizza, @@ -440,27 +443,31 @@ export function DonationCard({ htmlFor="customAmount" className="text-sm text-muted-foreground" > - Valor (R$) + {t("form.value")}

- Mín: R$ {customProduct.minAmount.toFixed(2)} | Máx: R${" "} - {customProduct.maxAmount.toFixed(2)} + {t("form.min")}: R$ {customProduct.minAmount.toFixed(2)} |{" "} + {t("form.max")}: R$ {customProduct.maxAmount.toFixed(2)}

{customAmount && !isValidCustomAmount() && (

{parseFloat(customAmount) < customProduct.minAmount - ? `Mínimo é R$ ${customProduct.minAmount.toFixed(2)}` - : `Máximo é R$ ${customProduct.maxAmount.toFixed(2)}`} + ? `${t( + "form.minAmount" + )} ${customProduct.minAmount.toFixed(2)}` + : `${t( + "form.maxAmount" + )} ${customProduct.maxAmount.toFixed(2)}`}

)} @@ -474,12 +481,14 @@ export function DonationCard({ {loading ? ( <> - Processando... + {t("form.processing")} ) : customAmount ? ( - `Doar R$ ${parseFloat(customAmount || "0").toFixed(2)}` + `${t("form.donate")} ${parseFloat( + customAmount || "0" + ).toFixed(2)}` ) : ( - "Escolha o valor" + t("form.chooseAmount") )} @@ -500,10 +509,10 @@ export function DonationCard({ {loading ? ( <> - Processando... + {t("form.processing")} ) : ( - "Apoiar com PIX" + t("form.supportWithPix") )} @@ -516,7 +525,7 @@ export function DonationCard({ - Como deseja contribuir? + {t("form.howToContribute")} @@ -530,13 +539,15 @@ export function DonationCard({
-

Doação Anônima

+

+ {t("form.anonymousTitle")} +

- Rápido e sem cadastro. Gere o PIX imediatamente. + {t("form.anonymousDesc")}

@@ -546,35 +557,37 @@ export function DonationCard({ onClick={handleIdentifiedClick} > - Recomendado + {t("form.recommended")}
-

Quero me Identificar

+

+ {t("form.identifiedTitle")} +

- Ajude-nos a agradecer e oferecer benefícios + {t("form.identifiedDesc")}

- Agradecimento personalizado por email + {t("form.thankByEmail")}
- Acesso antecipado a novos recursos + {t("form.earlyAccess")}
- Histórico de suas contribuições + {t("form.contributionHistory")}
@@ -585,7 +598,7 @@ export function DonationCard({ - Informações para Doação + {t("form.donorInfo")}
@@ -597,47 +610,51 @@ export function DonationCard({
setDonorName(e.target.value)} - placeholder="Seu nome ou apelido" + placeholder={t("form.namePlaceholder")} maxLength={50} />
- + setDonorEmail(e.target.value)} - placeholder="seu@email.com" + placeholder={t("form.emailPlaceholder")} />
setDonorPhone(formatPhone(e.target.value))} - placeholder="(11) 98888-7777" + placeholder={t("form.phonePlaceholder")} maxLength={15} />