i18n(editor): translate the remaining raw UI strings

The explorer toggle tooltips (Hide/Show file explorer) and the header's
Share-project title were raw English — now keyed and translated in all
nine locales, same common2.json home as the menubar strings.
This commit is contained in:
David Montero Crespo 2026-07-30 21:18:37 +02:00
parent db632832b4
commit e17f6fd6cf
11 changed files with 57 additions and 12 deletions

View File

@ -260,7 +260,7 @@ export const AppHeader: React.FC<AppHeaderProps> = ({ autoSave, editorMenu, edit
color: '#ccc',
fontSize: 13,
}}
title="Share project"
title={t('header.shareProject', 'Share project')}
>
<svg
width="14"

View File

@ -383,7 +383,9 @@
"discord": "Discord-Community",
"github": "GitHub-Repository",
"compile": "Kompilieren",
"run": "Ausführen"
"run": "Ausführen",
"hideExplorer": "Datei-Explorer ausblenden",
"showExplorer": "Datei-Explorer einblenden"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "Keine Anmeldung erforderlich. Läuft zu 100 % in Ihrem Browser. Kostenlos und Open Source.",
"openEditor": "Editor öffnen"
}
},
"header": {
"shareProject": "Projekt teilen"
}
}

View File

@ -385,7 +385,9 @@
"discord": "Discord Community",
"github": "GitHub Repository",
"compile": "Compile",
"run": "Run"
"run": "Run",
"hideExplorer": "Hide file explorer",
"showExplorer": "Show file explorer"
}
},
"about": {
@ -463,5 +465,8 @@
"subtitle": "No signup required. Runs 100% in your browser. Free and open source.",
"openEditor": "Open Editor"
}
},
"header": {
"shareProject": "Share project"
}
}

View File

@ -385,7 +385,9 @@
"discord": "Comunidad de Discord",
"github": "Repositorio en GitHub",
"compile": "Compilar",
"run": "Ejecutar"
"run": "Ejecutar",
"hideExplorer": "Ocultar explorador de archivos",
"showExplorer": "Mostrar explorador de archivos"
}
},
"about": {
@ -463,5 +465,8 @@
"subtitle": "No requiere registro. Funciona 100% en tu navegador. Gratuito y de código abierto.",
"openEditor": "Abrir editor"
}
},
"header": {
"shareProject": "Compartir proyecto"
}
}

View File

@ -383,7 +383,9 @@
"discord": "Communauté Discord",
"github": "Dépôt GitHub",
"compile": "Compiler",
"run": "Exécuter"
"run": "Exécuter",
"hideExplorer": "Masquer l'explorateur de fichiers",
"showExplorer": "Afficher l'explorateur de fichiers"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "Aucune inscription requise. Fonctionne à 100 % dans votre navigateur. Gratuit et open source.",
"openEditor": "Ouvrir l'éditeur"
}
},
"header": {
"shareProject": "Partager le projet"
}
}

View File

@ -383,7 +383,9 @@
"discord": "Community Discord",
"github": "Repository GitHub",
"compile": "Compila",
"run": "Esegui"
"run": "Esegui",
"hideExplorer": "Nascondi esplora file",
"showExplorer": "Mostra esplora file"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "Nessuna registrazione richiesta. Funziona al 100% nel tuo browser. Gratuito e open source.",
"openEditor": "Apri Editor"
}
},
"header": {
"shareProject": "Condividi progetto"
}
}

View File

@ -383,7 +383,9 @@
"discord": "Discord コミュニティ",
"github": "GitHub リポジトリ",
"compile": "コンパイル",
"run": "実行"
"run": "実行",
"hideExplorer": "ファイルエクスプローラーを隠す",
"showExplorer": "ファイルエクスプローラーを表示"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "サインアップ不要。100% ブラウザで動作。無料でオープンソース。",
"openEditor": "エディタを開く"
}
},
"header": {
"shareProject": "プロジェクトを共有"
}
}

View File

@ -383,7 +383,9 @@
"discord": "Comunidade no Discord",
"github": "Repositório no GitHub",
"compile": "Compilar",
"run": "Executar"
"run": "Executar",
"hideExplorer": "Ocultar explorador de arquivos",
"showExplorer": "Mostrar explorador de arquivos"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "Sem necessidade de cadastro. Roda 100% no seu navegador. Gratuito e de código aberto.",
"openEditor": "Abrir Editor"
}
},
"header": {
"shareProject": "Compartilhar projeto"
}
}

View File

@ -383,7 +383,9 @@
"discord": "Сообщество в Discord",
"github": "Репозиторий на GitHub",
"compile": "Компилировать",
"run": "Запустить"
"run": "Запустить",
"hideExplorer": "Скрыть проводник файлов",
"showExplorer": "Показать проводник файлов"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "Регистрация не требуется. Работает 100% в вашем браузере. Бесплатно и с открытым исходным кодом.",
"openEditor": "Открыть редактор"
}
},
"header": {
"shareProject": "Поделиться проектом"
}
}

View File

@ -383,7 +383,9 @@
"discord": "Discord 社区",
"github": "GitHub 仓库",
"compile": "编译",
"run": "运行"
"run": "运行",
"hideExplorer": "隐藏文件资源管理器",
"showExplorer": "显示文件资源管理器"
}
},
"about": {
@ -461,5 +463,8 @@
"subtitle": "无需注册。100% 在浏览器中运行。免费且开源。",
"openEditor": "打开编辑器"
}
},
"header": {
"shareProject": "分享项目"
}
}

View File

@ -411,7 +411,7 @@ export const EditorPage: React.FC = () => {
<button
className="explorer-toggle-btn unified-toolbar-explorer-toggle"
onClick={() => setExplorerOpen((v) => !v)}
title={explorerOpen ? 'Hide file explorer' : 'Show file explorer'}
title={explorerOpen ? t('editor.menu.hideExplorer', 'Hide file explorer') : t('editor.menu.showExplorer', 'Show file explorer')}
>
<svg
width="16"
@ -624,7 +624,7 @@ export const EditorPage: React.FC = () => {
<button
className="explorer-toggle-btn"
onClick={() => setExplorerOpen((v) => !v)}
title={explorerOpen ? 'Hide file explorer' : 'Show file explorer'}
title={explorerOpen ? t('editor.menu.hideExplorer', 'Hide file explorer') : t('editor.menu.showExplorer', 'Show file explorer')}
>
<svg
width="16"