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:
parent
db632832b4
commit
e17f6fd6cf
|
|
@ -260,7 +260,7 @@ export const AppHeader: React.FC<AppHeaderProps> = ({ autoSave, editorMenu, edit
|
||||||
color: '#ccc',
|
color: '#ccc',
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
}}
|
}}
|
||||||
title="Share project"
|
title={t('header.shareProject', 'Share project')}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
width="14"
|
width="14"
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Discord-Community",
|
"discord": "Discord-Community",
|
||||||
"github": "GitHub-Repository",
|
"github": "GitHub-Repository",
|
||||||
"compile": "Kompilieren",
|
"compile": "Kompilieren",
|
||||||
"run": "Ausführen"
|
"run": "Ausführen",
|
||||||
|
"hideExplorer": "Datei-Explorer ausblenden",
|
||||||
|
"showExplorer": "Datei-Explorer einblenden"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "Keine Anmeldung erforderlich. Läuft zu 100 % in Ihrem Browser. Kostenlos und Open Source.",
|
"subtitle": "Keine Anmeldung erforderlich. Läuft zu 100 % in Ihrem Browser. Kostenlos und Open Source.",
|
||||||
"openEditor": "Editor öffnen"
|
"openEditor": "Editor öffnen"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Projekt teilen"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,9 @@
|
||||||
"discord": "Discord Community",
|
"discord": "Discord Community",
|
||||||
"github": "GitHub Repository",
|
"github": "GitHub Repository",
|
||||||
"compile": "Compile",
|
"compile": "Compile",
|
||||||
"run": "Run"
|
"run": "Run",
|
||||||
|
"hideExplorer": "Hide file explorer",
|
||||||
|
"showExplorer": "Show file explorer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -463,5 +465,8 @@
|
||||||
"subtitle": "No signup required. Runs 100% in your browser. Free and open source.",
|
"subtitle": "No signup required. Runs 100% in your browser. Free and open source.",
|
||||||
"openEditor": "Open Editor"
|
"openEditor": "Open Editor"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Share project"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,9 @@
|
||||||
"discord": "Comunidad de Discord",
|
"discord": "Comunidad de Discord",
|
||||||
"github": "Repositorio en GitHub",
|
"github": "Repositorio en GitHub",
|
||||||
"compile": "Compilar",
|
"compile": "Compilar",
|
||||||
"run": "Ejecutar"
|
"run": "Ejecutar",
|
||||||
|
"hideExplorer": "Ocultar explorador de archivos",
|
||||||
|
"showExplorer": "Mostrar explorador de archivos"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -463,5 +465,8 @@
|
||||||
"subtitle": "No requiere registro. Funciona 100% en tu navegador. Gratuito y de código abierto.",
|
"subtitle": "No requiere registro. Funciona 100% en tu navegador. Gratuito y de código abierto.",
|
||||||
"openEditor": "Abrir editor"
|
"openEditor": "Abrir editor"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Compartir proyecto"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Communauté Discord",
|
"discord": "Communauté Discord",
|
||||||
"github": "Dépôt GitHub",
|
"github": "Dépôt GitHub",
|
||||||
"compile": "Compiler",
|
"compile": "Compiler",
|
||||||
"run": "Exécuter"
|
"run": "Exécuter",
|
||||||
|
"hideExplorer": "Masquer l'explorateur de fichiers",
|
||||||
|
"showExplorer": "Afficher l'explorateur de fichiers"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "Aucune inscription requise. Fonctionne à 100 % dans votre navigateur. Gratuit et open source.",
|
"subtitle": "Aucune inscription requise. Fonctionne à 100 % dans votre navigateur. Gratuit et open source.",
|
||||||
"openEditor": "Ouvrir l'éditeur"
|
"openEditor": "Ouvrir l'éditeur"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Partager le projet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Community Discord",
|
"discord": "Community Discord",
|
||||||
"github": "Repository GitHub",
|
"github": "Repository GitHub",
|
||||||
"compile": "Compila",
|
"compile": "Compila",
|
||||||
"run": "Esegui"
|
"run": "Esegui",
|
||||||
|
"hideExplorer": "Nascondi esplora file",
|
||||||
|
"showExplorer": "Mostra esplora file"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "Nessuna registrazione richiesta. Funziona al 100% nel tuo browser. Gratuito e open source.",
|
"subtitle": "Nessuna registrazione richiesta. Funziona al 100% nel tuo browser. Gratuito e open source.",
|
||||||
"openEditor": "Apri Editor"
|
"openEditor": "Apri Editor"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Condividi progetto"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Discord コミュニティ",
|
"discord": "Discord コミュニティ",
|
||||||
"github": "GitHub リポジトリ",
|
"github": "GitHub リポジトリ",
|
||||||
"compile": "コンパイル",
|
"compile": "コンパイル",
|
||||||
"run": "実行"
|
"run": "実行",
|
||||||
|
"hideExplorer": "ファイルエクスプローラーを隠す",
|
||||||
|
"showExplorer": "ファイルエクスプローラーを表示"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "サインアップ不要。100% ブラウザで動作。無料でオープンソース。",
|
"subtitle": "サインアップ不要。100% ブラウザで動作。無料でオープンソース。",
|
||||||
"openEditor": "エディタを開く"
|
"openEditor": "エディタを開く"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "プロジェクトを共有"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Comunidade no Discord",
|
"discord": "Comunidade no Discord",
|
||||||
"github": "Repositório no GitHub",
|
"github": "Repositório no GitHub",
|
||||||
"compile": "Compilar",
|
"compile": "Compilar",
|
||||||
"run": "Executar"
|
"run": "Executar",
|
||||||
|
"hideExplorer": "Ocultar explorador de arquivos",
|
||||||
|
"showExplorer": "Mostrar explorador de arquivos"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "Sem necessidade de cadastro. Roda 100% no seu navegador. Gratuito e de código aberto.",
|
"subtitle": "Sem necessidade de cadastro. Roda 100% no seu navegador. Gratuito e de código aberto.",
|
||||||
"openEditor": "Abrir Editor"
|
"openEditor": "Abrir Editor"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Compartilhar projeto"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Сообщество в Discord",
|
"discord": "Сообщество в Discord",
|
||||||
"github": "Репозиторий на GitHub",
|
"github": "Репозиторий на GitHub",
|
||||||
"compile": "Компилировать",
|
"compile": "Компилировать",
|
||||||
"run": "Запустить"
|
"run": "Запустить",
|
||||||
|
"hideExplorer": "Скрыть проводник файлов",
|
||||||
|
"showExplorer": "Показать проводник файлов"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "Регистрация не требуется. Работает 100% в вашем браузере. Бесплатно и с открытым исходным кодом.",
|
"subtitle": "Регистрация не требуется. Работает 100% в вашем браузере. Бесплатно и с открытым исходным кодом.",
|
||||||
"openEditor": "Открыть редактор"
|
"openEditor": "Открыть редактор"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "Поделиться проектом"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,9 @@
|
||||||
"discord": "Discord 社区",
|
"discord": "Discord 社区",
|
||||||
"github": "GitHub 仓库",
|
"github": "GitHub 仓库",
|
||||||
"compile": "编译",
|
"compile": "编译",
|
||||||
"run": "运行"
|
"run": "运行",
|
||||||
|
"hideExplorer": "隐藏文件资源管理器",
|
||||||
|
"showExplorer": "显示文件资源管理器"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about": {
|
"about": {
|
||||||
|
|
@ -461,5 +463,8 @@
|
||||||
"subtitle": "无需注册。100% 在浏览器中运行。免费且开源。",
|
"subtitle": "无需注册。100% 在浏览器中运行。免费且开源。",
|
||||||
"openEditor": "打开编辑器"
|
"openEditor": "打开编辑器"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"shareProject": "分享项目"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -411,7 +411,7 @@ export const EditorPage: React.FC = () => {
|
||||||
<button
|
<button
|
||||||
className="explorer-toggle-btn unified-toolbar-explorer-toggle"
|
className="explorer-toggle-btn unified-toolbar-explorer-toggle"
|
||||||
onClick={() => setExplorerOpen((v) => !v)}
|
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
|
<svg
|
||||||
width="16"
|
width="16"
|
||||||
|
|
@ -624,7 +624,7 @@ export const EditorPage: React.FC = () => {
|
||||||
<button
|
<button
|
||||||
className="explorer-toggle-btn"
|
className="explorer-toggle-btn"
|
||||||
onClick={() => setExplorerOpen((v) => !v)}
|
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
|
<svg
|
||||||
width="16"
|
width="16"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue