Skip to content

Commit 6d5b124

Browse files
Spanish Translation and English Scroll Docs Fixes (Remake) (#95)
* spanish bug fix * redo previous fixes * spanish grammar fix * localization improvements on developers index page * improvement proposals for some developers pages * finished my Developer review * improvements to user guide in spanish * learn spanish translation review * technology spanish translation review * Glosary update --------- Co-authored-by: ManuGodzilla <[email protected]> Co-authored-by: axlvaz <[email protected]>
1 parent 28ac645 commit 6d5b124

File tree

84 files changed

+4744
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+4744
-14
lines changed

astro-i18next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
export default {
33
defaultLocale: "en",
44
showDefaultLocale: true,
5-
locales: ["en", "zh"],
5+
locales: ["en", "zh", "es"],
66
load: ["server", "client"],
77
}

public/locales/en/translation.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
{
2+
"rightSidebar": {
3+
"onThisPage": "On This Page",
4+
"more": "More",
5+
"editThisPage": "Edit this page",
6+
"joinOurCommunity": "Join our community",
7+
"feedback": "Feedback"
8+
},
9+
"ui": {
10+
"whatsNext": "What's Next",
11+
"readMore": "Read More"
12+
},
213
"landing": {
314
"test": "test",
415
"search": {

public/locales/es/translation.json

Lines changed: 144 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,148 @@
11
{
2+
"rightSidebar": {
3+
"onThisPage": "En esta página",
4+
"more": "Más",
5+
"editThisPage": "Editar esta página",
6+
"joinOurCommunity": "Únete a nuestro Discord",
7+
"feedback": "Feedback"
8+
},
9+
"ui": {
10+
"whatsNext": "¿Qué sigue?",
11+
"readMore": "Leer Más"
12+
},
13+
"landing": {
14+
"test": "test",
15+
"search": {
16+
"title": "Bienvenido a la Documentación de Scroll",
17+
"placeholder": "Buscar Documentación de Scroll..."
18+
},
19+
"newUserCTA": {
20+
"title": "Nuevo en Scroll y los ZK Rollups?",
21+
"description": "Aprende lo básico en la Guía de Inicio"
22+
},
23+
"resourcesCTA": {
24+
"title": "Recursos Útiles"
25+
},
26+
"nodesCTA": {
27+
"title": "Necesitas correr tu propio Nodo de Scroll?",
28+
"description": "Consulte la Guía del Operador de Nodos para obtener más información sobre la puesta en marcha y el mantenimiento de los Nodos de Scroll.",
29+
"buttonText": "Guía del Operador de Nodos"
30+
},
31+
"TutorialsCTA": {
32+
"title": "Ver tutoriales",
33+
"description": "Obtenga más información sobre la tecnología que estamos construyendo. Subimos constantemente nuevos vídeos a nuestro canal de YouTube.",
34+
"buttonText": "Ver tutoriales"
35+
},
36+
"LinksCTA": {
37+
"card1": {
38+
"title": "¿Necesita ayuda para integrarse?",
39+
"description": "Talk to an expert once we TODO: a url"
40+
},
41+
"card2": {
42+
"title": "Discord",
43+
"description": "Únete a nuestra Comunidad"
44+
},
45+
"card3": {
46+
"title": "TODO: Discourse",
47+
"description": "Really, join the community"
48+
}
49+
},
50+
"NewsletterCTA": {
51+
"title": "Stay updated on the latest Scroll news",
52+
"placeholder": "Enter your email address",
53+
"buttonText": "Sign up"
54+
}
55+
},
56+
"sidebar": {
57+
"gettingStarted": {
58+
"gettingStarted": "Primeros Pasos",
59+
"overview": "Vista General",
60+
"scrollSepoliaTestnet": "Scroll Sepolia Testnet",
61+
"userGuide": "Guía de Usuario",
62+
"setup": "Configuración",
63+
"faucet": "Faucet",
64+
"bridge": "Bridge",
65+
"transferTokens": "Transferencia de Tokens",
66+
"commonErrors": "Errores Comunes",
67+
"rollupExplorer": "Rollup Explorer",
68+
"scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer",
69+
"sepoliaBlockExplorer": "Sepolia Explorer",
70+
"community": "Comunidad",
71+
"discord": "Discord",
72+
"communityForum": "Forum de la Comunidad"
73+
},
74+
"developers": {
75+
"developers": "Desarrolladores",
76+
"buildingOnScroll": "Construyendo en Scroll",
77+
"developerQuickstart": "Inicio rápido para Desarrolladores",
78+
"verifyingSmartContracts": "Verificando Smart Contracts",
79+
"scrollContracts": "Contratos de Scroll",
80+
"ethereumAndScrollDifferences": "Diferencias entre Scroll y Ethereum",
81+
"l1AndL2Bridging": "L1 y L2 Bridging",
82+
"ethAndErc20TokenBridge": "ETH y ERC20 Token Bridge",
83+
"erc721NftBridge": "ERC721 NFT Bridge",
84+
"erc1155TokenBridge": "ERC1155 Token Bridge",
85+
"theScrollMessenger": "El Scroll Messenger",
86+
"transactionFeesOnScroll": "Comisiones de Transacciones en Scroll",
87+
"l2Fee": "Comisión L2",
88+
"l1Fee": "Comisión L1",
89+
"gasOracle": "Gas Oracle",
90+
"future": "Futuro",
91+
"guides": "Guías",
92+
"contractDeploymentTutorial": "Tutorial de Despliegue de Contratos",
93+
"crossChainInteraction": "Interacción Cross-chain del Scroll Messenger",
94+
"bridgingERC20TokenThroughCustomGateway": "Bridging de un ERC20 a través de una Gateway Personalizada",
95+
"bridgingERC721NftThroughCustomGateway": "Bridging de un ERC721 NFT a través de una Gateway Personalizada",
96+
"bridgingERC1155ThroughCustomGateway": "Bridging de un ERC1155 a través de una Gateway Personalizada",
97+
"estimatingGasAndTxFees": "Estimación de las Tarifas de Gas y Tx",
98+
"resources": "Recursos",
99+
"rollupExplorer": "Rollup Explorer",
100+
"scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer",
101+
"sepoliaBlockExplorer": "Sepolia Explorer"
102+
},
103+
"technology": {
104+
"introduction": "Introducción",
105+
"principles": "Principios",
106+
"scrollArchitecture": "Arquitectura de Scroll",
107+
"overview": "Vista General",
108+
109+
"scrollChain": "Scroll Chain",
110+
"accountsAndState": "Cuentas y Estado",
111+
"blocks": "Bloques",
112+
"transactions": "Transacciones",
113+
"rollupProcess": "Proceso del Rollup",
114+
"evmDifferencesFromEthereum": "Diferencias de EVM respecto a Ethereum",
115+
116+
"bridge": "Bridge",
117+
"crossDomainMessaging": "Cross-Domain Messaging",
118+
"depositGateways": "Gateways de Depósito",
119+
"withdrawGateways": "Gateways de Retiro",
120+
121+
"sequencer": "Secuenciador",
122+
"executionNode": "Nodo de Ejecución",
123+
"rollupNode": "Nodo Rollup",
124+
"zkTrie": "zkTrie",
125+
126+
"zkevm": "zkEVM",
127+
"introToZkevm": "Intro a la zkEVM",
128+
"zkevmOverview": "Vista General de la zkEVM",
129+
"bridgeOverview": "Vista General del Bridge",
130+
"prover": "Prover",
131+
"proofGeneration": "Proof Generation",
132+
"cpuProverRepo": "CPU Prover Repo"
133+
},
134+
"learn": {
135+
"ethereumAndProtocols": "Ethereum y Protocolos",
136+
"theScalabilityProblem": "El Problema de la Escalabilidad",
137+
"introToRollups": "Intro a los Rollups",
138+
"zeroKnowledge": "Zero Knowledge",
139+
"introToZeroKnowledge": "Intro a la Zero Knowledge",
140+
"polynomialCommitmentSchemes": "Esquemas de Compromiso Polinómicos",
141+
"kzgCommitmentScheme": "Esquema de Compromiso KZG",
142+
"additionalResources": "Recursos Adicionales"
143+
}
144+
},
2145
"notTranslated": {
3-
"notTranslated": "Esta página aún no ha sido traducida."
146+
"notTranslated": "Esta página no ha sido traducida aún."
4147
}
5148
}

src/components/NavCard.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import i18next, { t } from "i18next"
23
export type Props = {
34
icon: string
45
name: string
@@ -17,7 +18,7 @@ const { icon, name, content, link } = Astro.props as Props
1718
<span class="navs-item-title">{name}</span>
1819
<span class="navs-item-content">{content}</span>
1920
<a class="navs-item-link" href={link}>
20-
Read more
21+
{t("ui.readMore")}
2122
<span class="link-icon"></span>
2223
</a>
2324
</div>

src/components/PageContent/WhatsNext.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2+
import i18next, { t } from "i18next"
23
export type Props = { content: Record<string, string> }
34
const { content = {} } = Astro.props as Props
45
---
56

67
<section>
7-
<h4>Whats Next</h4>
8+
<h4>{t("ui.whatsNext")}</h4>
89
<ul class="whats-next">
910
{
1011
Object.keys(content).map((key) => (

src/components/RightSidebar/MoreMenu.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2+
import i18next, { t } from "i18next"
23
import * as CONFIG from "../../config"
34
const { editHref } = Astro.props
45
const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
56
---
67

7-
{showMoreSection && <h2 class="heading">More</h2>}
8+
{showMoreSection && <h2 class="heading">{t("rightSidebar.more")}</h2>}
89
<ul>
910
{
1011
editHref && (
@@ -27,7 +28,7 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
2728
</clipPath>
2829
</defs>
2930
</svg>
30-
<span>Edit this page</span>
31+
<span>{t("rightSidebar.editThisPage")}</span>
3132
</a>
3233
</li>
3334
)
@@ -56,7 +57,7 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
5657
fill="currentColor"
5758
/>
5859
</svg>
59-
<span>Join our community</span>
60+
<span>{t("rightSidebar.joinOurCommunity")}</span>
6061
</a>
6162
</li>
6263
)

src/components/RightSidebar/RightSidebar.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import i18next, { t } from "i18next"
23
import TableOfContents from "./TableOfContents"
34
import MoreMenu from "./MoreMenu.astro"
45
import { Feedback } from "../PageContent/Feedback"
@@ -15,7 +16,7 @@ const { content, githubEditUrl, headings, clientSideToc } = Astro.props
1516
</div>
1617

1718
<div>
18-
<h2 class="heading feedback-title">Feedback</h2>
19+
<h2 class="heading feedback-title">{t("rightSidebar.feedback")}</h2>
1920
<div class="feedback-wrapper">
2021
<Feedback client:idle />
2122
</div>

src/components/RightSidebar/TableOfContents/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { useStore } from "@nanostores/preact"
33
import type { FunctionalComponent } from "preact"
44
import { useState, useEffect, useRef } from "preact/hooks"
55
import { shouldUpdateToc } from "./tocStore"
6+
import i18next, { t } from "i18next"
7+
68
export interface Heading {
79
depth: number
810
text: string
@@ -79,7 +81,7 @@ const TableOfContents: FunctionalComponent<{
7981

8082
return (
8183
<>
82-
<h2 className="heading">On this page</h2>
84+
<h2 className="heading">{t("rightSidebar.onThisPage")}</h2>
8385
<ul ref={tableOfContents}>
8486
{headings
8587
.filter(({ depth }) => depth > 1 && depth < 4)

src/config/menu.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ export const MENU: MenuItems = {
2727
{ text: "技术", link: "/zh/technology", section: "technology" },
2828
{ text: "学习", link: "/zh/learn", section: "learn" },
2929
],
30+
es: [
31+
{
32+
text: "¿Cómo empezar?",
33+
link: "/es/getting-started/overview",
34+
section: "gettingStarted",
35+
},
36+
{ text: "Desarrolladores", link: "/es/developers", section: "developers" },
37+
{ text: "Tecnología", link: "/es/technology", section: "technology" },
38+
{ text: "Aprende", link: "/es/learn", section: "learn" },
39+
],
3040
}

src/config/sidebar.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const getSidebar = () => {
6262
],
6363
developers: [
6464
{
65-
section: "Developers",
65+
section: t("sidebar.developers.developers"),
6666
contents: [
6767
{ title: t("sidebar.developers.buildingOnScroll"), url: formatUrl("developers") },
6868
{ title: t("sidebar.developers.developerQuickstart"), url: formatUrl("developers/developer-quickstart") },
@@ -125,7 +125,7 @@ export const getSidebar = () => {
125125
],
126126
},
127127
{
128-
section: "Guides",
128+
section: t("sidebar.developers.guides"),
129129
contents: [
130130
{
131131
title: t("sidebar.developers.contractDeploymentTutorial"),
@@ -154,7 +154,7 @@ export const getSidebar = () => {
154154
],
155155
},
156156
{
157-
section: "Resources",
157+
section: t("sidebar.developers.resources"),
158158
contents: [
159159
{ title: t("sidebar.developers.rollupExplorer"), url: "https://scroll.io/rollupscan" },
160160
{ title: t("sidebar.developers.scrollSepoliaBlockExplorer"), url: "https://sepolia-blockscout.scroll.io/" },
@@ -164,8 +164,8 @@ export const getSidebar = () => {
164164
],
165165
technology: [
166166
{
167-
section: "Overview",
168-
contents: [{ title: t("Scroll Architecture"), url: formatUrl("technology") }],
167+
section: t("sidebar.technology.overview"),
168+
contents: [{ title: t("sidebar.technology.scrollArchitecture"), url: formatUrl("technology") }],
169169
},
170170
{
171171
section: t("sidebar.technology.scrollChain"),

0 commit comments

Comments
 (0)