Skip to content

Commit

Permalink
Add translation support to Homae page strings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcss committed Dec 10, 2024
1 parent 79b99e9 commit 93af819
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 103 deletions.
171 changes: 171 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,177 @@
"Explore Docs": {
"message": "Explore Docs"
},
"Guides for Builders": {
"message": "Guides for Builders"
},
"Beginner to Web3?": {
"message": "Beginner to Web3?"
},
"Explore Rootstock Fundamentals and resources to begin your development journey.": {
"message": "Explore Rootstock Fundamentals and resources to begin your development journey."
},
"Core Concepts": {
"message": "Core Concepts"
},
"Become a Rootstock Blockchain Developer": {
"message": "Become a Rootstock Blockchain Developer"
},
"Deploy Smart Contracts": {
"message": "Deploy Smart Contracts"
},
"EVM-compatible tools and guides to deploy and scale your dApps on Rootstock.": {
"message": "EVM-compatible tools and guides to deploy and scale your dApps on Rootstock."
},
"Quick Starts": {
"message": "Quick Starts"
},
"Join the Discord Community": {
"message": "Join the Discord Community"
},
"Become a Merged Miner": {
"message": "Become a Merged Miner"
},
"Interested in merged mining on Rootstock? Setup a Rootstock node or use the RPC API.": {
"message": "Interested in merged mining on Rootstock? Setup a Rootstock node or use the RPC API."
},
"Merged Mining": {
"message": "Merged Mining"
},
"RPC API": {
"message": "RPC API"
},
"Apply for a Grant": {
"message": "Apply for a Grant"
},
"Get funding and support to build your next dApp on Rootstock through the strategic grants program.": {
"message": "Get funding and support to build your next dApp on Rootstock through the strategic grants program."
},
"Apply now": {
"message": "Apply now"
},
"Browse by DevTools": {
"message": "Browse by DevTools"
},
"Get RBTC": {
"message": "Get RBTC"
},
"Explore the various ways to get RBTC using the PowPeg App, On/Off Ramps, or Exchanges.": {
"message": "Explore the various ways to get RBTC using the PowPeg App, On/Off Ramps, or Exchanges."
},
"Quick Starts": {
"message": "Quick Starts"
},
"View a repository of starter kits, sample codes and tutorials for creating, testing and deploying smart contracts on Rootstock.": {
"message": "View a repository of starter kits, sample codes and tutorials for creating, testing and deploying smart contracts on Rootstock."
},
"EVM-compatible Tools": {
"message": "EVM-compatible Tools"
},
"Build and deploy faster with EVM-compatible tools and guides on Rootstock.": {
"message": "Build and deploy faster with EVM-compatible tools and guides on Rootstock."
},
"SDKs and Integration Guides": {
"message": "SDKs and Integration Guides"
},
"Get up to speed, using easy-to-set-up SDKs and Integration Guides.": {
"message": "Get up to speed, using easy-to-set-up SDKs and Integration Guides."
},
"Read more": {
"message": "Read more"
},
"Browse by Products": {
"message": "Browse by Products"
},
"Bridges": {
"message": "Bridges"
},
"Bridge in/out of Rootstock.": {
"message": "Bridge in/out of Rootstock."
},
"RBTC Flyover": {
"message": "RBTC Flyover"
},
"PowPeg App": {
"message": "PowPeg App"
},
"Token Bridge": {
"message": "Token Bridge"
},
"Wallets": {
"message": "Wallets"
},
"View wallets compatible with the Rootstock platform.": {
"message": "View wallets compatible with the Rootstock platform."
},
"MetaMask": {
"message": "MetaMask"
},
"Wallets on Rootstock": {
"message": "Wallets on Rootstock"
},
"RIF Tools": {
"message": "RIF Tools"
},
"Explore Open-source tools and technologies for faster, and more rewarding ways to build on Bitcoin.": {
"message": "Explore Open-source tools and technologies for faster, and more rewarding ways to build on Bitcoin."
},
"Name Service": {
"message": "Name Service"
},
"Relay": {
"message": "Relay"
},
"Read": {
"message": "Read"
},
"RPC API": {
"message": "RPC API"
},
"Deploy and interact with EVM compatible smart contracts on Rootstock using JSON RPC methods using the Rootstock RPC API.": {
"message": "Deploy and interact with EVM compatible smart contracts on Rootstock using JSON RPC methods using the Rootstock RPC API."
},
"Make First API Call": {
"message": "Make First API Call"
},
"View JSON RPC Methods": {
"message": "View JSON RPC Methods"
},
"Connect with the Community": {
"message": "Connect with the Community"
},
"Join the Rootstock \n Developer Community on Discord.": {
"message": "Join the Rootstock \n Developer Community on Discord."
},
"Join Discord": {
"message": "Join Discord"
},
"Explore open source tools, smart contracts and starter kits for deploying and integrating your dApps.": {
"message": "Explore open source tools, smart contracts and starter kits for deploying and integrating your dApps."
},
"Star on Github": {
"message": "Star on Github"
},
"Stay Connected": {
"message": "Stay Connected"
},
"View upcoming events, community calls, webinars, and meetups happening \n around the world.": {
"message": "View upcoming events, community calls, webinars, and meetups happening \n around the world."
},
"View upcoming Events": {
"message": "View upcoming Events"
},
"Read": {
"message": "Read"
},
"theme.common.copyPageLinkMsg": {
"message": "Copied!"
},
"theme.common.copyPageLink": {
"message": "Copy page link"
},
"theme.common.backToTop": {
"message": "Back to top"
},
"theme.common.all": {
"message": "All"
},
Expand Down
29 changes: 11 additions & 18 deletions src/components/Homepage/HomepageSectionCommunity/index.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,47 @@
import clsx from 'clsx';

import Card from "/src/components/Card";
import Translate from "@docusaurus/core/lib/client/exports/Translate";

const data = {
title: 'Connect with the Community',
title: <Translate>Connect with the Community'</Translate>,
description: null,
cards: [
{
title: 'Discord',
title: <Translate>Discord</Translate>,
color: 'cyan',
icon: 'discord',
link: {
title: 'Join Discord',
title: <Translate>Join Discord</Translate>,
href: 'https://discord.com/invite/rootstock',
target: '_blank',
},
description: (
<>
Join the Rootstock<br/> Developer Community on Discord.
</>
<>Join the Rootstock<br/> Developer Community on Discord.</>
),

},
{
title: 'GitHub',
title: <Translate>GitHub</Translate>,
color: 'contrast',
icon: 'github',
link: {
title: 'Star on Github',
title: <Translate>Star on Github</Translate>,
href: 'https://github.com/rsksmart/devportal',
target: '_blank',
},
description: (
<>
Explore open source tools, smart contracts and starter kits for deploying and integrating your dApps.
</>
<Translate>Explore open source tools, smart contracts and starter kits for deploying and integrating your dApps.</Translate>
),
},
{
title: 'Stay Connected',
title: <Translate>Stay Connected</Translate>,
color: 'yellow',
link: {
title: 'View upcoming Events',
title: <Translate>View upcoming Events</Translate>,
href: 'https://rootstock.io/events',
target: '_blank',
},
description: (
<>
View upcoming events, community calls,<br/> webinars, and meetups happening<br/> around the world.
</>
<>View upcoming events, community calls,<br/> webinars, and meetups happening<br/> around the world.</>
),
},
]
Expand Down
41 changes: 14 additions & 27 deletions src/components/Homepage/HomepageSectionDevTools/index.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,55 @@
import clsx from 'clsx';

import Card from "/src/components/Card";
import Translate from "@docusaurus/core/lib/client/exports/Translate";

const data = {
title: 'Browse by DevTools',
title: <Translate>Browse by DevTools</Translate>,
description: null,
cards: [
{
title: 'Get RBTC',
title: <Translate>Get RBTC</Translate>,
color: 'orange',
link: {
title: 'Read more',
title: <Translate>Read more</Translate>,
href: 'https://rootstock.io/rbtc/',
},
description: (
<>
Explore the various ways to get RBTC using the PowPeg App, On/Off Ramps, or Exchanges.
</>
<Translate>Explore the various ways to get RBTC using the PowPeg App, On/Off Ramps, or Exchanges.</Translate>
),

},
{
title: 'Quick Starts',
title: <Translate>Quick Starts</Translate>,
color: 'yellow',
link: {
title: 'Read more',
title: <Translate>Read more</Translate>,
href: '/developers/quickstart/',
},
description: (
<>
View a repository of starter kits,
sample codes and tutorials for creating,
testing and deploying smart contracts on Rootstock.
</>
<Translate>View a repository of starter kits, sample codes and tutorials for creating, testing and deploying smart contracts on Rootstock.</Translate>
),
},
{
title: (
<>
EVM-compatible <br/> Tools
</>
<>EVM-compatible<br/>Tools</>
),
color: 'cyan',
link: {
title: 'Read more',
title: <Translate>Read more</Translate>,
href: '/dev-tools/',
},
description: (
<>
Build and deploy faster with EVM-compatible tools and guides on Rootstock.
</>
<Translate>Build and deploy faster with EVM-compatible tools and guides on Rootstock.</Translate>
),
},
{
title: 'SDKs and Integration Guides',
title: <Translate>SDKs and Integration Guides</Translate>,
color: 'pink',
link: {
title: 'Read more',
title: <Translate>Read more</Translate>,
href: '/developers/integrate/',
},
description: (
<>
Get up to speed, using easy-to-set-up SDKs and Integration Guides.
</>
<Translate>Get up to speed, using easy-to-set-up SDKs and Integration Guides.</Translate>
),
}
]
Expand Down
Loading

0 comments on commit 93af819

Please sign in to comment.