Skip to content

Commit 1521c0c

Browse files
authored
landing page and subscribe footer translated to spanish (#154)
1 parent e4b9f05 commit 1521c0c

File tree

8 files changed

+44
-36
lines changed

8 files changed

+44
-36
lines changed

public/locales/en/translation.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@
4848
}
4949
},
5050
"NewsletterCTA": {
51-
"title": "Stay updated on the latest Scroll news",
52-
"placeholder": "Enter your email address",
53-
"buttonText": "Sign up"
51+
"title": "Stay up-to-date on the latest Scroll Developer news",
52+
"text": "Roadmap updates, virtual and live events, ecosystem opportunities and more",
53+
"placeholder": "your email address here",
54+
"thankYouForSubscribing": "Thank you for subscribing!",
55+
"correctEmail": "Please use a correct email address.",
56+
"pleaseInsertEmail": "Please insert your email."
5457
}
5558
},
5659
"sidebar": {

public/locales/es/translation.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@
4848
}
4949
},
5050
"NewsletterCTA": {
51-
"title": "Stay updated on the latest Scroll news",
52-
"placeholder": "Enter your email address",
53-
"buttonText": "Sign up"
51+
"title": "Mantente actualizado con las más recientes noticias sobre el Desarrollo de Scroll",
52+
"text": "Roadmap, actualizaciones, eventos virtuales y presenciales, oportunidades en el ecosistema y más",
53+
"placeholder": "tu correo electrónico aquí",
54+
"thankYouForSubscribing": "¡Gracias por suscribirte!",
55+
"correctEmail": "Porfavor usa un correo electrónico válido.",
56+
"pleaseInsertEmail": "Porfavor ingresa tu correo electrónico."
5457
}
5558
},
5659
"sidebar": {

src/components/Footer/Subscribe/EmailInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react"
22
import styles from "./EmailInput.module.css"
33
import ArrowSvg from "~/assets/svgs/footer/arrow-right.svg?react"
44
import { clsx } from "~/lib"
5+
import { t } from "i18next"
56

67
const EmailInput = (props) => {
78
const { end, onClick, onEnter, ...restProps } = props
@@ -23,7 +24,7 @@ const EmailInput = (props) => {
2324
<button className={clsx(styles.iconButton, "dark:text-black")} onClick={onClick} disabled={end}>
2425
<ArrowSvg></ArrowSvg>
2526
</button>
26-
<div className={clsx(styles.success, "dark:text-black", "dark:bg-white")}>Thank you for subscribing!</div>
27+
<div className={clsx(styles.success, "dark:text-black", "dark:bg-white")}>{ t("landing.NewsletterCTA.thankYouForSubscribing") }</div>
2728
</div>
2829
<input
2930
placeholder="your email address here"

src/components/Footer/Subscribe/Subscribe.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useState, useEffect } from "preact/hooks"
33
import MailchimpSubscribe from "react-mailchimp-subscribe"
44
import SubscribeSvg from "~/assets/svgs/footer/subscribe.svg?react"
55
import { clsx } from "~/lib"
6+
import { t } from "i18next"
67

78
import EmailInput from "./EmailInput.tsx"
89
import styles from "./Subscribe.module.css"
@@ -26,9 +27,9 @@ export default function Subscribe() {
2627

2728
const handleSubmit = (subscribe) => {
2829
if (!email) {
29-
setCustomMessage("Please insert your email.")
30+
setCustomMessage(t("landing.NewsletterCTA.pleaseInsertEmail"))
3031
} else if (!emailValid) {
31-
setCustomMessage("Please use a correct email address.")
32+
setCustomMessage(t("landing.NewsletterCTA.correctEmail"))
3233
} else {
3334
subscribe({ EMAIL: email })
3435
setEmail("")
@@ -47,9 +48,9 @@ export default function Subscribe() {
4748
</span>
4849

4950
<div className={styles.copyBox}>
50-
<div className={styles.subscribeTitle}>Stay up-to-date on the latest Scroll Developer news</div>
51+
<div className={styles.subscribeTitle}>{ t("landing.NewsletterCTA.title") }</div>
5152
<div className={styles.subscribeText}>
52-
Roadmap updates, virtual and live events, ecosystem opportunities and more
53+
{ t("landing.NewsletterCTA.text") }
5354
</div>
5455
</div>
5556
<MailchimpSubscribe
@@ -62,7 +63,7 @@ export default function Subscribe() {
6263
onChange={handleChangeEmail}
6364
onClick={() => handleSubmit(subscribe)}
6465
onEnter={() => handleSubmit(subscribe)}
65-
placeholder="your email address here"
66+
placeholder= { t("landing.NewsletterCTA.placeholder") }
6667
end={status === "success"}
6768
/>
6869
{customMessage && <div className={styles.errorMessage}>{customMessage}</div>}

src/pages/es/home/ConnectUs.astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ import ContributeSvg from "~/assets/svgs/home/Contribute.svg?raw"
88
const mediaList = [
99
{
1010
icon: DiscordSvg,
11-
name: "Join our Discord",
12-
content: "Connect with other Scroll developers and users.",
11+
name: "Únete a nuestro Discord",
12+
content: "Conecta con otros desarradores y usuarios de Scroll.",
1313
link: "https://discord.gg/scroll",
1414
},
1515
{
1616
icon: ForumSvg,
17-
name: "Community Forum",
18-
content: "Discuss and propose changes to Scroll’s core protocols.",
17+
name: "Foro de la Comunidad",
18+
content: "Conversa y propón cambios a los protocolos fundamentales de Scroll.",
1919
link: "http://community.scroll.io/",
2020
},
2121
{
2222
icon: ContributeSvg,
23-
name: "Contribute to Scroll",
24-
content: "Build with other developers.",
23+
name: "Contribuye a Scroll",
24+
content: "Construye con otros desarrolladores.",
2525
link: "https://github.com/scroll-tech/contribute-to-scroll",
2626
},
2727
]
2828
---
2929

3030
<div class="connect-us">
3131
<SectionHeader
32-
title="Connect with us"
33-
content="Keep up to date with the latest news and developments from the Scroll Community."
32+
title="Conecta con nosotros"
33+
content="Mantente al tanto de las noticias y desarrollores por parte de la comunidad de Scroll."
3434
/>
3535
<div class="medias">
3636
{

src/pages/es/home/Navigate.astro

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@ import SectionHeader from "~/components/SectionHeader/index.astro"
99
const navList = [
1010
{
1111
icon: StartSvg,
12-
name: "Getting started",
13-
content: "Bridge into Scroll and explore our dApp Ecosystem.",
14-
link: "/en/getting-started/overview",
12+
name: "¿Cómo empezar?",
13+
content: "Migra hacia Scroll usando el Bridge y explora el Ecosistema de dApps.",
14+
link: "/es/getting-started/overview",
1515
},
1616
{
1717
icon: DevelopSvg,
18-
name: "Developers",
19-
content: "Dive into Scroll’s developer documentation.",
20-
link: "/en/developers",
18+
name: "Desarrolladores",
19+
content: "Sumérgete en la documentación para desarrolladores de Scroll.",
20+
link: "/es/developers",
2121
},
2222
{
2323
icon: TechnologySvg,
24-
name: "Technology",
25-
content: "An overview of Scroll’s zkEVM Architecture.",
26-
link: "/en/technology",
24+
name: "Tecnología",
25+
content: "Un vistazo general a la arquitectura de la zkEVM de Scroll.",
26+
link: "/es/technology",
2727
},
2828
{
2929
icon: LearnSvg,
30-
name: "Learn",
31-
content: "An introduction to the world of ZK and Scalability.",
32-
link: "/en/learn",
30+
name: "Aprende",
31+
content: "Una introducción al mundo de ZK y de la escalabilidad.",
32+
link: "/es/learn",
3333
},
3434
]
3535
---
3636

3737
<div class="navigate">
38-
<SectionHeader title="Navigate the Docs" content="Start developing on Scroll today." />
38+
<SectionHeader title="Navega la Documentación" content="Inicia tu desarrollo en Scroll hoy." />
3939
<div class="navs">
4040
{navList.map(({ icon, name, content, link }) => <NavCard icon={icon} name={name} content={content} link={link} />)}
4141
</div>

src/pages/es/home/QuickStart.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const toolList = [
2020

2121
<div>
2222
<SectionHeader
23-
title="Developer Quickstart"
24-
content="Start developing on Scroll with all of your favourite tools for building and testing smart contracts."
23+
title="Inicio rápido para Desarrolladores"
24+
content="Comienza a construir en Scroll con todas tus herramientas favoritas de desarollo y de testing de Smart Contracts."
2525
/>
2626
<div class="tools">
2727
{

src/pages/es/home/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ changeLanguage("es")
1212
<HomeLayout>
1313
<div class="header bg-black">
1414
<div class="inner">
15-
<p class="header-title text-white">Welcome to<br /> Scroll Documentation</p>
15+
<p class="header-title text-white">Bienvenido a la<br /> Documentación de Scroll</p>
1616
<Search client:visible />
1717
</div>
1818
</div>

0 commit comments

Comments
 (0)