Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export default async function Home({
await sendEmail(locale);
}}
>
<button type="submit">{t('home.submit')}</button>
<button type="submit">{t('submit')}</button>
</form>
<a href={locale === 'en' ? '/pt' : '/en'}>
{t('home.switch-language-link')}
{t('switch-language-link')}
</a>
</>
);
Expand Down
16 changes: 8 additions & 8 deletions emails/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,41 @@ export async function Pricing({ locale }: PricingProps) {
<Head />
<Body>
<Preview>
{t('email.preview')}
{t('preview')}
</Preview>
<Container className="bg-white rounded-[12px] mx-auto max-w-[500px] p-[24px]">
<Section className="bg-white border border-solid border-gray-300 rounded-[12px] text-gray-600 p-[28px] w-full text-left mb-0">
<Text className="text-indigo-600 text-[12px] leading-[20px] font-semibold tracking-wide mb-[16px] mt-[16px] uppercase">
{t('email.exclusive-offer')}
{t('exclusive-offer')}
</Text>
<Text className="text-[30px] font-bold leading-[36px] mb-[12px] mt-0">
<span className="text-[rgb(16,24,40)]">$12</span>{' '}
<span className="text-[16px] font-medium leading-[20px]">
{t('email.per-month')}
{t('per-month')}
</span>
</Text>
<Text className="text-gray-700 text-[14px] leading-[20px] mt-[16px] mb-[24px]">
{t('email.copy')}
{t('copy')}
</Text>
<ul className="text-gray-500 text-[14px] leading-[24px] mb-[32px] pl-[14px]">
{new Array(5).keys().map((index) => (
<li key={index} className="mb-[12px]">
{t(`email.feature-${index}`)}
{t(`feature-${index}`)}
</li>
))}
</ul>
<Button
href="#"
className="bg-indigo-600 rounded-[8px] box-border text-white inline-block text-[16px] leading-[24px] font-bold tracking-wide mb-[24px] max-w-full p-[14px] text-center w-full"
>
{t('email.call-to-action')}
{t('call-to-action')}
</Button>
<Hr />
<Text className="text-gray-500 text-[12px] leading-[16px] italic mt-[24px] mb-[6px] text-center">
{t('email.urgency-note')}
{t('urgency-note')}
</Text>
<Text className="text-gray-500 text-[12px] m-0 leading-[16px] text-center">
{t('email.free-notice')}
{t('free-notice')}
</Text>
</Section>
</Container>
Expand Down
26 changes: 12 additions & 14 deletions lib/i18n/messages/en/email.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"home.submit": "Submit in English",
"home.switch-language-link": "Go to other translation",
"email.preview": "Exclusive Offer Just For You: Unlock Premium Features at $12/month",
"email.exclusive-offer": "Exclusive Offer",
"email.per-month": "/ month",
"email.copy": "We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.",
"email.feature-0": "Manage up to 25 premium products",
"email.feature-1": "Grow your audience with 10,000 subscribers",
"email.feature-2": "Make data-driven decisions with advanced analytics",
"email.feature-3": "Priority support with 24-hour response time",
"email.feature-4": "Seamless integration with your favorite tools",
"email.call-to-action": "Claim Your Special Offer",
"email.urgency-note": "Limited time offer - Upgrade now and save 20%",
"email.free-notice": "No credit card required. 14-day free trial available."
"preview": "Exclusive Offer Just For You: Unlock Premium Features at $12/month",
"exclusive-offer": "Exclusive Offer",
"per-month": "/ month",
"copy": "We've handcrafted the perfect plan tailored specifically for your needs. Unlock premium features at an unbeatable value.",
"feature-0": "Manage up to 25 premium products",
"feature-1": "Grow your audience with 10,000 subscribers",
"feature-2": "Make data-driven decisions with advanced analytics",
"feature-3": "Priority support with 24-hour response time",
"feature-4": "Seamless integration with your favorite tools",
"call-to-action": "Claim Your Special Offer",
"urgency-note": "Limited time offer - Upgrade now and save 20%",
"free-notice": "No credit card required. 14-day free trial available."
}
4 changes: 2 additions & 2 deletions lib/i18n/messages/en/home.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"home.submit": "Submit in English",
"home.switch-language-link": "Go to other translation"
"submit": "Submit in English",
"switch-language-link": "Go to other translation"
}
24 changes: 12 additions & 12 deletions lib/i18n/messages/pt/email.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"email.preview": "Oferta Exclusiva Só Para Você: Desbloqueie Funcionalidades com $12/mês",
"email.exclusive-offer": "Oferta Exclusiva",
"email.per-month": "/ mês",
"email.copy": "Criamos o plano perfeito especialmente adaptado às suas necessidades. Desbloqueie recursos premium com um valor imbatível.",
"email.feature-0": "Gerencie até 25 produtos premium",
"email.feature-1": "Aumente seu público com 10.000 assinantes",
"email.feature-2": "Tome decisões baseadas em dados com análises avançadas",
"email.feature-3": "Suporte prioritário com tempo de resposta de 24 horas",
"email.feature-4": "Integração perfeita com suas ferramentas favoritas",
"email.call-to-action": "Reivindique Sua Oferta Especial",
"email.urgency-note": "Oferta por tempo limitado - Atualize agora e economize 20%",
"email.free-notice": "Não é necessário cartão de crédito. Teste gratuito de 14 dias disponível."
"preview": "Oferta Exclusiva Só Para Você: Desbloqueie Funcionalidades com $12/mês",
"exclusive-offer": "Oferta Exclusiva",
"per-month": "/ mês",
"copy": "Criamos o plano perfeito especialmente adaptado às suas necessidades. Desbloqueie recursos premium com um valor imbatível.",
"feature-0": "Gerencie até 25 produtos premium",
"feature-1": "Aumente seu público com 10.000 assinantes",
"feature-2": "Tome decisões baseadas em dados com análises avançadas",
"feature-3": "Suporte prioritário com tempo de resposta de 24 horas",
"feature-4": "Integração perfeita com suas ferramentas favoritas",
"call-to-action": "Reivindique Sua Oferta Especial",
"urgency-note": "Oferta por tempo limitado - Atualize agora e economize 20%",
"free-notice": "Não é necessário cartão de crédito. Teste gratuito de 14 dias disponível."
}
4 changes: 2 additions & 2 deletions lib/i18n/messages/pt/home.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"home.submit": "Enviar em Português",
"home.switch-language-link": "Ir para outra tradução"
"submit": "Enviar em Português",
"switch-language-link": "Ir para outra tradução"
}