diff --git a/astro-i18next.config.ts b/astro-i18next.config.ts index 684352b39..5f1c032fa 100644 --- a/astro-i18next.config.ts +++ b/astro-i18next.config.ts @@ -2,6 +2,6 @@ export default { defaultLocale: "en", showDefaultLocale: true, - locales: ["en", "es", "zh"], + locales: ["en", "es", "zh", "tr"], load: ["server", "client"], } diff --git a/public/locales/tr/translation.json b/public/locales/tr/translation.json new file mode 100644 index 000000000..015c1b348 --- /dev/null +++ b/public/locales/tr/translation.json @@ -0,0 +1,197 @@ +{ + "rightSidebar": { + "onThisPage": "On This Page", + "more": "More", + "editThisPage": "Edit this page", + "joinOurCommunity": "Join our community", + "feedback": "Feedback" + }, + "ui": { + "whatsNext": "What's Next", + "readMore": "Read More" + }, + "landing": { + "test": "test", + "search": { + "title": "Welcome to the Scroll Documentation", + "placeholder": "Search Scroll documentation..." + }, + "newUserCTA": { + "title": "New to Scroll and ZK Rollups?", + "description": "Learn the basics in the Getting Started Guide." + }, + "resourcesCTA": { + "title": "Useful resources" + }, + "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" + }, + "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" + }, + "LinksCTA": { + "card1": { + "title": "Need integration support?", + "description": "Talk to an expert once we TODO: a url" + }, + "card2": { + "title": "Discord", + "description": "Join the community" + }, + "card3": { + "title": "TODO: Discourse", + "description": "Really, join the community" + } + }, + "NewsletterCTA": { + "title": "Stay up-to-date on the latest Scroll Developer news", + "text": "Roadmap updates, virtual and live events, ecosystem opportunities and more", + "placeholder": "your email address here", + "thankYouForSubscribing": "Thank you for subscribing!", + "correctEmail": "Please use a correct email address.", + "pleaseInsertEmail": "Please insert your email." + } + }, + "sidebar": { + "gettingStarted": { + "gettingStarted": "Getting Started", + "overview": "Overview", + "scrollSepoliaTestnet": "Scroll Sepolia Testnet", + "userGuide": "User Guide", + "setup": "Setup", + "faucet": "Faucet", + "bridge": "Bridge", + "transferTokens": "Transfer Tokens", + "commonErrors": "Common Errors", + "rollupExplorer": "Rollup Explorer", + "scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer", + "scrollMainnet": "Scroll Mainnet", + "scrollscan": "Scrollscan Block Explorer", + "sepoliaBlockExplorer": "Sepolia Explorer", + "community": "Community", + "discord": "Discord", + "communityForum": "Community Forum" + }, + "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", + "erc721NftBridge": "ERC721 NFT Bridge", + "erc1155TokenBridge": "ERC1155 Token Bridge", + "theScrollMessenger": "The Scroll Messenger", + "transactionFeesOnScroll": "Transaction Fees on Scroll", + "l2Fee": "L2 Fee", + "l1Fee": "L1 Fee", + "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", + "mainnetResources": "Mainnet Resources", + "sepoliaResources": "Sepolia Resources", + "scrollBlockExplorer": "Scrollscan Explorer", + "rollupExplorer": "Rollup Explorer", + "scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer", + "sepoliaRollupExplorer": "Rollup Explorer", + "sepoliaBlockExplorer": "Scrollscan Explorer" + }, + "technology": { + "introduction": "Introduction", + "principles": "Principles", + "scrollArchitecture": "Scroll Architecture", + "scrollUpgrades": "Scroll Upgrades", + "overview": "Overview", + + "scrollChain": "Scroll Chain", + "accountsAndState": "Accounts and State", + "blocks": "Blocks", + "transactions": "Transactions", + "rollupProcess": "Rollup Process", + "evmDifferencesFromEthereum": "EVM Differences from Ethereum", + + "bridge": "Bridge", + "crossDomainMessaging": "Cross-Domain Messaging", + "depositGateways": "Deposit Gateways", + "withdrawGateways": "Withdraw Gateways", + + "sequencer": "Sequencer", + "executionNode": "Execution Node", + "rollupNode": "Rollup Node", + "zkTrie": "zkTrie", + + "zkevm": "zkEVM", + "introToZkevm": "Intro to zkEVM", + "zkevmOverview": "zkEVM Overview", + "bridgeOverview": "Bridge Overview", + "prover": "Prover", + "proofGeneration": "Proof Generation", + "cpuProverRepo": "CPU Prover Repo", + + "security": "Security", + "auditsAndBugBounty": "Audits & Bug Bounty", + "l2BeatAssessment": "L2Beat Assessment" + }, + "learn": { + "ethereumAndProtocols": "Ethereum & Protocols", + "theScalabilityProblem": "The Scalability Problem", + "introToRollups": "Intro to Rollups", + "zeroKnowledge": "Zero Knowledge", + "introToZeroKnowledge": "Intro to Zero Knowledge", + "polynomialCommitmentSchemes": "Polynomial Commitment Schemes", + "kzgCommitmentScheme": "KZG Commitment Scheme", + "additionalResources": "Additional Resources" + } + }, + "footer": { + "aboutScroll": { + "title": "About Scroll", + "bugBounty": "Bug Bounty", + "joinUs": "Join Us", + "healthStatus": "Health Status", + "privacyPolicy": "Privacy Policy", + "termsAndConditions": "Terms and Conditions" + }, + "resources": { + "title": "Resources", + "scrollDocsURL": "https://docs.scroll.io/", + "blog": "Blog", + "documentation": "Documentation", + "brandKit": "Brand Kit", + "audits": "Audits" + }, + "followUs": { + "title": "Follow Us" + } + }, + "pageNotFound": { + "title": "Page not found", + "text": "We're sorry, but we couldn't find the page you were looking for." + }, + "rpcTable": { + "rpcServerAddress": "RPC Server Address", + "height": "Height", + "latency": "Latency", + "score": "Score", + "privacy": "Privacy", + "addNetwork": "Add Network", + "connect": "Connect", + "sorting": "Sorting" + }, + "notTranslated": { + "notTranslated": "This page has not been translated yet." + } +} diff --git a/src/config/menu.ts b/src/config/menu.ts index 75d3c9f38..90d50b4e0 100644 --- a/src/config/menu.ts +++ b/src/config/menu.ts @@ -37,4 +37,14 @@ export const MENU: MenuItems = { { text: "Tecnología", link: "/es/technology", section: "technology" }, { text: "Aprende", link: "/es/learn", section: "learn" }, ], + tr: [ + { + text: "Getting Started", + link: "/tr/getting-started/overview", + section: "gettingStarted", + }, + { text: "Developers", link: "/tr/developers", section: "developers" }, + { text: "Technology", link: "/tr/technology", section: "technology" }, + { text: "Learn", link: "/tr/learn", section: "learn" }, + ], }