feat(i18n): localize main page and enable i18n for homepage texts

- Updated index.tsx to use <Translate> and translate() for all main texts (title, subtitle, CTA, description) — now fully i18n-ready.
- Added new translation files (code.json, navbar.json, footer.json, etc.) to support Russian language for homepage and UI.
- Enables seamless language switching and correct translations of homepage elements.
This commit is contained in:
Sergey Penkovsky
2025-08-15 15:09:55 +03:00
parent 4f91d442af
commit 846d55b124
5 changed files with 426 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
{
"link.title.Docs": {
"message": "Docs",
"description": "The title of the footer links column with title=Docs in the footer"
},
"link.title.Community": {
"message": "Community",
"description": "The title of the footer links column with title=Community in the footer"
},
"link.title.More": {
"message": "More",
"description": "The title of the footer links column with title=More in the footer"
},
"link.item.label.Docs": {
"message": "Документация",
"description": "The label of footer link with label=Docs linking to /docs/intro"
},
"link.item.label.Telegram": {
"message": "Telegram",
"description": "The label of footer link with label=Telegram linking to https://t.me/+22IVT0vqXBg1NDdi"
},
"link.item.label.PubDev": {
"message": "PubDev",
"description": "The label of footer link with label=PubDev linking to https://pub.dev/packages/cherrypick"
},
"link.item.label.GitHub": {
"message": "GitHub",
"description": "The label of footer link with label=GitHub linking to https://github.com/pese-git/cherrypick"
},
"copyright": {
"message": "Copyright © 2025 CherryPick, Inc. Built with Docusaurus.",
"description": "The footer copyright"
}
}

View File

@@ -0,0 +1,18 @@
{
"title": {
"message": "CherryPick",
"description": "The title in the navbar"
},
"logo.alt": {
"message": "CherryPick Logo",
"description": "The alt text of navbar logo"
},
"item.label.Docs": {
"message": "Документация",
"description": "Navbar item with label Docs"
},
"item.label.GitHub": {
"message": "GitHub",
"description": "Navbar item with label GitHub"
}
}