mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 05:25:19 +00:00
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:
34
website/i18n/ru/docusaurus-theme-classic/footer.json
Normal file
34
website/i18n/ru/docusaurus-theme-classic/footer.json
Normal 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"
|
||||
}
|
||||
}
|
||||
18
website/i18n/ru/docusaurus-theme-classic/navbar.json
Normal file
18
website/i18n/ru/docusaurus-theme-classic/navbar.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user