🙌 OpenHands: AI-Driven Development
Fix homepage internationalization (Issue #7355) (#7359)
Graham Neubigf5aeb47a721a
diff --git a/docs/i18n/fr/code.json b/docs/i18n/fr/code.jsonindex 685d93b09b..20799331e6 100644--- a/docs/i18n/fr/code.json+++ b/docs/i18n/fr/code.json@@ -402,5 +402,26 @@"theme.unlistedContent.message": {"message": "Cette page n'est pas répertoriée. Les moteurs de recherche ne l'indexeront pas, et seuls les utilisateurs ayant un lien direct peuvent y accéder.","description": "The unlisted content banner message"+ },+ "Use AI to tackle the toil in your backlog. Our agents have all the same tools as a human developer: they can modify code, run commands, browse the web, call APIs, and yes-even copy code snippets from StackOverflow.": {+ "message": "Utilisez l'IA pour gérer les tâches répétitives de votre backlog. Nos agents disposent des mêmes outils qu'un développeur humain : ils peuvent modifier du code, exécuter des commandes, naviguer sur le web, appeler des API et même copier des extraits de code depuis StackOverflow."+ },+ "Get started with OpenHands.": {+ "message": "Commencer avec OpenHands"+ },+ "Most Popular Links": {+ "message": "Liens Populaires"+ },+ "Customizing OpenHands to a repository": {+ "message": "Personnaliser OpenHands pour un dépôt"+ },+ "Integrating OpenHands with Github": {+ "message": "Intégrer OpenHands avec Github"+ },+ "Recommended models to use": {+ "message": "Modèles recommandés"+ },+ "Connecting OpenHands to your filesystem": {+ "message": "Connecter OpenHands à votre système de fichiers"}}diff --git a/docs/i18n/zh-Hans/code.json b/docs/i18n/zh-Hans/code.jsonindex 024454d4e6..e6687ef0d1 100644--- a/docs/i18n/zh-Hans/code.json+++ b/docs/i18n/zh-Hans/code.json@@ -402,5 +402,26 @@"theme.unlistedContent.message": {"message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。","description": "The unlisted content banner message"+ },+ "Use AI to tackle the toil in your backlog. Our agents have all the same tools as a human developer: they can modify code, run commands, browse the web, call APIs, and yes-even copy code snippets from StackOverflow.": {+ "message": "使用AI处理您积压的工作。我们的代理拥有与人类开发者相同的工具:它们可以修改代码、运行命令、浏览网页、调用API,甚至从StackOverflow复制代码片段。"+ },+ "Get started with OpenHands.": {+ "message": "开始使用OpenHands"+ },+ "Most Popular Links": {+ "message": "热门链接"+ },+ "Customizing OpenHands to a repository": {+ "message": "为仓库定制OpenHands"+ },+ "Integrating OpenHands with Github": {+ "message": "将OpenHands与Github集成"+ },+ "Recommended models to use": {+ "message": "推荐使用的模型"+ },+ "Connecting OpenHands to your filesystem": {+ "message": "将OpenHands连接到您的文件系统"}}diff --git a/docs/src/components/HomepageHeader/HomepageHeader.tsx b/docs/src/components/HomepageHeader/HomepageHeader.tsxindex dad7941f5d..71f53f08e5 100644--- a/docs/src/components/HomepageHeader/HomepageHeader.tsx+++ b/docs/src/components/HomepageHeader/HomepageHeader.tsx@@ -25,17 +25,19 @@ export function HomepageHeader() {padding: '0rem 0rem 1rem'}}><p style={{ margin: '0' }}>- Use AI to tackle the toil in your backlog. Our agents have all the same tools as a human developer: they can modify code, run commands, browse the web,- call APIs, and yes-even copy code snippets from StackOverflow.+ <Translate>+ Use AI to tackle the toil in your backlog. Our agents have all the same tools as a human developer: they can modify code, run commands, browse the web,+ call APIs, and yes-even copy code snippets from StackOverflow.+ </Translate><br/>- <Link to="https://docs.all-hands.dev/modules/usage/installation"+ <Link to="/modules/usage/installation"style={{textDecoration: 'underline',display: 'inline-block',marginTop: '0.5rem'}}>- Get started with OpenHands.+ <Translate>Get started with OpenHands.</Translate></Link></p></div>diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsxindex 7f6af3b774..ea40251579 100644--- a/docs/src/pages/index.tsx+++ b/docs/src/pages/index.tsx@@ -2,6 +2,8 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';import Layout from '@theme/Layout';import { HomepageHeader } from '../components/HomepageHeader/HomepageHeader';import { translate } from '@docusaurus/Translate';+import Translate from '@docusaurus/Translate';+import Link from '@docusaurus/Link';import { Demo } from "../components/Demo/Demo";export default function Home(): JSX.Element {@@ -21,12 +23,28 @@ export default function Home(): JSX.Element {</div><div style={{ textAlign: 'center', padding: '0.5rem 2rem 1.5rem' }}>- <h2>Most Popular Links</h2>+ <h2><Translate>Most Popular Links</Translate></h2><ul style={{ listStyleType: 'none'}}>- <li><a href="/modules/usage/prompting/microagents-repo">Customizing OpenHands to a repository</a></li>- <li><a href="/modules/usage/how-to/github-action">Integrating OpenHands with Github</a></li>- <li><a href="/modules/usage/llms#model-recommendations">Recommended models to use</a></li>- <li><a href="/modules/usage/runtimes#connecting-to-your-filesystem">Connecting OpenHands to your filesystem</a></li>+ <li>+ <Link to="/modules/usage/prompting/microagents-repo">+ <Translate>Customizing OpenHands to a repository</Translate>+ </Link>+ </li>+ <li>+ <Link to="/modules/usage/how-to/github-action">+ <Translate>Integrating OpenHands with Github</Translate>+ </Link>+ </li>+ <li>+ <Link to="/modules/usage/llms#model-recommendations">+ <Translate>Recommended models to use</Translate>+ </Link>+ </li>+ <li>+ <Link to="/modules/usage/runtimes#connecting-to-your-filesystem">+ <Translate>Connecting OpenHands to your filesystem</Translate>+ </Link>+ </li></ul></div></Layout>