diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json
index 3b0ff03fd..0d65578b4 100644
--- a/src/lib/locales/en.json
+++ b/src/lib/locales/en.json
@@ -31,7 +31,7 @@
"password_again": "Password again",
"save": "Save",
"saving": "Saving...",
- "name": "Name",
+ "name": "name",
"value": "Value",
"action": "Action",
"is_required": "is required.",
@@ -52,7 +52,11 @@
"user": "User",
"loading": "Loading...",
"version": "Version",
- "host": "Host"
+ "host": "Host",
+ "already_used_for": "{type} already used for",
+ "configuration": "Configuration",
+ "engine": "Engine",
+ "network": "Network"
},
"register": {
"register": "Register",
@@ -182,5 +186,18 @@
"delete_database": "Delete Database",
"permission_denied_delete_database": "You do not have permission to delete a Database",
"no_databases_found": "No databases found"
+ },
+ "destination": {
+ "delete_destination": "Delete Destination",
+ "permission_denied_delete_destination": "You do not have permission to delete this destination",
+ "add_to_coolify": "Add to Coolify",
+ "coolify_proxy_stopped": "Coolify Proxy stopped!",
+ "coolify_proxy_started": "Coolify Proxy started!",
+ "confirm_restart_proxy": "Are you sure you want to restart the proxy? Everything will be reconfigured in ~10 secs.",
+ "coolify_proxy_restarting": "Coolify Proxy restarting...",
+ "restarting_please_wait": "Restarting... please wait...",
+ "force_restart_proxy": "Force restart proxy",
+ "use_coolify_proxy": "Use Coolify Proxy?",
+ "no_destination_found": "No destination found"
}
}
diff --git a/src/routes/destinations/[id]/_FoundApp.svelte b/src/routes/destinations/[id]/_FoundApp.svelte
index 835c121bf..f6c44bb25 100644
--- a/src/routes/destinations/[id]/_FoundApp.svelte
+++ b/src/routes/destinations/[id]/_FoundApp.svelte
@@ -2,6 +2,7 @@
export let app;
import { onMount } from 'svelte';
import { page } from '$app/stores';
+ import { t } from '$lib/translations';
const { id } = $page.params;
let loading = true;
async function checkApp() {
@@ -58,20 +59,20 @@
{app.domain}
{#if loading}
-
Loading...
+
{$t('forms.loading')}
{:else if app.foundByDomain}
- Domain already used for
+ {@html $t('forms.already_used_for', { type: 'Domains' })}
{app.foundName}
{:else if app.foundByRepository}
- Repository already used for
+ {@html $t('forms.already_used_for', { type: 'Repository' })}
{app.foundName}
{:else}
{$t('destination.add_to_coolify')}
{/if}
diff --git a/src/routes/destinations/[id]/_LocalDocker.svelte b/src/routes/destinations/[id]/_LocalDocker.svelte
index 329d23c2f..4ee6195e0 100644
--- a/src/routes/destinations/[id]/_LocalDocker.svelte
+++ b/src/routes/destinations/[id]/_LocalDocker.svelte
@@ -10,6 +10,7 @@
import { post } from '$lib/api';
import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';
import { onMount } from 'svelte';
+ import { t } from '$lib/translations';
const { id } = $page.params;
let cannotDisable = settings.fqdn && destination.engine === '/var/run/docker.sock';
// let scannedApps = [];
@@ -88,7 +89,7 @@
async function stopProxy() {
try {
await post(`/destinations/${id}/stop.json`, { engine: destination.engine });
- return toast.push('Coolify Proxy stopped!');
+ return toast.push($t('destination.coolify_proxy_stopped'));
} catch ({ error }) {
return errorNotification(error);
}
@@ -96,19 +97,17 @@
async function startProxy() {
try {
await post(`/destinations/${id}/start.json`, { engine: destination.engine });
- return toast.push('Coolify Proxy started!');
+ return toast.push($t('destination.coolify_proxy_started'));
} catch ({ error }) {
return errorNotification(error);
}
}
async function forceRestartProxy() {
- const sure = confirm(
- 'Are you sure you want to restart the proxy? Everything will be reconfigured in ~10 secs.'
- );
+ const sure = confirm($t('destination.confirm_restart_proxy'));
if (sure) {
try {
restarting = true;
- toast.push('Coolify Proxy restarting...');
+ toast.push($t('destination.coolify_proxy_restarting'));
await post(`/destinations/${id}/restart.json`, {
engine: destination.engine,
fqdn: settings.fqdn
@@ -126,7 +125,7 @@