Skip to content

Commit 4273f00

Browse files
committed
refactor(i18n): enhance welcome page text for internationalization
Signed-off-by: feifei <[email protected]>
1 parent 99f64ca commit 4273f00

File tree

20 files changed

+120
-9
lines changed

20 files changed

+120
-9
lines changed

webview-ui/src/components/welcome/WelcomeView.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import { vscode } from "../../utils/vscode"
77
import ApiOptions from "../settings/ApiOptions"
88
import { Tab, TabContent } from "../common/Tab"
99
import { Alert } from "../common/Alert"
10+
import { useAppTranslation } from "../../i18n/TranslationContext"
1011

1112
const WelcomeView = () => {
1213
const { apiConfiguration, currentApiConfigName, setApiConfiguration, uriScheme } = useExtensionState()
14+
const { t } = useAppTranslation()
1315

1416
const [errorMessage, setErrorMessage] = useState<string | undefined>(undefined)
1517

@@ -28,14 +30,9 @@ const WelcomeView = () => {
2830
return (
2931
<Tab>
3032
<TabContent className="flex flex-col gap-5">
31-
<h2 className="m-0 p-0">Hi, I'm Roo!</h2>
32-
<div>
33-
I can do all kinds of tasks thanks to the latest breakthroughs in agentic coding capabilities and
34-
access to tools that let me create & edit files, explore complex projects, use the browser, and
35-
execute terminal commands (with your permission, of course). I can even use MCP to create new tools
36-
and extend my own capabilities.
37-
</div>
38-
<Alert className="font-bold text-sm">To get started, this extension needs an API provider.</Alert>
33+
<h2 className="m-0 p-0">{t("welcome:greeting")}</h2>
34+
<div>{t("welcome:introduction")}</div>
35+
<Alert className="font-bold text-sm">{t("welcome:notice")}</Alert>
3936
<ApiOptions
4037
fromWelcomeView
4138
apiConfiguration={apiConfiguration || {}}
@@ -47,7 +44,7 @@ const WelcomeView = () => {
4744
</TabContent>
4845
<div className="sticky bottom-0 bg-vscode-sideBar-background p-5">
4946
<div className="flex flex-col gap-1">
50-
<VSCodeButton onClick={handleSubmit}>Let's go!</VSCodeButton>
47+
<VSCodeButton onClick={handleSubmit}>{t("welcome:start")}</VSCodeButton>
5148
{errorMessage && <div className="text-vscode-errorForeground">{errorMessage}</div>}
5249
</div>
5350
</div>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "مرحبًا، أنا رو!",
3+
"introduction": "يمكنني القيام بجميع أنواع المهام بفضل أحدث التطورات في قدرات الترميز الذكية والوصول إلى الأدوات التي تتيح لي إنشاء وتحرير الملفات واستكشاف المشاريع المعقدة واستخدام المتصفح وتنفيذ أوامر الطرفية (بإذنك، بالطبع). يمكنني حتى استخدام MCP لإنشاء أدوات جديدة وتوسيع قدراتي الخاصة.",
4+
"notice": "للبدء، يحتاج هذا الامتداد إلى موفر API.",
5+
"start": "لنبدأ!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "Hola, sóc en Roo!",
3+
"introduction": "Puc fer tot tipus de tasques gràcies als últims avenços en capacitats de codificació agent i accés a eines que em permeten crear i editar fitxers, explorar projectes complexos, utilitzar el navegador i executar ordres de terminal (amb el teu permís, és clar). Fins i tot puc utilitzar MCP per crear noves eines i ampliar les meves pròpies capacitats.",
4+
"notice": "Per començar, aquesta extensió necessita un proveïdor d'API.",
5+
"start": "Som-hi!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "Ahoj, já jsem Roo!",
3+
"introduction": "Díky nejnovějším průlomům v agentních kódovacích schopnostech a přístupu k nástrojům, které mi umožňují vytvářet a upravovat soubory, prozkoumávat složité projekty, používat prohlížeč a spouštět terminálové příkazy (s vaším svolením, samozřejmě), mohu dělat všechny druhy úkolů. Dokonce mohu použít MCP k vytváření nových nástrojů a rozšiřování svých vlastních schopností.",
4+
"notice": "Pro začátek toto rozšíření potřebuje poskytovatele API.",
5+
"start": "Jdeme na to!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "Hallo, ich bin Roo!",
3+
"introduction": "Ich kann alle Arten von Aufgaben erledigen, dank der neuesten Durchbrüche in agentenbasierten Codierungsfähigkeiten und dem Zugang zu Tools, die es mir ermöglichen, Dateien zu erstellen und zu bearbeiten, komplexe Projekte zu erkunden, den Browser zu verwenden und Terminalbefehle auszuführen (natürlich mit Ihrer Erlaubnis). Ich kann sogar MCP verwenden, um neue Tools zu erstellen und meine eigenen Fähigkeiten zu erweitern.",
4+
"notice": "Um loszulegen, benötigt diese Erweiterung einen API-Anbieter.",
5+
"start": "Los geht's!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "Hi, I'm Roo!",
3+
"introduction": "I can do all kinds of tasks thanks to the latest breakthroughs in agentic coding capabilities and access to tools that let me create & edit files, explore complex projects, use the browser, and execute terminal commands (with your permission, of course). I can even use MCP to create new tools and extend my own capabilities.",
4+
"notice": "To get started, this extension needs an API provider.",
5+
"start": "Let's go!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "¡Hola, soy Roo!",
3+
"introduction": "Puedo realizar todo tipo de tareas gracias a los últimos avances en capacidades de codificación agentica y acceso a herramientas que me permiten crear y editar archivos, explorar proyectos complejos, usar el navegador y ejecutar comandos de terminal (con tu permiso, por supuesto). Incluso puedo usar MCP para crear nuevas herramientas y ampliar mis propias capacidades.",
4+
"notice": "Para comenzar, esta extensión necesita un proveedor de API.",
5+
"start": "¡Vamos!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "Salut, je suis Roo !",
3+
"introduction": "Je peux effectuer toutes sortes de tâches grâce aux dernières avancées en matière de capacités de codage agentique et à l'accès à des outils qui me permettent de créer et de modifier des fichiers, d'explorer des projets complexes, d'utiliser le navigateur et d'exécuter des commandes terminal (avec votre permission, bien sûr). Je peux même utiliser MCP pour créer de nouveaux outils et étendre mes propres capacités.",
4+
"notice": "Pour commencer, cette extension a besoin d'un fournisseur d'API.",
5+
"start": "C'est parti !"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "नमस्ते, मैं रू हूँ!",
3+
"introduction": "मैं सभी प्रकार के कार्य कर सकता हूँ, एजेंटिक कोडिंग क्षमताओं में नवीनतम सफलताओं और उन टूल्स तक पहुंच के लिए धन्यवाद जो मुझे फाइलें बनाने और संपादित करने, जटिल परियोजनाओं का पता लगाने, ब्राउज़र का उपयोग करने और टर्मिनल कमांड निष्पादित करने की अनुमति देते हैं (आपकी अनुमति से, बिल्कुल)। मैं MCP का उपयोग करके नए टूल बना सकता हूँ और अपनी क्षमताओं का विस्तार कर सकता हूँ।",
4+
"notice": "शुरू करने के लिए, इस एक्सटेंशन को एक API प्रदाता की आवश्यकता है।",
5+
"start": "चलो शुरू करें!"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"greeting": "Szia, én Roo vagyok!",
3+
"introduction": "Mindenféle feladatot el tudok látni az ügynök-alapú kódolási képességek legújabb áttöréseinek és az eszközökhez való hozzáférésnek köszönhetően, amelyek lehetővé teszik számomra fájlok létrehozását és szerkesztését, összetett projektek felfedezését, böngésző használatát és terminálparancsok végrehajtását (természetesen az Ön engedélyével). Még az MCP-t is használhatom új eszközök létrehozására és saját képességeim bővítésére.",
4+
"notice": "A kezdéshez ez a bővítmény egy API szolgáltatót igényel.",
5+
"start": "Gyerünk!"
6+
}

0 commit comments

Comments
 (0)