From 27bfe723d7e196a7a22d10f2039a1976be0d59e1 Mon Sep 17 00:00:00 2001 From: Cyril59310 <70776486+cyril59310@users.noreply.github.com> Date: Mon, 14 Apr 2025 14:08:40 +0200 Subject: [PATCH] Add Translation keys (#768) --- frontend/src/lang/en.json | 8 +++++++- frontend/src/pages/Compose.vue | 4 ++-- frontend/src/pages/Console.vue | 20 ++++++-------------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/frontend/src/lang/en.json b/frontend/src/lang/en.json index 0636226..5fd1204 100644 --- a/frontend/src/lang/en.json +++ b/frontend/src/lang/en.json @@ -25,6 +25,7 @@ "saveStackDraft": "Save", "notAvailableShort": "N/A", "deleteStackMsg": "Are you sure you want to delete this stack?", + "cancel": "Cancel", "stackNotManagedByDockgeMsg": "This stack is not managed by Dockge.", "primaryHostname": "Primary Hostname", "general": "General", @@ -128,5 +129,10 @@ "New Container Name...": "New Container Name...", "Network name...": "Network name...", "Select a network...": "Select a network...", - "NoNetworksAvailable": "No networks available. You need to add internal networks or enable external networks in the right side first." + "NoNetworksAvailable": "No networks available. You need to add internal networks or enable external networks in the right side first.", + "Console is not enabled": "Console is not enabled", + "ConsoleNotEnabledMSG1": "Console is a powerful tool that allows you to execute any commands such as docker, rm within the Dockge's container in this Web UI.", + "ConsoleNotEnabledMSG2": "It might be dangerous since this Dockge container is connecting to the host's Docker daemon. Also Dockge could be possibly taken down by commands like rm -rf" , + "ConsoleNotEnabledMSG3": "If you understand the risk, you can enable it by setting DOCKGE_ENABLE_CONSOLE=true in the environment variables.", + "confirmLeaveStack": "You are currently editing a stack. Are you sure you want to leave?" } diff --git a/frontend/src/pages/Compose.vue b/frontend/src/pages/Compose.vue index bcea292..7572a23 100644 --- a/frontend/src/pages/Compose.vue +++ b/frontend/src/pages/Compose.vue @@ -229,7 +229,7 @@ - + {{ $t("deleteStackMsg") }} @@ -508,7 +508,7 @@ export default { exitConfirm(next) { if (this.isEditMode) { - if (confirm("You are currently editing a stack. Are you sure you want to leave?")) { + if (confirm(this.$t("confirmLeaveStack"))) { this.exitAction(); next(); } else { diff --git a/frontend/src/pages/Console.vue b/frontend/src/pages/Console.vue index 25ddb18..a2b22a9 100644 --- a/frontend/src/pages/Console.vue +++ b/frontend/src/pages/Console.vue @@ -1,23 +1,15 @@