From 4273f00dea63cbf16a24e03a11509efc2513a545 Mon Sep 17 00:00:00 2001 From: feifei Date: Fri, 14 Mar 2025 17:56:48 +0800 Subject: [PATCH] refactor(i18n): enhance welcome page text for internationalization Signed-off-by: feifei --- webview-ui/src/components/welcome/WelcomeView.tsx | 15 ++++++--------- webview-ui/src/i18n/locales/ar/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ca/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/cs/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/de/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/en/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/es/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/fr/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/hi/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/hu/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/it/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ja/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ko/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/pl/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/pt-BR/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/pt/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ru/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/tr/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/zh-CN/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/zh-TW/welcome.json | 6 ++++++ 20 files changed, 120 insertions(+), 9 deletions(-) create mode 100644 webview-ui/src/i18n/locales/ar/welcome.json create mode 100644 webview-ui/src/i18n/locales/ca/welcome.json create mode 100644 webview-ui/src/i18n/locales/cs/welcome.json create mode 100644 webview-ui/src/i18n/locales/de/welcome.json create mode 100644 webview-ui/src/i18n/locales/en/welcome.json create mode 100644 webview-ui/src/i18n/locales/es/welcome.json create mode 100644 webview-ui/src/i18n/locales/fr/welcome.json create mode 100644 webview-ui/src/i18n/locales/hi/welcome.json create mode 100644 webview-ui/src/i18n/locales/hu/welcome.json create mode 100644 webview-ui/src/i18n/locales/it/welcome.json create mode 100644 webview-ui/src/i18n/locales/ja/welcome.json create mode 100644 webview-ui/src/i18n/locales/ko/welcome.json create mode 100644 webview-ui/src/i18n/locales/pl/welcome.json create mode 100644 webview-ui/src/i18n/locales/pt-BR/welcome.json create mode 100644 webview-ui/src/i18n/locales/pt/welcome.json create mode 100644 webview-ui/src/i18n/locales/ru/welcome.json create mode 100644 webview-ui/src/i18n/locales/tr/welcome.json create mode 100644 webview-ui/src/i18n/locales/zh-CN/welcome.json create mode 100644 webview-ui/src/i18n/locales/zh-TW/welcome.json diff --git a/webview-ui/src/components/welcome/WelcomeView.tsx b/webview-ui/src/components/welcome/WelcomeView.tsx index 651ce71dff..937c59a5f1 100644 --- a/webview-ui/src/components/welcome/WelcomeView.tsx +++ b/webview-ui/src/components/welcome/WelcomeView.tsx @@ -7,9 +7,11 @@ import { vscode } from "../../utils/vscode" import ApiOptions from "../settings/ApiOptions" import { Tab, TabContent } from "../common/Tab" import { Alert } from "../common/Alert" +import { useAppTranslation } from "../../i18n/TranslationContext" const WelcomeView = () => { const { apiConfiguration, currentApiConfigName, setApiConfiguration, uriScheme } = useExtensionState() + const { t } = useAppTranslation() const [errorMessage, setErrorMessage] = useState(undefined) @@ -28,14 +30,9 @@ const WelcomeView = () => { return ( -

Hi, I'm Roo!

-
- 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. -
- To get started, this extension needs an API provider. +

{t("welcome:greeting")}

+
{t("welcome:introduction")}
+ {t("welcome:notice")} {
- Let's go! + {t("welcome:start")} {errorMessage &&
{errorMessage}
}
diff --git a/webview-ui/src/i18n/locales/ar/welcome.json b/webview-ui/src/i18n/locales/ar/welcome.json new file mode 100644 index 0000000000..744f4361ca --- /dev/null +++ b/webview-ui/src/i18n/locales/ar/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "مرحبًا، أنا رو!", + "introduction": "يمكنني القيام بجميع أنواع المهام بفضل أحدث التطورات في قدرات الترميز الذكية والوصول إلى الأدوات التي تتيح لي إنشاء وتحرير الملفات واستكشاف المشاريع المعقدة واستخدام المتصفح وتنفيذ أوامر الطرفية (بإذنك، بالطبع). يمكنني حتى استخدام MCP لإنشاء أدوات جديدة وتوسيع قدراتي الخاصة.", + "notice": "للبدء، يحتاج هذا الامتداد إلى موفر API.", + "start": "لنبدأ!" +} diff --git a/webview-ui/src/i18n/locales/ca/welcome.json b/webview-ui/src/i18n/locales/ca/welcome.json new file mode 100644 index 0000000000..7ba0089389 --- /dev/null +++ b/webview-ui/src/i18n/locales/ca/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Hola, sóc en Roo!", + "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.", + "notice": "Per començar, aquesta extensió necessita un proveïdor d'API.", + "start": "Som-hi!" +} diff --git a/webview-ui/src/i18n/locales/cs/welcome.json b/webview-ui/src/i18n/locales/cs/welcome.json new file mode 100644 index 0000000000..07bd935f76 --- /dev/null +++ b/webview-ui/src/i18n/locales/cs/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Ahoj, já jsem Roo!", + "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í.", + "notice": "Pro začátek toto rozšíření potřebuje poskytovatele API.", + "start": "Jdeme na to!" +} diff --git a/webview-ui/src/i18n/locales/de/welcome.json b/webview-ui/src/i18n/locales/de/welcome.json new file mode 100644 index 0000000000..a9e9b7a618 --- /dev/null +++ b/webview-ui/src/i18n/locales/de/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Hallo, ich bin Roo!", + "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.", + "notice": "Um loszulegen, benötigt diese Erweiterung einen API-Anbieter.", + "start": "Los geht's!" +} diff --git a/webview-ui/src/i18n/locales/en/welcome.json b/webview-ui/src/i18n/locales/en/welcome.json new file mode 100644 index 0000000000..f03a791b43 --- /dev/null +++ b/webview-ui/src/i18n/locales/en/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Hi, I'm Roo!", + "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.", + "notice": "To get started, this extension needs an API provider.", + "start": "Let's go!" +} diff --git a/webview-ui/src/i18n/locales/es/welcome.json b/webview-ui/src/i18n/locales/es/welcome.json new file mode 100644 index 0000000000..9ccd57b36f --- /dev/null +++ b/webview-ui/src/i18n/locales/es/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "¡Hola, soy Roo!", + "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.", + "notice": "Para comenzar, esta extensión necesita un proveedor de API.", + "start": "¡Vamos!" +} diff --git a/webview-ui/src/i18n/locales/fr/welcome.json b/webview-ui/src/i18n/locales/fr/welcome.json new file mode 100644 index 0000000000..423b1ec3a8 --- /dev/null +++ b/webview-ui/src/i18n/locales/fr/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Salut, je suis Roo !", + "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.", + "notice": "Pour commencer, cette extension a besoin d'un fournisseur d'API.", + "start": "C'est parti !" +} diff --git a/webview-ui/src/i18n/locales/hi/welcome.json b/webview-ui/src/i18n/locales/hi/welcome.json new file mode 100644 index 0000000000..f26f0def48 --- /dev/null +++ b/webview-ui/src/i18n/locales/hi/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "नमस्ते, मैं रू हूँ!", + "introduction": "मैं सभी प्रकार के कार्य कर सकता हूँ, एजेंटिक कोडिंग क्षमताओं में नवीनतम सफलताओं और उन टूल्स तक पहुंच के लिए धन्यवाद जो मुझे फाइलें बनाने और संपादित करने, जटिल परियोजनाओं का पता लगाने, ब्राउज़र का उपयोग करने और टर्मिनल कमांड निष्पादित करने की अनुमति देते हैं (आपकी अनुमति से, बिल्कुल)। मैं MCP का उपयोग करके नए टूल बना सकता हूँ और अपनी क्षमताओं का विस्तार कर सकता हूँ।", + "notice": "शुरू करने के लिए, इस एक्सटेंशन को एक API प्रदाता की आवश्यकता है।", + "start": "चलो शुरू करें!" +} diff --git a/webview-ui/src/i18n/locales/hu/welcome.json b/webview-ui/src/i18n/locales/hu/welcome.json new file mode 100644 index 0000000000..19ad5d7f07 --- /dev/null +++ b/webview-ui/src/i18n/locales/hu/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Szia, én Roo vagyok!", + "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.", + "notice": "A kezdéshez ez a bővítmény egy API szolgáltatót igényel.", + "start": "Gyerünk!" +} diff --git a/webview-ui/src/i18n/locales/it/welcome.json b/webview-ui/src/i18n/locales/it/welcome.json new file mode 100644 index 0000000000..aa507fec01 --- /dev/null +++ b/webview-ui/src/i18n/locales/it/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Ciao, sono Roo!", + "introduction": "Posso svolgere tutti i tipi di attività grazie ai più recenti progressi nelle capacità di codifica agentica e all'accesso a strumenti che mi permettono di creare e modificare file, esplorare progetti complessi, utilizzare il browser ed eseguire comandi terminal (con il tuo permesso, ovviamente). Posso persino utilizzare MCP per creare nuovi strumenti ed estendere le mie capacità.", + "notice": "Per iniziare, questa estensione necessita di un fornitore di API.", + "start": "Andiamo!" +} diff --git a/webview-ui/src/i18n/locales/ja/welcome.json b/webview-ui/src/i18n/locales/ja/welcome.json new file mode 100644 index 0000000000..f10b5d4276 --- /dev/null +++ b/webview-ui/src/i18n/locales/ja/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "こんにちは、私はルーです!", + "introduction": "エージェント型コーディング能力の最新の進歩と、ファイルの作成・編集、複雑なプロジェクトの探索、ブラウザの使用、ターミナルコマンドの実行(もちろんあなたの許可を得て)を可能にするツールへのアクセスにより、あらゆる種類のタスクを実行できます。MCPを使用して新しいツールを作成し、自分の能力を拡張することもできます。", + "notice": "開始するには、この拡張機能にはAPIプロバイダーが必要です。", + "start": "さあ、始めましょう!" +} diff --git a/webview-ui/src/i18n/locales/ko/welcome.json b/webview-ui/src/i18n/locales/ko/welcome.json new file mode 100644 index 0000000000..fbe13c0f58 --- /dev/null +++ b/webview-ui/src/i18n/locales/ko/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "안녕하세요, 저는 루입니다!", + "introduction": "에이전트 코딩 능력의 최신 발전과 파일 생성 및 편집, 복잡한 프로젝트 탐색, 브라우저 사용, 터미널 명령 실행(물론 사용자의 허락 하에)을 가능하게 하는 도구에 대한 접근 덕분에 모든 종류의 작업을 수행할 수 있습니다. MCP를 사용하여 새로운 도구를 만들고 제 능력을 확장할 수도 있습니다.", + "notice": "시작하려면 이 확장 프로그램에 API 공급자가 필요합니다.", + "start": "시작해 봅시다!" +} diff --git a/webview-ui/src/i18n/locales/pl/welcome.json b/webview-ui/src/i18n/locales/pl/welcome.json new file mode 100644 index 0000000000..a3e71a8c42 --- /dev/null +++ b/webview-ui/src/i18n/locales/pl/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Cześć, jestem Roo!", + "introduction": "Mogę wykonywać wszelkiego rodzaju zadania dzięki najnowszym osiągnięciom w zakresie możliwości kodowania agentowego i dostępu do narzędzi, które pozwalają mi tworzyć i edytować pliki, eksplorować złożone projekty, korzystać z przeglądarki i wykonywać polecenia terminalowe (oczywiście za Twoją zgodą). Mogę nawet używać MCP do tworzenia nowych narzędzi i rozszerzania własnych możliwości.", + "notice": "Aby rozpocząć, to rozszerzenie potrzebuje dostawcy API.", + "start": "Zaczynajmy!" +} diff --git a/webview-ui/src/i18n/locales/pt-BR/welcome.json b/webview-ui/src/i18n/locales/pt-BR/welcome.json new file mode 100644 index 0000000000..fc629351a5 --- /dev/null +++ b/webview-ui/src/i18n/locales/pt-BR/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Olá, eu sou o Roo!", + "introduction": "Posso realizar todos os tipos de tarefas graças aos últimos avanços nas capacidades de codificação agentica e ao acesso a ferramentas que me permitem criar e editar arquivos, explorar projetos complexos, usar o navegador e executar comandos de terminal (com sua permissão, é claro). Posso até usar o MCP para criar novas ferramentas e expandir minhas próprias capacidades.", + "notice": "Para começar, esta extensão precisa de um provedor de API.", + "start": "Vamos lá!" +} diff --git a/webview-ui/src/i18n/locales/pt/welcome.json b/webview-ui/src/i18n/locales/pt/welcome.json new file mode 100644 index 0000000000..fc629351a5 --- /dev/null +++ b/webview-ui/src/i18n/locales/pt/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Olá, eu sou o Roo!", + "introduction": "Posso realizar todos os tipos de tarefas graças aos últimos avanços nas capacidades de codificação agentica e ao acesso a ferramentas que me permitem criar e editar arquivos, explorar projetos complexos, usar o navegador e executar comandos de terminal (com sua permissão, é claro). Posso até usar o MCP para criar novas ferramentas e expandir minhas próprias capacidades.", + "notice": "Para começar, esta extensão precisa de um provedor de API.", + "start": "Vamos lá!" +} diff --git a/webview-ui/src/i18n/locales/ru/welcome.json b/webview-ui/src/i18n/locales/ru/welcome.json new file mode 100644 index 0000000000..d6277ad603 --- /dev/null +++ b/webview-ui/src/i18n/locales/ru/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Привет, я Ру!", + "introduction": "Я могу выполнять все виды задач благодаря последним достижениям в области агентных возможностей кодирования и доступу к инструментам, которые позволяют мне создавать и редактировать файлы, исследовать сложные проекты, использовать браузер и выполнять команды терминала (с вашего разрешения, конечно). Я даже могу использовать MCP для создания новых инструментов и расширения своих возможностей.", + "notice": "Для начала этому расширению нужен API-провайдер.", + "start": "Поехали!" +} diff --git a/webview-ui/src/i18n/locales/tr/welcome.json b/webview-ui/src/i18n/locales/tr/welcome.json new file mode 100644 index 0000000000..b5a1138e50 --- /dev/null +++ b/webview-ui/src/i18n/locales/tr/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Merhaba, ben Roo!", + "introduction": "Ajan tabanlı kodlama yeteneklerindeki son gelişmeler ve dosya oluşturma ve düzenleme, karmaşık projeleri keşfetme, tarayıcı kullanma ve terminal komutları çalıştırma (tabii ki sizin izninizle) gibi işlemleri yapmamı sağlayan araçlara erişim sayesinde her türlü görevi gerçekleştirebilirim. Hatta MCP'yi kullanarak yeni araçlar oluşturabilir ve kendi yeteneklerimi genişletebilirim.", + "notice": "Başlamak için bu eklentinin bir API sağlayıcısına ihtiyacı var.", + "start": "Hadi başlayalım!" +} diff --git a/webview-ui/src/i18n/locales/zh-CN/welcome.json b/webview-ui/src/i18n/locales/zh-CN/welcome.json new file mode 100644 index 0000000000..c3eba070b2 --- /dev/null +++ b/webview-ui/src/i18n/locales/zh-CN/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "你好,我是 Roo!", + "introduction": "得益于最新的代理编码能力突破和对各种工具的访问权限,我可以完成各种任务。我可以创建和编辑文件、探索复杂项目、使用浏览器,以及执行终端命令(当然,需要你的许可)。我甚至可以使用 MCP 创建新工具并扩展自己的能力。", + "notice": "首先,请配置一个大模型 API 服务商。", + "start": "开始吧!" +} diff --git a/webview-ui/src/i18n/locales/zh-TW/welcome.json b/webview-ui/src/i18n/locales/zh-TW/welcome.json new file mode 100644 index 0000000000..e8770d1300 --- /dev/null +++ b/webview-ui/src/i18n/locales/zh-TW/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "嗨,我是 Roo!", + "introduction": "由於最新的代理編碼能力突破,以及能夠讓我創建和編輯文件、探索複雜項目、使用瀏覽器和執行終端命令的工具(當然是在您的許可下),我可以完成各種任務。我甚至可以使用 MCP 創建新工具並擴展自己的能力。", + "notice": "要開始使用,此擴展需要一個 API 提供者。", + "start": "我們開始吧!" +}