From 360fb5ea37a43537e64452b033a2511552c0fb5f Mon Sep 17 00:00:00 2001 From: Restray Date: Sun, 3 Apr 2022 00:18:48 +0200 Subject: [PATCH] Add services i18n --- src/lib/locales/en.json | 32 +++++++++++++++--- src/routes/login/index.svelte | 2 +- .../services/[id]/_Services/_Ghost.svelte | 19 ++++++----- .../services/[id]/_Services/_MinIO.svelte | 7 ++-- .../[id]/_Services/_PlausibleAnalytics.svelte | 17 +++++----- .../services/[id]/_Services/_Services.svelte | 33 +++++++++++-------- .../[id]/_Services/_VSCodeServer.svelte | 3 +- .../services/[id]/_Services/_Wordpress.svelte | 15 +++++---- src/routes/services/[id]/__layout.svelte | 31 ++++++++--------- .../[id]/configuration/destination.svelte | 7 ++-- .../services/[id]/configuration/type.svelte | 3 +- .../[id]/configuration/version.svelte | 2 +- src/routes/services/[id]/secrets/index.svelte | 10 +++--- src/routes/sources/[id]/_Github.svelte | 2 +- src/routes/sources/[id]/_Gitlab.svelte | 2 +- src/routes/teams/[id]/index.svelte | 2 +- 16 files changed, 114 insertions(+), 73 deletions(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index 7b8591530..3f8da70a8 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -18,7 +18,8 @@ "databases": "Databases", "services": "Services", "teams": "Teams", - "not_implemented_yet": "Not implemented yet" + "not_implemented_yet": "Not implemented yet", + "database": "Database" }, "login": { "already_logged_in": "Already logged in...", @@ -27,7 +28,7 @@ }, "forms": { "password": "Password", - "email": "Email", + "email": "Email address", "passwords_not_match": "Passwords do not match.", "password_again": "Password again", "save": "Save", @@ -66,7 +67,18 @@ "organization": "Organization", "new_password": "New password", "super_secure_new_password": "Super secure new password", - "submit": "Submit" + "submit": "Submit", + "default_email_address": "Default Email Address", + "default_password": "Default Password", + "username": "Username", + "root_db_user": "Root DB User", + "root_db_password": "Root DB Password", + "api_port": "API Port", + "verifying": "Verifying", + "verify_emails_without_smtp": "Verify emails without SMTP", + "extra_config": "Extra Config", + "select_a_service": "Select a Service", + "select_a_service_version": "Select a Service version" }, "register": { "register": "Register", @@ -137,7 +149,7 @@ "persistent_storage_explainer": "You can specify any folder that you want to be persistent across deployments.
This is useful for storing data such as a database (SQLite) or a cache." }, "deployment_queued": "Deployment queued.", - "confirm_to_delete": "Are you sure you would like to delete '{0}'?", + "confirm_to_delete": "Are you sure you would like to delete '{name}'?", "stop_application": "Stop application", "permission_denied_stop_application": "You do not have permission to stop the application.", "rebuild_application": "Rebuild application", @@ -232,5 +244,17 @@ "git_source": "Add New Git Source", "official_providers": "Official providers" } + }, + "services": { + "all_email_verified": "All email verified. You can login now.", + "generate_www_non_www_ssl": "It will generate certificates for both www and non-www.
You need to have both DNS entries set in advance.

Service needs to be restarted." + }, + "service": { + "stop_service": "Stop Service", + "permission_denied_stop_service": "You do not have permission to stop the service.", + "start_service": "Start Service", + "permission_denied_start_service": "You do not have permission to start the service.", + "delete_service": "Delete Service", + "permission_denied_delete_service": "You do not have permission to delete a service." } } diff --git a/src/routes/login/index.svelte b/src/routes/login/index.svelte index 6b3c79679..654df5688 100644 --- a/src/routes/login/index.svelte +++ b/src/routes/login/index.svelte @@ -62,7 +62,7 @@ diff --git a/src/routes/services/[id]/_Services/_Ghost.svelte b/src/routes/services/[id]/_Services/_Ghost.svelte index 8a6154ac9..48f947971 100644 --- a/src/routes/services/[id]/_Services/_Ghost.svelte +++ b/src/routes/services/[id]/_Services/_Ghost.svelte @@ -1,5 +1,6 @@ @@ -8,19 +9,19 @@
Ghost
- +
- + MariaDB
- +
- +
- +
- +
- + import CopyPasswordField from '$lib/components/CopyPasswordField.svelte'; + import { t } from '$lib/translations'; export let service;
-
MinIO Server
+
MinIO
- + import CopyPasswordField from '$lib/components/CopyPasswordField.svelte'; + import { t } from '$lib/translations'; export let service; export let readOnly; @@ -8,31 +9,31 @@
Plausible Analytics
- +
- +
- + PostgreSQL
- +
- +
- +
-
General
+
{$t('general')}
{#if $session.isAdmin} {loading ? $t('forms.saving') : $t('forms.save')} {/if} {#if service.type === 'plausibleanalytics' && isRunning} {loadingVerification + ? $t('forms.verifying') + : $t('forms.verify_emails_without_smtp')} {/if}
- +
- +
{#if service.destinationDockerId}
@@ -108,10 +113,10 @@
- - + +
!isRunning && changeSettings('dualCerts')} />
diff --git a/src/routes/services/[id]/_Services/_VSCodeServer.svelte b/src/routes/services/[id]/_Services/_VSCodeServer.svelte index f8be43aa5..43873bf4d 100644 --- a/src/routes/services/[id]/_Services/_VSCodeServer.svelte +++ b/src/routes/services/[id]/_Services/_VSCodeServer.svelte @@ -1,5 +1,6 @@ @@ -8,7 +9,7 @@
VSCode Server
- + import CopyPasswordField from '$lib/components/CopyPasswordField.svelte'; + import { t } from '$lib/translations'; export let service; export let isRunning; @@ -11,7 +12,7 @@
- +