From 84926ddc2fdd0b3aba5b49bbd5d98802d4656ece Mon Sep 17 00:00:00 2001 From: axlvaz Date: Mon, 4 Sep 2023 20:45:44 -0300 Subject: [PATCH] translated all public pages to spanish and fixed some errors~ --- public/locales/en/translation.json | 10 ++ public/locales/es/translation.json | 144 +++++++++-------- src/components/Header/Header.astro | 2 - src/components/PageContent/WhatsNext.astro | 3 +- src/components/RightSidebar/MoreMenu.astro | 7 +- .../RightSidebar/RightSidebar.astro | 3 +- .../RightSidebar/TableOfContents/index.tsx | 3 +- src/config/menu.ts | 10 ++ src/config/sidebar.ts | 10 +- ...roll-messenger-cross-chain-interaction.mdx | 1 + .../docs/en/developers/scroll-contracts.mdx | 1 + .../docs/en/technology/chain/transactions.mdx | 8 +- .../en/technology/zkevm/zkevm-overview.mdx | 1 - .../es/developers/developer-quickstart.mdx | 80 +++++----- .../ethereum-and-scroll-differences.mdx | 88 +++++----- ...ridge-erc20-through-the-custom-gateway.mdx | 151 +++++++++--------- .../guides/contract-deployment-tutorial.mdx | 54 +++---- ...roll-messenger-cross-chain-interaction.mdx | 93 ++++++----- src/content/docs/es/developers/index.mdx | 93 +++++------ .../docs/es/developers/l1-and-l2-bridging.mdx | 29 ++-- .../erc1155-token-bridge.mdx | 91 ++++++----- .../l1-and-l2-bridging/erc721-nft-bridge.mdx | 89 +++++------ .../eth-and-erc20-token-bridge.mdx | 142 ++++++++-------- .../the-scroll-messenger.mdx | 82 +++++----- .../docs/es/developers/scroll-contracts.mdx | 27 ++-- .../developers/transaction-fees-on-scroll.mdx | 130 +++++++-------- .../developers/verifying-smart-contracts.mdx | 39 +++-- .../docs/es/getting-started/overview.md | 39 ++--- src/content/docs/es/glossary.md | 59 +++++++ src/content/docs/es/learn/index.mdx | 18 +-- src/content/docs/es/learn/intro-to-rollups.md | 50 +++--- .../docs/es/learn/the-scalability-problem.md | 26 +-- .../additional-zk-learning-resources.md | 22 +-- .../introduction-to-zero-knowledge.mdx | 72 ++++----- .../zero-knowledge/kzg-commitment-scheme.md | 70 ++++---- .../polynomial-commitment-schemes.md | 32 ++-- .../bridge/cross-domain-messaging.mdx | 64 ++++---- .../es/technology/bridge/deposit-gateways.mdx | 108 ++++++------- .../technology/bridge/withdraw-gateways.mdx | 86 +++++----- .../docs/es/technology/chain/accounts.mdx | 32 ++-- .../docs/es/technology/chain/blocks.mdx | 48 +++--- .../docs/es/technology/chain/differences.mdx | 50 +++--- .../docs/es/technology/chain/rollup.mdx | 126 +++++++-------- .../docs/es/technology/chain/transactions.mdx | 82 +++++----- src/content/docs/es/technology/index.mdx | 18 +-- .../technology/sequencer/execution-node.mdx | 104 ++++++------ .../es/technology/sequencer/rollup-node.mdx | 42 ++--- .../docs/es/technology/sequencer/zktrie.mdx | 108 ++++++------- .../es/technology/zkevm/intro-to-zkevm.md | 28 ++-- .../es/technology/zkevm/zkevm-overview.mdx | 51 +++--- src/content/docs/es/user-guide/bridge.mdx | 74 ++++----- .../docs/es/user-guide/common-errors.mdx | 44 ++--- src/content/docs/es/user-guide/faucet.mdx | 24 +-- src/content/docs/es/user-guide/index.md | 40 ++--- src/content/docs/es/user-guide/setup.mdx | 31 ++-- .../docs/es/user-guide/transfer-tokens.md | 20 +-- 56 files changed, 1528 insertions(+), 1431 deletions(-) create mode 100644 src/content/docs/es/glossary.md diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 73586261b..506fb40b8 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -1,4 +1,14 @@ { + "rightSidebar": { + "onThisPage": "On This Page", + "more": "More", + "editThisPage": "Edit this page", + "joinOurCommunity": "Join our community", + "feedback": "Feedback" + }, + "ui": { + "whatsNext": "What's Next" + }, "landing": { "test": "test", "search": { diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index 73586261b..594b3a610 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -1,35 +1,45 @@ { + "rightSidebar": { + "onThisPage": "En esta página", + "more": "Más", + "editThisPage": "Editar esta página", + "joinOurCommunity": "Únete a nuestro Discord", + "feedback": "Feedback" + }, + "ui": { + "whatsNext": "¿Qué sigue?" + }, "landing": { "test": "test", "search": { - "title": "Welcome to the Scroll Documentation", - "placeholder": "Search Scroll documentation..." + "title": "Bienvenido a la Documentación de Scroll", + "placeholder": "Buscar Documentación de Scroll..." }, "newUserCTA": { - "title": "New to Scroll and ZK Rollups?", - "description": "Learn the basics in the Getting Started Guide." + "title": "Nuevo en Scroll y los ZK Rollups?", + "description": "Aprende lo básico en la Guía de Inicio" }, "resourcesCTA": { - "title": "Useful resources" + "title": "Recursos Útiles" }, "nodesCTA": { - "title": "Need to run your own Scroll Node?", - "description": "See the Node Operator’s Guide to learn about starting and maintaining Scroll Nodes.", - "buttonText": "Node Operator’s Guide" + "title": "Necesitas correr tu propio Nodo de Scroll?", + "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.", + "buttonText": "Guía del Operador de Nodos" }, "TutorialsCTA": { - "title": "Watch tutorials", - "description": "Learn more about the technology we are building. We're constantly uploading new videos to our YouTube channel.", - "buttonText": "Watch tutorials" + "title": "Ver tutoriales", + "description": "Obtenga más información sobre la tecnología que estamos construyendo. Subimos constantemente nuevos vídeos a nuestro canal de YouTube.", + "buttonText": "Ver tutoriales" }, "LinksCTA": { "card1": { - "title": "Need integration support?", + "title": "¿Necesita ayuda para integrarse?", "description": "Talk to an expert once we TODO: a url" }, "card2": { "title": "Discord", - "description": "Join the community" + "description": "Únete a nuestra Comunidad" }, "card3": { "title": "TODO: Discourse", @@ -44,94 +54,94 @@ }, "sidebar": { "gettingStarted": { - "gettingStarted": "Getting Started", - "overview": "Overview", + "gettingStarted": "Primeros Pasos", + "overview": "Vista General", "scrollSepoliaTestnet": "Scroll Sepolia Testnet", - "userGuide": "User Guide", - "setup": "Setup", + "userGuide": "Guía de Usuario", + "setup": "Configuración", "faucet": "Faucet", "bridge": "Bridge", - "transferTokens": "Transfer Tokens", - "commonErrors": "Common Errors", + "transferTokens": "Transferencia de Tokens", + "commonErrors": "Errores Comunes", "rollupExplorer": "Rollup Explorer", "scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer", "sepoliaBlockExplorer": "Sepolia Explorer", - "community": "Community", + "community": "Comunidad", "discord": "Discord", - "communityForum": "Community Forum" + "communityForum": "Forum de la Comunidad" }, "developers": { - "developers": "Developers", - "buildingOnScroll": "Building on Scroll", - "developerQuickstart": "Developer Quickstart", - "verifyingSmartContracts": "Verifying Smart Contracts", - "scrollContracts": "Scroll Contracts", - "ethereumAndScrollDifferences": "Ethereum & Scroll Differences", - "l1AndL2Bridging": "L1 & L2 Bridging", - "ethAndErc20TokenBridge": "ETH & ERC20 Token Bridge", + "developers": "Desarrolladores", + "buildingOnScroll": "Construyendo en Scroll", + "developerQuickstart": "Inicio rápido para Desarrolladores", + "verifyingSmartContracts": "Verificando Smart Contracts", + "scrollContracts": "Contratos de Scroll", + "ethereumAndScrollDifferences": "Diferencias entre Scroll y Ethereum", + "l1AndL2Bridging": "L1 y L2 Bridging", + "ethAndErc20TokenBridge": "ETH y ERC20 Token Bridge", "erc721NftBridge": "ERC721 NFT Bridge", "erc1155TokenBridge": "ERC1155 Token Bridge", - "theScrollMessenger": "The Scroll Messenger", - "transactionFeesOnScroll": "Transaction Fees on Scroll", - "l2Fee": "L2 Fee", - "l1Fee": "L1 Fee", + "theScrollMessenger": "El Scroll Messenger", + "transactionFeesOnScroll": "Comisiones de Transacciones en Scroll", + "l2Fee": "Comisión L2", + "l1Fee": "Comisión L1", "gasOracle": "Gas Oracle", - "future": "Future", - "guides": "Guides", - "contractDeploymentTutorial": "Contract Deployment Tutorial", - "crossChainInteraction": "Scroll Messenger Cross-chain Interaction", - "bridgingERC20TokenThroughCustomGateway": "Bridge an ERC20 through the Custom Gateway", - "bridgingERC721NftThroughCustomGateway": "Bridging ERC721 NFT through Custom Gateway", - "bridgingERC1155ThroughCustomGateway": "Bridging ERC1155 through Custom Gateway", - "estimatingGasAndTxFees": "Estimating Gas & Tx Fees", - "resources": "Resources", + "future": "Futuro", + "guides": "Guías", + "contractDeploymentTutorial": "Tutorial de Despliegue de Contratos", + "crossChainInteraction": "Interacción Cross-chain del Scroll Messenger", + "bridgingERC20TokenThroughCustomGateway": "Bridging de un ERC20 a través de una Gateway Personalizada", + "bridgingERC721NftThroughCustomGateway": "Bridging de un ERC721 NFT a través de una Gateway Personalizada", + "bridgingERC1155ThroughCustomGateway": "Bridging de un ERC1155 a través de una Gateway Personalizada", + "estimatingGasAndTxFees": "Estimación de las Tarifas de Gas y Tx", + "resources": "Recursos", "rollupExplorer": "Rollup Explorer", "scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer", "sepoliaBlockExplorer": "Sepolia Explorer" }, "technology": { - "introduction": "Introduction", - "principles": "Principles", - "scrollArchitecture": "Scroll Architecture", - "overview": "Overview", + "introduction": "Introducción", + "principles": "Principios", + "scrollArchitecture": "Arquitectura de Scroll", + "overview": "Vista General", "scrollChain": "Scroll Chain", - "accountsAndState": "Accounts and State", - "blocks": "Blocks", - "transactions": "Transactions", - "rollupProcess": "Rollup Process", - "evmDifferencesFromEthereum": "EVM Differences from Ethereum", + "accountsAndState": "Cuentas y Estado", + "blocks": "Bloques", + "transactions": "Transacciones", + "rollupProcess": "Proceso del Rollup", + "evmDifferencesFromEthereum": "Diferencias de EVM respecto a Ethereum", "bridge": "Bridge", "crossDomainMessaging": "Cross-Domain Messaging", - "depositGateways": "Deposit Gateways", - "withdrawGateways": "Withdraw Gateways", + "depositGateways": "Gateways de Depósito", + "withdrawGateways": "Gateways de Retiro", - "sequencer": "Sequencer", - "executionNode": "Execution Node", - "rollupNode": "Rollup Node", + "sequencer": "Secuenciador", + "executionNode": "Nodo de Ejecución", + "rollupNode": "Nodo Rollup", "zkTrie": "zkTrie", "zkevm": "zkEVM", - "introToZkevm": "Intro to zkEVM", - "zkevmOverview": "zkEVM Overview", - "bridgeOverview": "Bridge Overview", + "introToZkevm": "Intro a la zkEVM", + "zkevmOverview": "Vista General de la zkEVM", + "bridgeOverview": "Vista General del Bridge", "prover": "Prover", "proofGeneration": "Proof Generation", "cpuProverRepo": "CPU Prover Repo" }, "learn": { - "ethereumAndProtocols": "Ethereum & Protocols", - "theScalabilityProblem": "The Scalability Problem", - "introToRollups": "Intro to Rollups", + "ethereumAndProtocols": "Ethereum y Protocolos", + "theScalabilityProblem": "El Problema de la Escalabilidad", + "introToRollups": "Intro a los Rollups", "zeroKnowledge": "Zero Knowledge", - "introToZeroKnowledge": "Intro to Zero Knowledge", - "polynomialCommitmentSchemes": "Polynomial Commitment Schemes", - "kzgCommitmentScheme": "KZG Commitment Scheme", - "additionalResources": "Additional Resources" + "introToZeroKnowledge": "Intro a la Zero Knowledge", + "polynomialCommitmentSchemes": "Esquemas de Compromiso Polinómicos", + "kzgCommitmentScheme": "Esquema de Compromiso KZG", + "additionalResources": "Recursos Adicionales" } }, "notTranslated": { - "notTranslated": "This page has not been translated yet." + "notTranslated": "Esta página no ha sido traducida aún." } } diff --git a/src/components/Header/Header.astro b/src/components/Header/Header.astro index 26c39da59..5dbcbf177 100644 --- a/src/components/Header/Header.astro +++ b/src/components/Header/Header.astro @@ -51,13 +51,11 @@ const section = frontmatter?.section ?? ""
diff --git a/src/components/PageContent/WhatsNext.astro b/src/components/PageContent/WhatsNext.astro index f201197a6..2e21d4258 100644 --- a/src/components/PageContent/WhatsNext.astro +++ b/src/components/PageContent/WhatsNext.astro @@ -1,10 +1,11 @@ --- +import i18next, { t } from "i18next" export type Props = { content: Record } const { content = {} } = Astro.props as Props ---
-

Whats Next

+

{t("ui.whatsNext")}

    { Object.keys(content).map((key) => ( diff --git a/src/components/RightSidebar/MoreMenu.astro b/src/components/RightSidebar/MoreMenu.astro index 5909a56d4..b5191170e 100644 --- a/src/components/RightSidebar/MoreMenu.astro +++ b/src/components/RightSidebar/MoreMenu.astro @@ -1,10 +1,11 @@ --- +import i18next, { t } from "i18next" import * as CONFIG from "../../config" const { editHref } = Astro.props const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref --- -{showMoreSection &&

    More

    } +{showMoreSection &&

    {t("rightSidebar.more")}

    }
      { editHref && ( @@ -27,7 +28,7 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref - Edit this page + {t("rightSidebar.editThisPage")} ) @@ -56,7 +57,7 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref fill="currentColor" /> - Join our community + {t("rightSidebar.joinOurCommunity")} ) diff --git a/src/components/RightSidebar/RightSidebar.astro b/src/components/RightSidebar/RightSidebar.astro index 6b46c32f3..d26ad856c 100644 --- a/src/components/RightSidebar/RightSidebar.astro +++ b/src/components/RightSidebar/RightSidebar.astro @@ -1,4 +1,5 @@ --- +import i18next, { t } from "i18next" import TableOfContents from "./TableOfContents" import MoreMenu from "./MoreMenu.astro" import { Feedback } from "../PageContent/Feedback" @@ -15,7 +16,7 @@ const { content, githubEditUrl, headings, clientSideToc } = Astro.props
- + diff --git a/src/components/RightSidebar/TableOfContents/index.tsx b/src/components/RightSidebar/TableOfContents/index.tsx index 37ab33571..b41dfe426 100644 --- a/src/components/RightSidebar/TableOfContents/index.tsx +++ b/src/components/RightSidebar/TableOfContents/index.tsx @@ -3,6 +3,7 @@ import { useStore } from "@nanostores/preact" import type { FunctionalComponent } from "preact" import { useState, useEffect, useRef } from "preact/hooks" import { shouldUpdateToc } from "./tocStore" +import i18next, { t } from "i18next" export interface Heading { depth: number text: string @@ -79,7 +80,7 @@ const TableOfContents: FunctionalComponent<{ return ( <> -

On this page

+

{t("rightSidebar.onThisPage")}

    {headings .filter(({ depth }) => depth > 1 && depth < 4) diff --git a/src/config/menu.ts b/src/config/menu.ts index 36636386b..86c993daf 100644 --- a/src/config/menu.ts +++ b/src/config/menu.ts @@ -17,6 +17,16 @@ export const MENU: MenuItems = { { text: "Technology", link: "/en/technology", section: "technology" }, { text: "Learn", link: "/en/learn", section: "learn" }, ], + es: [ + { + text: "¿Cómo empezar?", + link: "/es/getting-started/overview", + section: "gettingStarted", + }, + { text: "Desarrolladores", link: "/es/developers", section: "developers" }, + { text: "Tecnología", link: "/es/technology", section: "technology" }, + { text: "Aprende", link: "/es/learn", section: "learn" }, + ], zh: [ { text: "入门", diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 281d76fab..dff7ea04d 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -62,7 +62,7 @@ export const getSidebar = () => { ], developers: [ { - section: "Developers", + section: t("sidebar.developers.developers"), contents: [ { title: t("sidebar.developers.buildingOnScroll"), url: formatUrl("developers") }, { title: t("sidebar.developers.developerQuickstart"), url: formatUrl("developers/developer-quickstart") }, @@ -125,7 +125,7 @@ export const getSidebar = () => { ], }, { - section: "Guides", + section: t("sidebar.developers.guides"), contents: [ { title: t("sidebar.developers.contractDeploymentTutorial"), @@ -154,7 +154,7 @@ export const getSidebar = () => { ], }, { - section: "Resources", + section: t("sidebar.developers.resources"), contents: [ { title: t("sidebar.developers.rollupExplorer"), url: "https://scroll.io/rollupscan" }, { title: t("sidebar.developers.scrollSepoliaBlockExplorer"), url: "https://sepolia-blockscout.scroll.io/" }, @@ -164,8 +164,8 @@ export const getSidebar = () => { ], technology: [ { - section: "Overview", - contents: [{ title: t("Scroll Architecture"), url: formatUrl("technology") }], + section: t("sidebar.technology.overview"), + contents: [{ title: t("sidebar.technology.scrollArchitecture"), url: formatUrl("technology") }], }, { section: t("sidebar.technology.scrollChain"), diff --git a/src/content/docs/en/developers/guides/scroll-messenger-cross-chain-interaction.mdx b/src/content/docs/en/developers/guides/scroll-messenger-cross-chain-interaction.mdx index 2793510e2..398132087 100644 --- a/src/content/docs/en/developers/guides/scroll-messenger-cross-chain-interaction.mdx +++ b/src/content/docs/en/developers/guides/scroll-messenger-cross-chain-interaction.mdx @@ -5,6 +5,7 @@ title: "Scroll Messenger Cross-chain Interaction" lang: "en" permalink: "developers/guides/scroll-messenger-cross-chain-interaction" excerpt: "In this example, we will launch a dummy smart contract on either Sepolia or Scroll Sepolia testnet and interact with it from the opposite chain." +whatsnext: { "Bridge ERC20 through the Custom Gateway": "/developers/guides/bridge-erc20-through-the-custom-gateway" } --- import Aside from "../../../../../components/Aside.astro" diff --git a/src/content/docs/en/developers/scroll-contracts.mdx b/src/content/docs/en/developers/scroll-contracts.mdx index 81bac2964..0570b661c 100644 --- a/src/content/docs/en/developers/scroll-contracts.mdx +++ b/src/content/docs/en/developers/scroll-contracts.mdx @@ -4,6 +4,7 @@ date: Last Modified title: "Scroll Sepolia Contracts" lang: "en" permalink: "developers/scroll-contracts" +whatsnext: { "Ethereum & Scroll Differences": "/developers/ethereum-and-scroll-differences" } excerpt: "The network info and contract addresses you need to start with Scroll Sepolia Testnet." --- diff --git a/src/content/docs/en/technology/chain/transactions.mdx b/src/content/docs/en/technology/chain/transactions.mdx index 90ac2bfd1..d22a3402a 100644 --- a/src/content/docs/en/technology/chain/transactions.mdx +++ b/src/content/docs/en/technology/chain/transactions.mdx @@ -62,15 +62,15 @@ First, users can directly submit transactions to L2 sequencers. To do so, users Second, deposit and enforced transactions are originated on L1. Scroll L1 bridge contract provides three entry points for users and smart contracts to send transactions from the L1. All messages sent through these three entry points will be appended to the `L1MessageQueue` contract. -- The `ScrollGatewayRouter` contract and several standard token gateways allow users and contracts to deposit standard tokens to L2. See more details in the [Deposit Token Gateways](/-oscADc8SoKAOxjtpcEqKg). -- The `L1ScrollMessenger` contract allows users and contracts to send arbitrary messages to L2. See more details in the [Sending Arbitrary Messages](/UPyw7afFQE6q-9CIdIRBag#Sending-Arbitrary-Messages). -- The `EnforcedTxGateway` contract allows EOAs to initiate an enforced transaction from the same address to withdraw tokens or call other contracts on L2. See more details in the [Sending Enforced Transaction](/UPyw7afFQE6q-9CIdIRBag#Sending-Enforced-Transactions). +- The `ScrollGatewayRouter` contract and several standard token gateways allow users and contracts to deposit standard tokens to L2. See more details in the [Deposit Token Gateways](/technology/bridge/deposit-gateways). +- The `L1ScrollMessenger` contract allows users and contracts to send arbitrary messages to L2. See more details in the [Sending Arbitrary Messages](/technology/bridge/cross-domain-messaging#sending-arbitrary-messages). +- The `EnforcedTxGateway` contract allows EOAs to initiate an enforced transaction from the same address to withdraw tokens or call other contracts on L2. See more details in the [Sending Enforced Transaction](/technology/bridge/cross-domain-messaging#sending-enforced-transactions). The Scroll sequencer periodically starts a new mining job. It pulls the L1 messages from the `L1MessageQueue` contract and transactions in the L2 mempool and seals a block. Once a transaction is included in a L2 block, its status becomes `Confirmed`. ### Commit Transaction Data -The rollup node collects new L2 blocks and packs them into chunks and batches (see more details in [Transaction Batching](/RxRWLFtiQ7W_wbc0jMnQNA)). Periodically it sends a _Commit Transaction_ that posts the data of a batch of transactions to the L1 `ScrollChain` contract. After the Commit Transaction is finalized in a L1 block, the status of the transactions in this batch becomes `Committed`. At this time, users can reconstruct L2 state themselves completely based on the committed data from the L1 contract. +The rollup node collects new L2 blocks and packs them into chunks and batches (see more details in [Transaction Batching](/technology/chain/transactions#transaction-batching)). Periodically it sends a _Commit Transaction_ that posts the data of a batch of transactions to the L1 `ScrollChain` contract. After the Commit Transaction is finalized in a L1 block, the status of the transactions in this batch becomes `Committed`. At this time, users can reconstruct L2 state themselves completely based on the committed data from the L1 contract. ### Finalize Transactions diff --git a/src/content/docs/en/technology/zkevm/zkevm-overview.mdx b/src/content/docs/en/technology/zkevm/zkevm-overview.mdx index 19a1b6326..50bc28318 100644 --- a/src/content/docs/en/technology/zkevm/zkevm-overview.mdx +++ b/src/content/docs/en/technology/zkevm/zkevm-overview.mdx @@ -5,7 +5,6 @@ title: "zkEVM Overview" lang: "en" permalink: "technology/zkevm-overview" excerpt: "In order to understand how to build a zkEVM, which proves the execution of the EVM, we need to first look at the EVM itself." -whatsnext: { "Bridge Overview": "/technology/bridge/bridge-overview" } --- import ClickToZoom from "../../../../../components/ClickToZoom.astro" diff --git a/src/content/docs/es/developers/developer-quickstart.mdx b/src/content/docs/es/developers/developer-quickstart.mdx index fc6b3f563..b30532fc3 100644 --- a/src/content/docs/es/developers/developer-quickstart.mdx +++ b/src/content/docs/es/developers/developer-quickstart.mdx @@ -1,11 +1,11 @@ --- section: developers date: Last Modified -title: "Developer Quickstart" -lang: "en" +title: "Inicio rápido para desarrolladores" +lang: "es" permalink: "developers/developer-quickstart" -excerpt: "Scroll Developer Quickstart helps you acquire testnet Ether, configure your network, and access all of your favorite tooling" -whatsnext: { "Verify Your Smart Contracts": "/developers/verifying-smart-contracts" } +excerpt: "Scroll Developer Quickstart te ayuda a adquirir testnet Ether, configurar tu red y acceder a todas tus herramientas favoritas" +whatsnext: { "Verifica Tus Smart Contracts": "/es/developers/verifying-smart-contracts" } --- import Aside from "../../../../components/Aside.astro" @@ -13,39 +13,39 @@ import ClickToZoom from "../../../../components/ClickToZoom.astro" import networkSelection from "./_images/mmNetworkSelection.png" import injectedProviderMM from "./_images/injectedProviderMM.png" -With Scroll, your favorite tools for building and testing smart contracts just work. +Con Scroll, tus herramientas favoritas para la creación y prueba de smart contracts simplemente funcionan. -Since Scroll is bytecode equivalent with the EVM, you’ll just need to point your favorite builder tools at a Scroll Sepolia Testnet RPC Provider. +Dado que Scroll es equivalente en código de bytes con la EVM, sólo tendrás que dirijir tus herramientas de creación favoritas a un proveedor RPC de Scroll Sepolia Testnet. -If you run into any issues, please reach out in [our Discord](https://discord.gg/scroll). +Si tiene algún problema, póngase en contacto con nosotros en [nuestro Discord](https://discord.gg/scroll). -## Acquiring Testnet Ether +## Adquiriendo Testnet Ether -To start building on Scroll, you'll first need to acquire some testnet ETH. See the [Faucet](/user-guide/faucet) page for tips on getting test tokens on Sepolia. After this, you can bridge your testnet ETH to the Scroll Sepolia Testnet (Layer 2) using our [Bridge](/user-guide/bridge). +Para empezar a construir en Scroll, primero tendrás que adquirir algunos ETH de testnet. Consulta la página [Faucet](/es/user-guide/faucet) para obtener consejos sobre la obtención de tokens de la testnet Sepolia. Después de esto, usted puede transferir sus testnet ETH a la Scroll Sepolia Testnet (Capa 2) utilizando nuestro [Bridge](/es/user-guide/bridge). -For a walkthrough, start with the User Guide's [Setup](/user-guide/setup) page. +Para obtener más información, consulte la página de [Setup](/es/user-guide/bridge) de la Guía del usuario. -## Network Configuration +## Configuración de red -Use the table below to configure your Ethereum tools to the Scroll Sepolia Testnet. +Utilice la siguiente tabla para configurar sus herramientas de Ethereum para la Scroll Sepolia Testnet. -| Network Name | Scroll Sepolia Testnet | Sepolia Testnet | +| Nombre de red | Scroll Sepolia Testnet | Sepolia Testnet | | ------------------ | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | RPC URL | [https://sepolia-rpc.scroll.io/](https://sepolia-rpc.scroll.io/) | [https://eth-sepolia-public.unifra.io](https://eth-sepolia-public.unifra.io) | | Chain ID | 534351 | 11155111 | | Currency Symbol | ETH | ETH | | Block Explorer URL | [https://sepolia-blockscout.scroll.io](https://sepolia-blockscout.scroll.io/) | [https://sepolia.etherscan.io](https://sepolia.etherscan.io) | -## Configure your tooling +## Configure sus herramientas ### Hardhat -Modify your Hardhat config file `hardhat.config.ts` to point at the Scroll Sepolia Testnet public RPC. +Modifica tu archivo de configuración de Hardhat `hardhat.config.ts` para que se dirija al RPC público de Scroll Sepolia Testnet. ```jsx ... @@ -66,7 +66,7 @@ const config: HardhatUserConfig = { ### Foundry -To deploy using the Scroll Sepolia Testnet Public RPC, run: +Para desplegar utilizando el RPC público de Scroll Sepolia Testnet, ejecute: ```bash forge create ... --rpc-url=https://sepolia-rpc.scroll.io/ --legacy @@ -74,19 +74,19 @@ forge create ... --rpc-url=https://sepolia-rpc.scroll.io/ --legacy ### Remix Web IDE -After compiling your contracts, the easiest way to deploy using Remix is by [setting up Metamask](/user-guide/setup#metamask), then selecting the **Scroll Sepolia Testnet** network. +Después de compilar sus contratos, la forma más fácil de desplegar usando Remix es [configurando Metamask](/es/user-guide/setup#metamask) y seleccionando la red **Scroll Sepolia Testnet**. -Now, in the “Deploy and Run Transactions” tab, use the “Environment” drop-down and select “Injected Provider - MetaMask.” +Ahora, en la pestaña "Deploy and Run Transactions", utilice el desplegable "Environment" y seleccione "Injected Provider - MetaMask." -Connect your wallet and select the Scroll Sepolia Testnet. Your account should be selected automatically in Remix, and you can click “Deploy.” +Conecta tu wallet y selecciona el Scroll Sepolia Testnet. Tu cuenta debería seleccionarse automáticamente en Remix, y despues, puedes hacer clic en "Deploy." ### Truffle -Assuming you already have a Truffle environment setup, go to the Truffle [configuration file](https://trufflesuite.com/docs/truffle/reference/configuration/), `truffle.js`. Make sure to have installed HDWalletProvider: `npm install @truffle/hdwallet-provider@1.4.0` +Asumiendo que ya tienes un entorno Truffle configurado, ve al [archivo de configuración](https://trufflesuite.com/docs/truffle/reference/configuration/) de Truffle, `truffle.js`. Asegúrate de tener instalado HDWalletProvider: `npm install @truffle/hdwallet-provider@1.4.0` ```js const HDWalletProvider = require("@truffle/hdwallet-provider") @@ -104,22 +104,22 @@ module.exports = { ### Brownie -To add the Scroll Sepolia Testnet, run the following command: +Para añadir la Scroll Sepolia Testnet, ejecute el siguiente comando: ```bash brownie networks add Ethereum scrollSepolia host=https://sepolia-rpc.scroll.io/ chainid=534351 ``` -To set this as your default network, add the following in your project config file: +Para establecer esta red como predeterminada, añada lo siguiente en el archivo de configuración del proyecto: ```yaml networks: default: scrollSepolia ``` -Another way to add the Scroll Sepolia Testnet is to create a `yaml` file and run a command to add it. +Otra forma de añadir el Scroll Sepolia Testnet es crear un archivo `yaml` y ejecutar un comando para añadirlo. -This is an example of a yaml file called `network-config.yaml` +Este es un ejemplo de un archivo yaml llamado `network-config.yaml`. ```yaml live: @@ -132,13 +132,13 @@ live: name: Scroll Sepolia Testnet ``` -To add the Scroll Sepolia Testnet to the network list, run the following command: +Para añadir la Scroll Sepolia Testnet a la lista de redes, ejecute el siguiente comando: ```bash brownie networks import ./network-config.yaml ``` -To deploy on Scroll, run the following command. In this example, `token.py` is the script to deploy the smart contract. Replace this with the name of your script: +Para desplegar en Scroll, ejecute el siguiente comando. En este ejemplo, `token.py` es el script para desplegar el smart contract. Sustitúyelo por el nombre de tu script: ```bash brownie run token.py --network scrollSepolia @@ -146,7 +146,7 @@ brownie run token.py --network scrollSepolia ### ethers.js -Setting up a Scroll Sepolia Testnet provider in an `ethers` script: +Configuración de un proveedor de Scroll Sepolia Testnet en un script `ethers`: ```jsx import { ethers } from "ethers" @@ -156,11 +156,11 @@ const provider = new ethers.providers.JsonRpcProvider("https://sepolia-rpc.scrol ### scaffold-eth -To deploy using Scaffold-eth, you’ll need to point both your Hardhat and React settings at the Scroll Sepolia Testnet. +Para desplegar usando Scaffold-eth, necesitarás dirigir tus configuraciones de Hardhat y React a la Testnet de Scroll Sepolia. -#### Configure Hardhat +#### Configure el Hardhat -In the `packages/hardhat/hardhat.config.js` file, you’ll add the network and select it as the default network. +En el archivo `packages/hardhat/hardhat.config.js`, añadirás la red y la seleccionarás como red por defecto. ```jsx ... @@ -184,18 +184,18 @@ module.exports = { } ``` -Be sure to fund the deployment wallet as well! Run `yarn generate` to create the wallet and `yarn account` to check its funds. Once funded, run `yarn deploy --network scrollSepolia` to deploy on the Scroll Sepolia testnet. +Asegúrate de financiar también la wallet de despliegue. Ejecute `yarn generate` para crear la wallet y `yarn account` para comprobar sus fondos. Una vez financiado, ejecuta `yarn deploy --network scrollSepolia` para desplegarlo en la Scroll Sepolia testnet. -