From 34162e2de15be9601812d44ea2ab27fd9d600f4d Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Thu, 27 Aug 2026 20:31:39 +0200 Subject: [PATCH] i18n(canvas): the WiFi panel caret tooltip is translated The split-button caret's title was hardcoded 'WiFi panel'; now editor.canvas.wifiPanel across all nine locales. --- frontend/src/components/simulator/SimulatorCanvas.tsx | 2 +- frontend/src/i18n/locales/de/common2.json | 5 +++-- frontend/src/i18n/locales/en/common2.json | 5 +++-- frontend/src/i18n/locales/es/common2.json | 5 +++-- frontend/src/i18n/locales/fr/common2.json | 5 +++-- frontend/src/i18n/locales/it/common2.json | 5 +++-- frontend/src/i18n/locales/ja/common2.json | 5 +++-- frontend/src/i18n/locales/pt-br/common2.json | 5 +++-- frontend/src/i18n/locales/ru/common2.json | 5 +++-- frontend/src/i18n/locales/zh-cn/common2.json | 5 +++-- 10 files changed, 28 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/simulator/SimulatorCanvas.tsx b/frontend/src/components/simulator/SimulatorCanvas.tsx index 7bd9e35c..b470a94e 100644 --- a/frontend/src/components/simulator/SimulatorCanvas.tsx +++ b/frontend/src/components/simulator/SimulatorCanvas.tsx @@ -2967,7 +2967,7 @@ export const SimulatorCanvas = ({ headerSlot }: SimulatorCanvasProps = {}) => { { e.stopPropagation(); togglePanel(); diff --git a/frontend/src/i18n/locales/de/common2.json b/frontend/src/i18n/locales/de/common2.json index 60c06987..f7fbbdf9 100644 --- a/frontend/src/i18n/locales/de/common2.json +++ b/frontend/src/i18n/locales/de/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "MicroPython-Projekte können von hier aus nicht geflasht werden: nur Arduino-Sketches", "ready": "Den kompilierten Sketch auf ein echtes, per USB angeschlossenes Board flashen", "willCompile": "Den Sketch kompilieren und auf ein echtes, per USB angeschlossenes Board flashen" - } + }, + "wifiPanel": "WLAN-Panel" }, "componentPicker": { "title": "Komponente hinzufügen", @@ -525,4 +526,4 @@ "openEditor": "Editor öffnen" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/en/common2.json b/frontend/src/i18n/locales/en/common2.json index 6ee9f736..330dd35e 100644 --- a/frontend/src/i18n/locales/en/common2.json +++ b/frontend/src/i18n/locales/en/common2.json @@ -178,7 +178,8 @@ "mpyUnavailable": "MicroPython projects cannot be flashed from here — Arduino sketches only", "ready": "Flash the compiled sketch to a real USB-attached board", "willCompile": "Compile the sketch and flash it to a real USB-attached board" - } + }, + "wifiPanel": "WiFi panel" }, "componentPicker": { "title": "Add Component", @@ -535,4 +536,4 @@ "openEditor": "Open Editor" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/es/common2.json b/frontend/src/i18n/locales/es/common2.json index c7c4cfc7..72fada56 100644 --- a/frontend/src/i18n/locales/es/common2.json +++ b/frontend/src/i18n/locales/es/common2.json @@ -178,7 +178,8 @@ "mpyUnavailable": "Los proyectos MicroPython no se pueden grabar desde aquí: solo sketches de Arduino", "ready": "Grabar el sketch compilado en una placa real conectada por USB", "willCompile": "Compilar el sketch y grabarlo en una placa real conectada por USB" - } + }, + "wifiPanel": "Panel de WiFi" }, "componentPicker": { "title": "Añadir componente", @@ -535,4 +536,4 @@ "openEditor": "Abrir editor" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/fr/common2.json b/frontend/src/i18n/locales/fr/common2.json index 42828637..26ac06ae 100644 --- a/frontend/src/i18n/locales/fr/common2.json +++ b/frontend/src/i18n/locales/fr/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "Les projets MicroPython ne peuvent pas être flashés depuis ici : sketches Arduino uniquement", "ready": "Flasher le sketch compilé sur une carte réelle branchée en USB", "willCompile": "Compiler le sketch et le flasher sur une carte réelle branchée en USB" - } + }, + "wifiPanel": "Panneau WiFi" }, "componentPicker": { "title": "Ajouter un composant", @@ -525,4 +526,4 @@ "openEditor": "Ouvrir l'éditeur" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/it/common2.json b/frontend/src/i18n/locales/it/common2.json index 3508242f..acaa8fd6 100644 --- a/frontend/src/i18n/locales/it/common2.json +++ b/frontend/src/i18n/locales/it/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "I progetti MicroPython non si possono caricare da qui: solo sketch Arduino", "ready": "Carica lo sketch compilato su una scheda reale collegata via USB", "willCompile": "Compila lo sketch e caricalo su una scheda reale collegata via USB" - } + }, + "wifiPanel": "Pannello WiFi" }, "componentPicker": { "title": "Aggiungi componente", @@ -525,4 +526,4 @@ "openEditor": "Apri Editor" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/ja/common2.json b/frontend/src/i18n/locales/ja/common2.json index 7a425985..773f824c 100644 --- a/frontend/src/i18n/locales/ja/common2.json +++ b/frontend/src/i18n/locales/ja/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "MicroPython プロジェクトはここから書き込めません(Arduino スケッチのみ)", "ready": "コンパイル済みスケッチを USB 接続の実機に書き込みます", "willCompile": "スケッチをコンパイルして USB 接続の実機に書き込みます" - } + }, + "wifiPanel": "WiFiパネル" }, "componentPicker": { "title": "コンポーネントを追加", @@ -525,4 +526,4 @@ "openEditor": "エディタを開く" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/pt-br/common2.json b/frontend/src/i18n/locales/pt-br/common2.json index 9f75cced..bb09a9f1 100644 --- a/frontend/src/i18n/locales/pt-br/common2.json +++ b/frontend/src/i18n/locales/pt-br/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "Projetos MicroPython não podem ser gravados daqui: só sketches Arduino", "ready": "Gravar o sketch compilado em uma placa real conectada por USB", "willCompile": "Compilar o sketch e gravá-lo em uma placa real conectada por USB" - } + }, + "wifiPanel": "Painel WiFi" }, "componentPicker": { "title": "Adicionar Componente", @@ -525,4 +526,4 @@ "openEditor": "Abrir Editor" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/ru/common2.json b/frontend/src/i18n/locales/ru/common2.json index 9f8145a2..81c9f293 100644 --- a/frontend/src/i18n/locales/ru/common2.json +++ b/frontend/src/i18n/locales/ru/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "Проекты MicroPython отсюда не прошиваются: только скетчи Arduino", "ready": "Прошить скомпилированный скетч на реальную плату по USB", "willCompile": "Скомпилировать скетч и прошить его на реальную плату по USB" - } + }, + "wifiPanel": "Панель WiFi" }, "componentPicker": { "title": "Добавить компонент", @@ -525,4 +526,4 @@ "openEditor": "Открыть редактор" } } -} +} \ No newline at end of file diff --git a/frontend/src/i18n/locales/zh-cn/common2.json b/frontend/src/i18n/locales/zh-cn/common2.json index 9c740d37..6f1ff700 100644 --- a/frontend/src/i18n/locales/zh-cn/common2.json +++ b/frontend/src/i18n/locales/zh-cn/common2.json @@ -176,7 +176,8 @@ "mpyUnavailable": "MicroPython 项目不能从这里烧录:仅支持 Arduino 程序", "ready": "把编译好的程序烧录到 USB 连接的实体板", "willCompile": "编译程序并烧录到 USB 连接的实体板" - } + }, + "wifiPanel": "WiFi 面板" }, "componentPicker": { "title": "添加元件", @@ -525,4 +526,4 @@ "openEditor": "打开编辑器" } } -} +} \ No newline at end of file