From c1c25d59c8333a725faf82f0f8dd722588216151 Mon Sep 17 00:00:00 2001 From: Restray Date: Sat, 2 Apr 2022 23:53:10 +0200 Subject: [PATCH] Add "new" i18n --- src/lib/locales/en.json | 35 ++++++++++++-- .../new/destination/_LocalDocker.svelte | 30 +++++++----- .../new/destination/_RemoteDocker.svelte | 46 +++++++++++-------- src/routes/new/destination/check.json.ts | 4 +- src/routes/new/destination/index.svelte | 15 +++--- src/routes/new/source/_Github.svelte | 27 +++++------ src/routes/new/source/_Gitlab.svelte | 17 +++---- src/routes/new/source/index.svelte | 8 ++-- 8 files changed, 117 insertions(+), 65 deletions(-) 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 @@
-
Configuration
+
{$t('forms.configuration')}
- - + +
- +
- - + +
(payload.isCoolifyProxyUsed = !payload.isCoolifyProxyUsed)} - title="Use Coolify Proxy?" - description="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." + title={$t('destination.use_coolify_proxy')} + description={$t('destination.new.install_proxy')} />
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 @@
-
Configuration
+
{$t('forms.configuration')}
- - + +
- +
- - + +
- - + +
- +