Skip to content

Commit 8c99fff

Browse files
committed
i18n
1 parent 8577101 commit 8c99fff

File tree

19 files changed

+259
-265
lines changed

19 files changed

+259
-265
lines changed

webview-ui/src/components/cloud/CloudAgents.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import React, { useEffect, useState } from "react"
22
import { Cloud, Plus, SquarePen } from "lucide-react"
33
import type { CloudAgent } from "@roo-code/types"
4+
import { useTranslation } from "react-i18next"
45
import { vscode } from "@/utils/vscode"
56
import { useExtensionState } from "@/context/ExtensionStateContext"
67

78
const CloudAgents: React.FC = () => {
9+
const { t } = useTranslation()
810
const { cloudIsAuthenticated, cloudUserInfo, cloudApiUrl } = useExtensionState()
911
const [agents, setAgents] = useState<CloudAgent[]>([])
1012
const [loading, setLoading] = useState(true)
@@ -79,14 +81,14 @@ const CloudAgents: React.FC = () => {
7981
return (
8082
<div className="flex flex-col gap-3 mt-6 w-full">
8183
<div className="flex flex-wrap items-center justify-between mt-4 mb-1">
82-
<h2 className="font-semibold text-lg shrink-0 m-0">Cloud Agents</h2>
84+
<h2 className="font-semibold text-lg shrink-0 m-0">{t("chat:cloudAgents.title")}</h2>
8385
{agents.length > 0 && (
8486
<button
8587
onClick={handleCreateClick}
8688
className="text-base flex items-center gap-1 text-vscode-descriptionForeground hover:text-vscode-textLink-foreground transition-colors cursor-pointer"
87-
title="Create new agent">
89+
title={t("chat:cloudAgents.createNew")}>
8890
<Plus className="h-4 w-4" />
89-
Create
91+
{t("chat:cloudAgents.create")}
9092
</button>
9193
)}
9294
</div>
@@ -95,11 +97,11 @@ const CloudAgents: React.FC = () => {
9597
<div className="flex items-start gap-3 px-4 py-1 rounded-xl bg-vscode-editor-background">
9698
<Cloud className="size-5 mt-4 shrink-0" />
9799
<p className="text-base text-vscode-descriptionForeground mb-4">
98-
Code away from your IDE with Roo&apos;s Cloud Agents.
100+
{t("chat:cloudAgents.description")}
99101
<button
100102
className="inline-flex ml-1 cursor-pointer text-vscode-textLink-foreground hover:underline"
101103
onClick={handleCreateClick}>
102-
Create your first.
104+
{t("chat:cloudAgents.createFirst")}
103105
</button>
104106
</p>
105107
</div>
@@ -109,7 +111,8 @@ const CloudAgents: React.FC = () => {
109111
<div
110112
key={agent.id}
111113
className="flex items-center relative group gap-2 px-4 py-2 rounded-xl bg-vscode-editor-background hover:bg-vscode-list-hoverBackground cursor-pointer transition-colors"
112-
onClick={() => handleAgentClick(agent.id)}>
114+
onClick={() => handleAgentClick(agent.id)}
115+
aria-label={t("chat:cloudAgents.clickToRun", { name: agent.name })}>
113116
<span
114117
className="text-xl size-5 bg-foreground"
115118
role="img"

webview-ui/src/i18n/locales/ca/chat.json

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/chat.json

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/chat.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
},
9898
"scrollToBottom": "Scroll to bottom of chat",
9999
"about": "Roo Code is a whole AI dev team in your editor.",
100-
"docs": "Check out our <DocsLink>documentation</DocsLink> to learn more.",
100+
"docs": "Check our <DocsLink>docs</DocsLink> to learn more.",
101101
"rooTips": {
102102
"customizableModes": {
103103
"title": "Customizable modes",
@@ -398,5 +398,12 @@
398398
"problems": "Problems",
399399
"terminal": "Terminal",
400400
"url": "Paste URL to fetch contents"
401+
},
402+
"cloudAgents": {
403+
"create": "Create",
404+
"title": "Cloud Agents",
405+
"description": "You haven’t created any Cloud Agents yet.",
406+
"createFirst": "Create your first",
407+
"clickToRun": "Click to run {{name}}"
401408
}
402409
}

webview-ui/src/i18n/locales/es/chat.json

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/chat.json

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/chat.json

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/id/chat.json

Lines changed: 15 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)