diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json
index 0d65578b4..ef2a5f2e8 100644
--- a/src/lib/locales/en.json
+++ b/src/lib/locales/en.json
@@ -17,7 +17,8 @@
"git_sources": "Git Sources",
"databases": "Databases",
"services": "Services",
- "teams": "Teams"
+ "teams": "Teams",
+ "not_implemented_yet": "Not implemented yet"
},
"login": {
"already_logged_in": "Already logged in...",
@@ -31,7 +32,7 @@
"password_again": "Password again",
"save": "Save",
"saving": "Saving...",
- "name": "name",
+ "name": "Name",
"value": "Value",
"action": "Action",
"is_required": "is required.",
@@ -56,7 +57,13 @@
"already_used_for": "{type} already used for",
"configuration": "Configuration",
"engine": "Engine",
- "network": "Network"
+ "network": "Network",
+ "ip_address": "IP Address",
+ "ssh_private_key": "SSH Private Key",
+ "type": "Type",
+ "html_url": "HTML URL",
+ "api_url": "API URL",
+ "organization": "Organization"
},
"register": {
"register": "Register",
@@ -198,6 +205,26 @@
"restarting_please_wait": "Restarting... please wait...",
"force_restart_proxy": "Force restart proxy",
"use_coolify_proxy": "Use Coolify Proxy?",
- "no_destination_found": "No destination found"
+ "no_destination_found": "No destination found",
+ "new_error_network_already_exists": "Network {network} already configured for another team!",
+ "new": {
+ "saving_and_configuring_proxy": "Saving and configuring proxy...",
+ "install_proxy": "This will install a proxy on the destination to allow you to access your applications and services without any manual configuration (recommended for Docker).
Databases will have their own proxy.",
+ "add_new_destination": "Add New Destination",
+ "predefined_destinations": "Predefined destinations"
+ }
+ },
+ "sources": {
+ "local_docker": "Local Docker",
+ "remote_docker": "Remote Docker",
+ "organization_explainer": "Fill it if you would like to use an organization's as your Git Source. Otherwise your user will be used."
+ },
+ "eg_https_api_github_com": "eg: https://api.github.com",
+ "eg_https_github_com": "eg: https://github.com",
+ "source": {
+ "new": {
+ "git_source": "Add New Git Source",
+ "official_providers": "Official providers"
+ }
}
}
diff --git a/src/routes/new/destination/_LocalDocker.svelte b/src/routes/new/destination/_LocalDocker.svelte
index 79a2c81b0..2cc8e65ff 100644
--- a/src/routes/new/destination/_LocalDocker.svelte
+++ b/src/routes/new/destination/_LocalDocker.svelte
@@ -6,6 +6,7 @@
import { post } from '$lib/api';
import Setting from '$lib/components/Setting.svelte';
import { errorNotification } from '$lib/form';
+ import { t } from '$lib/translations';
let loading = false;
@@ -25,7 +26,7 @@
diff --git a/src/routes/new/destination/_RemoteDocker.svelte b/src/routes/new/destination/_RemoteDocker.svelte
index 780c66019..d032d77b4 100644
--- a/src/routes/new/destination/_RemoteDocker.svelte
+++ b/src/routes/new/destination/_RemoteDocker.svelte
@@ -7,6 +7,7 @@
import Explainer from '$lib/components/Explainer.svelte';
import Setting from '$lib/components/Setting.svelte';
import { errorNotification } from '$lib/form';
+ import { t } from '$lib/translations';
let loading = false;
@@ -25,7 +26,7 @@
diff --git a/src/routes/new/destination/check.json.ts b/src/routes/new/destination/check.json.ts
index 22af08e91..54f099e4a 100644
--- a/src/routes/new/destination/check.json.ts
+++ b/src/routes/new/destination/check.json.ts
@@ -1,5 +1,6 @@
import { getUserDetails } from '$lib/common';
import { isDockerNetworkExists, ErrorHandler } from '$lib/database';
+import { t } from '$lib/translations';
import type { RequestHandler } from '@sveltejs/kit';
export const post: RequestHandler = async (event) => {
@@ -9,9 +10,10 @@ export const post: RequestHandler = async (event) => {
const { network } = await event.request.json();
try {
const found = await isDockerNetworkExists({ network });
+
if (found) {
throw {
- error: `Network ${network} already configured for another team!`
+ error: t.get('destination.new_error_network_already_exists', { network: network })
};
}
return {
diff --git a/src/routes/new/destination/index.svelte b/src/routes/new/destination/index.svelte
index 5ad82cbb7..9641ed72f 100644
--- a/src/routes/new/destination/index.svelte
+++ b/src/routes/new/destination/index.svelte
@@ -2,6 +2,7 @@
import LocalDocker from './_LocalDocker.svelte';
import cuid from 'cuid';
import RemoteDocker from './_RemoteDocker.svelte';
+ import { t } from '$lib/translations';
let payload = {};
let selected = 'localDocker';
@@ -10,7 +11,7 @@
switch (type) {
case 'localDocker':
payload = {
- name: 'Local Docker',
+ name: t.get('sources.local_docker'),
engine: '/var/run/docker.sock',
remoteEngine: false,
network: cuid(),
@@ -19,7 +20,7 @@
break;
case 'remoteDocker':
payload = {
- name: 'Remote Docker',
+ name: $t('sources.remote_docker'),
remoteEngine: true,
ipAddress: null,
user: 'root',
@@ -36,12 +37,14 @@