From 943300509b541765a20775e0d14ab7d7d8eaedfa Mon Sep 17 00:00:00 2001 From: Restray Date: Sat, 2 Apr 2022 19:29:22 +0200 Subject: [PATCH] Revert "Add Locale URL" This reverts commit d910b21185783a8cb194d03b25cd4803ce1fec41. --- .vscode/settings.json | 6 +- package.json | 2 +- pnpm-lock.yaml | 124 ++- src/hooks.ts | 43 +- src/lib/form.ts | 11 +- src/lib/lang.json | 4 - src/lib/settings.ts | 6 +- src/lib/translations.ts | 26 - src/routes/__error.svelte | 8 +- src/routes/__layout.svelte | 776 +++++++++--------- .../applications/[id]/__layout.svelte | 0 .../applications/[id]/check.json.ts | 0 .../[id]/configuration/_BuildPack.svelte | 0 .../configuration/_GithubRepositories.svelte | 0 .../configuration/_GitlabRepositories.svelte | 0 .../[id]/configuration/buildpack.json.ts | 0 .../[id]/configuration/buildpack.svelte | 0 .../[id]/configuration/deploykey.json.ts | 0 .../[id]/configuration/destination.json.ts | 0 .../[id]/configuration/destination.svelte | 0 .../[id]/configuration/githubToken.json.ts | 0 .../[id]/configuration/repository.json.ts | 0 .../[id]/configuration/repository.svelte | 0 .../[id]/configuration/source.json.ts | 0 .../[id]/configuration/source.svelte | 0 .../[id]/configuration/sshkey.json.ts | 0 .../applications/[id]/delete.json.ts | 0 .../applications/[id]/deploy.json.ts | 0 .../applications/[id]/index.json.ts | 0 .../applications/[id]/index.svelte | 0 .../applications/[id]/logs/_Loading.svelte | 0 .../[id]/logs/build/_BuildLog.svelte | 0 .../[id]/logs/build/build.json.ts | 0 .../[id]/logs/build/index.json.ts | 0 .../applications/[id]/logs/build/index.svelte | 0 .../applications/[id]/logs/index.json.ts | 0 .../applications/[id]/logs/index.svelte | 0 .../applications/[id]/previews/index.json.ts | 0 .../applications/[id]/previews/index.svelte | 0 .../applications/[id]/secrets/_Secret.svelte | 0 .../applications/[id]/secrets/index.json.ts | 0 .../applications/[id]/secrets/index.svelte | 0 .../applications/[id]/settings.json.ts | 4 +- .../applications/[id]/stop.json.ts | 0 .../applications/[id]/storage/_Storage.svelte | 0 .../applications/[id]/storage/index.json.ts | 0 .../applications/[id]/storage/index.svelte | 0 .../applications/_Application.svelte | 3 +- .../{[lang] => }/applications/index.svelte | 5 +- src/routes/{[lang] => }/applications/index.ts | 0 src/routes/{[lang] => }/applications/new.ts | 0 .../{[lang] => }/common/getUniqueName.json.ts | 0 .../databases/[id]/_Databases/_CouchDb.svelte | 0 .../[id]/_Databases/_Databases.svelte | 0 .../databases/[id]/_Databases/_MongoDB.svelte | 0 .../databases/[id]/_Databases/_MySQL.svelte | 0 .../[id]/_Databases/_PostgreSQL.svelte | 0 .../databases/[id]/_Databases/_Redis.svelte | 0 .../databases/[id]/__layout.svelte | 0 .../[id]/configuration/destination.json.ts | 0 .../[id]/configuration/destination.svelte | 0 .../databases/[id]/configuration/type.json.ts | 0 .../databases/[id]/configuration/type.svelte | 0 .../[id]/configuration/version.json.ts | 0 .../[id]/configuration/version.svelte | 0 .../databases/[id]/delete.json.ts | 0 .../{[lang] => }/databases/[id]/index.json.ts | 0 .../{[lang] => }/databases/[id]/index.svelte | 0 .../databases/[id]/settings.json.ts | 0 .../{[lang] => }/databases/[id]/start.json.ts | 0 .../{[lang] => }/databases/[id]/stop.json.ts | 0 .../{[lang] => }/databases/index.svelte | 0 src/routes/{[lang] => }/databases/index.ts | 0 src/routes/{[lang] => }/databases/new.ts | 0 .../destinations/[id]/_FoundApp.svelte | 0 .../destinations/[id]/_LocalDocker.svelte | 0 .../destinations/[id]/_RemoteDocker.svelte | 0 .../destinations/[id]/__layout.svelte | 0 .../destinations/[id]/index.json.ts | 0 .../destinations/[id]/index.svelte | 0 .../destinations/[id]/restart.json.ts | 0 .../destinations/[id]/scan.json.ts | 0 .../destinations/[id]/settings.json.ts | 0 .../destinations/[id]/start.json.ts | 0 .../destinations/[id]/stop.json.ts | 0 .../{[lang] => }/destinations/index.json.ts | 0 .../{[lang] => }/destinations/index.svelte | 0 src/routes/index.svelte | 21 +- src/routes/{[lang] => }/login/index.json.ts | 0 src/routes/{[lang] => }/login/index.svelte | 17 +- src/routes/{[lang] => }/logout/index.json.ts | 0 .../new/destination/_LocalDocker.svelte | 0 .../new/destination/_RemoteDocker.svelte | 0 .../new/destination/check.json.ts | 0 .../new/destination/docker.json.ts | 0 .../{[lang] => }/new/destination/index.svelte | 0 .../{[lang] => }/new/source/_Github.svelte | 0 .../{[lang] => }/new/source/_Gitlab.svelte | 0 .../{[lang] => }/new/source/index.json.ts | 0 .../{[lang] => }/new/source/index.svelte | 0 .../{[lang] => }/new/team/index.json.ts | 0 src/routes/{[lang] => }/new/team/index.svelte | 0 src/routes/{[lang] => }/register/index.svelte | 15 +- src/routes/{[lang] => }/register/index.ts | 0 src/routes/{[lang] => }/reset/index.json.ts | 2 +- src/routes/{[lang] => }/reset/index.svelte | 0 .../{[lang] => }/reset/password.json.ts | 2 +- .../services/[id]/_Services/_Ghost.svelte | 0 .../services/[id]/_Services/_MinIO.svelte | 0 .../[id]/_Services/_PlausibleAnalytics.svelte | 0 .../services/[id]/_Services/_Services.svelte | 0 .../[id]/_Services/_VSCodeServer.svelte | 0 .../services/[id]/_Services/_Wordpress.svelte | 0 .../services/[id]/__layout.svelte | 0 .../{[lang] => }/services/[id]/check.json.ts | 0 .../[id]/configuration/destination.json.ts | 0 .../[id]/configuration/destination.svelte | 0 .../services/[id]/configuration/type.json.ts | 0 .../services/[id]/configuration/type.svelte | 0 .../[id]/configuration/version.json.ts | 0 .../[id]/configuration/version.svelte | 0 .../{[lang] => }/services/[id]/delete.json.ts | 0 .../services/[id]/ghost/index.json.ts | 0 .../services/[id]/ghost/start.json.ts | 0 .../services/[id]/ghost/stop.json.ts | 0 .../{[lang] => }/services/[id]/index.json.ts | 0 .../{[lang] => }/services/[id]/index.svelte | 0 .../services/[id]/languagetool/index.json.ts | 0 .../services/[id]/languagetool/start.json.ts | 0 .../services/[id]/languagetool/stop.json.ts | 0 .../services/[id]/minio/index.json.ts | 0 .../services/[id]/minio/start.json.ts | 0 .../services/[id]/minio/stop.json.ts | 0 .../services/[id]/n8n/index.json.ts | 0 .../services/[id]/n8n/start.json.ts | 0 .../services/[id]/n8n/stop.json.ts | 0 .../services/[id]/nocodb/index.json.ts | 0 .../services/[id]/nocodb/start.json.ts | 0 .../services/[id]/nocodb/stop.json.ts | 0 .../[id]/plausibleanalytics/activate.json.ts | 0 .../[id]/plausibleanalytics/index.json.ts | 0 .../[id]/plausibleanalytics/start.json.ts | 0 .../[id]/plausibleanalytics/stop.json.ts | 0 .../services/[id]/secrets/_Secret.svelte | 0 .../services/[id]/secrets/index.json.ts | 0 .../services/[id]/secrets/index.svelte | 0 .../services/[id]/settings.json.ts | 0 .../services/[id]/uptimekuma/index.json.ts | 0 .../services/[id]/uptimekuma/start.json.ts | 0 .../services/[id]/uptimekuma/stop.json.ts | 0 .../services/[id]/vaultwarden/index.json.ts | 0 .../services/[id]/vaultwarden/start.json.ts | 0 .../services/[id]/vaultwarden/stop.json.ts | 0 .../services/[id]/vscodeserver/index.json.ts | 0 .../services/[id]/vscodeserver/start.json.ts | 0 .../services/[id]/vscodeserver/stop.json.ts | 0 .../services/[id]/wordpress/index.json.ts | 0 .../services/[id]/wordpress/start.json.ts | 0 .../services/[id]/wordpress/stop.json.ts | 0 src/routes/{[lang] => }/services/index.svelte | 0 src/routes/{[lang] => }/services/index.ts | 0 src/routes/{[lang] => }/services/new.ts | 0 .../{[lang] => }/settings/check.json.ts | 0 .../{[lang] => }/settings/index.json.ts | 0 src/routes/{[lang] => }/settings/index.svelte | 0 .../{[lang] => }/sources/[id]/_Github.svelte | 17 +- .../{[lang] => }/sources/[id]/_Gitlab.svelte | 0 .../{[lang] => }/sources/[id]/__layout.svelte | 9 +- .../{[lang] => }/sources/[id]/check.json.ts | 0 .../{[lang] => }/sources/[id]/gitlab.json.ts | 0 .../{[lang] => }/sources/[id]/index.json.ts | 0 .../{[lang] => }/sources/[id]/index.svelte | 0 .../sources/[id]/newGithubApp.svelte | 0 src/routes/{[lang] => }/sources/index.json.ts | 0 src/routes/{[lang] => }/sources/index.svelte | 7 +- .../{[lang] => }/teams/[id]/__layout.svelte | 0 .../{[lang] => }/teams/[id]/index.json.ts | 0 .../{[lang] => }/teams/[id]/index.svelte | 0 .../teams/[id]/invitation/accept.json.ts | 0 .../teams/[id]/invitation/invite.json.ts | 0 .../teams/[id]/invitation/revoke.json.ts | 0 .../teams/[id]/permission/change.json.ts | 0 .../teams/[id]/remove/user.json.ts | 0 src/routes/{[lang] => }/teams/index.json.ts | 0 src/routes/{[lang] => }/teams/index.svelte | 0 static/locales/en.json | 55 +- static/locales/fr.json | 66 -- 187 files changed, 539 insertions(+), 690 deletions(-) delete mode 100644 src/lib/lang.json delete mode 100644 src/lib/translations.ts rename src/routes/{[lang] => }/applications/[id]/__layout.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/check.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/_BuildPack.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/_GithubRepositories.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/_GitlabRepositories.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/buildpack.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/buildpack.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/deploykey.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/destination.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/destination.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/githubToken.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/repository.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/repository.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/source.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/source.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/configuration/sshkey.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/delete.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/deploy.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/index.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/index.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/logs/_Loading.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/logs/build/_BuildLog.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/logs/build/build.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/logs/build/index.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/logs/build/index.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/logs/index.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/logs/index.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/previews/index.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/previews/index.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/secrets/_Secret.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/secrets/index.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/secrets/index.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/settings.json.ts (85%) rename src/routes/{[lang] => }/applications/[id]/stop.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/storage/_Storage.svelte (100%) rename src/routes/{[lang] => }/applications/[id]/storage/index.json.ts (100%) rename src/routes/{[lang] => }/applications/[id]/storage/index.svelte (100%) rename src/routes/{[lang] => }/applications/_Application.svelte (96%) rename src/routes/{[lang] => }/applications/index.svelte (84%) rename src/routes/{[lang] => }/applications/index.ts (100%) rename src/routes/{[lang] => }/applications/new.ts (100%) rename src/routes/{[lang] => }/common/getUniqueName.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/_Databases/_CouchDb.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/_Databases/_Databases.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/_Databases/_MongoDB.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/_Databases/_MySQL.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/_Databases/_PostgreSQL.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/_Databases/_Redis.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/__layout.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/configuration/destination.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/configuration/destination.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/configuration/type.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/configuration/type.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/configuration/version.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/configuration/version.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/delete.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/index.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/index.svelte (100%) rename src/routes/{[lang] => }/databases/[id]/settings.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/start.json.ts (100%) rename src/routes/{[lang] => }/databases/[id]/stop.json.ts (100%) rename src/routes/{[lang] => }/databases/index.svelte (100%) rename src/routes/{[lang] => }/databases/index.ts (100%) rename src/routes/{[lang] => }/databases/new.ts (100%) rename src/routes/{[lang] => }/destinations/[id]/_FoundApp.svelte (100%) rename src/routes/{[lang] => }/destinations/[id]/_LocalDocker.svelte (100%) rename src/routes/{[lang] => }/destinations/[id]/_RemoteDocker.svelte (100%) rename src/routes/{[lang] => }/destinations/[id]/__layout.svelte (100%) rename src/routes/{[lang] => }/destinations/[id]/index.json.ts (100%) rename src/routes/{[lang] => }/destinations/[id]/index.svelte (100%) rename src/routes/{[lang] => }/destinations/[id]/restart.json.ts (100%) rename src/routes/{[lang] => }/destinations/[id]/scan.json.ts (100%) rename src/routes/{[lang] => }/destinations/[id]/settings.json.ts (100%) rename src/routes/{[lang] => }/destinations/[id]/start.json.ts (100%) rename src/routes/{[lang] => }/destinations/[id]/stop.json.ts (100%) rename src/routes/{[lang] => }/destinations/index.json.ts (100%) rename src/routes/{[lang] => }/destinations/index.svelte (100%) rename src/routes/{[lang] => }/login/index.json.ts (100%) rename src/routes/{[lang] => }/login/index.svelte (81%) rename src/routes/{[lang] => }/logout/index.json.ts (100%) rename src/routes/{[lang] => }/new/destination/_LocalDocker.svelte (100%) rename src/routes/{[lang] => }/new/destination/_RemoteDocker.svelte (100%) rename src/routes/{[lang] => }/new/destination/check.json.ts (100%) rename src/routes/{[lang] => }/new/destination/docker.json.ts (100%) rename src/routes/{[lang] => }/new/destination/index.svelte (100%) rename src/routes/{[lang] => }/new/source/_Github.svelte (100%) rename src/routes/{[lang] => }/new/source/_Gitlab.svelte (100%) rename src/routes/{[lang] => }/new/source/index.json.ts (100%) rename src/routes/{[lang] => }/new/source/index.svelte (100%) rename src/routes/{[lang] => }/new/team/index.json.ts (100%) rename src/routes/{[lang] => }/new/team/index.svelte (100%) rename src/routes/{[lang] => }/register/index.svelte (84%) rename src/routes/{[lang] => }/register/index.ts (100%) rename src/routes/{[lang] => }/reset/index.json.ts (91%) rename src/routes/{[lang] => }/reset/index.svelte (100%) rename src/routes/{[lang] => }/reset/password.json.ts (93%) rename src/routes/{[lang] => }/services/[id]/_Services/_Ghost.svelte (100%) rename src/routes/{[lang] => }/services/[id]/_Services/_MinIO.svelte (100%) rename src/routes/{[lang] => }/services/[id]/_Services/_PlausibleAnalytics.svelte (100%) rename src/routes/{[lang] => }/services/[id]/_Services/_Services.svelte (100%) rename src/routes/{[lang] => }/services/[id]/_Services/_VSCodeServer.svelte (100%) rename src/routes/{[lang] => }/services/[id]/_Services/_Wordpress.svelte (100%) rename src/routes/{[lang] => }/services/[id]/__layout.svelte (100%) rename src/routes/{[lang] => }/services/[id]/check.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/configuration/destination.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/configuration/destination.svelte (100%) rename src/routes/{[lang] => }/services/[id]/configuration/type.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/configuration/type.svelte (100%) rename src/routes/{[lang] => }/services/[id]/configuration/version.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/configuration/version.svelte (100%) rename src/routes/{[lang] => }/services/[id]/delete.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/ghost/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/ghost/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/ghost/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/index.svelte (100%) rename src/routes/{[lang] => }/services/[id]/languagetool/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/languagetool/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/languagetool/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/minio/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/minio/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/minio/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/n8n/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/n8n/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/n8n/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/nocodb/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/nocodb/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/nocodb/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/plausibleanalytics/activate.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/plausibleanalytics/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/plausibleanalytics/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/plausibleanalytics/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/secrets/_Secret.svelte (100%) rename src/routes/{[lang] => }/services/[id]/secrets/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/secrets/index.svelte (100%) rename src/routes/{[lang] => }/services/[id]/settings.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/uptimekuma/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/uptimekuma/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/uptimekuma/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/vaultwarden/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/vaultwarden/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/vaultwarden/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/vscodeserver/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/vscodeserver/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/vscodeserver/stop.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/wordpress/index.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/wordpress/start.json.ts (100%) rename src/routes/{[lang] => }/services/[id]/wordpress/stop.json.ts (100%) rename src/routes/{[lang] => }/services/index.svelte (100%) rename src/routes/{[lang] => }/services/index.ts (100%) rename src/routes/{[lang] => }/services/new.ts (100%) rename src/routes/{[lang] => }/settings/check.json.ts (100%) rename src/routes/{[lang] => }/settings/index.json.ts (100%) rename src/routes/{[lang] => }/settings/index.svelte (100%) rename src/routes/{[lang] => }/sources/[id]/_Github.svelte (81%) rename src/routes/{[lang] => }/sources/[id]/_Gitlab.svelte (100%) rename src/routes/{[lang] => }/sources/[id]/__layout.svelte (82%) rename src/routes/{[lang] => }/sources/[id]/check.json.ts (100%) rename src/routes/{[lang] => }/sources/[id]/gitlab.json.ts (100%) rename src/routes/{[lang] => }/sources/[id]/index.json.ts (100%) rename src/routes/{[lang] => }/sources/[id]/index.svelte (100%) rename src/routes/{[lang] => }/sources/[id]/newGithubApp.svelte (100%) rename src/routes/{[lang] => }/sources/index.json.ts (100%) rename src/routes/{[lang] => }/sources/index.svelte (88%) rename src/routes/{[lang] => }/teams/[id]/__layout.svelte (100%) rename src/routes/{[lang] => }/teams/[id]/index.json.ts (100%) rename src/routes/{[lang] => }/teams/[id]/index.svelte (100%) rename src/routes/{[lang] => }/teams/[id]/invitation/accept.json.ts (100%) rename src/routes/{[lang] => }/teams/[id]/invitation/invite.json.ts (100%) rename src/routes/{[lang] => }/teams/[id]/invitation/revoke.json.ts (100%) rename src/routes/{[lang] => }/teams/[id]/permission/change.json.ts (100%) rename src/routes/{[lang] => }/teams/[id]/remove/user.json.ts (100%) rename src/routes/{[lang] => }/teams/index.json.ts (100%) rename src/routes/{[lang] => }/teams/index.svelte (100%) delete mode 100644 static/locales/fr.json diff --git a/.vscode/settings.json b/.vscode/settings.json index 9a291b28c..1cc7be6e1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { - "i18n-ally.localesPaths": ["static/locales"], + "i18n-ally.localesPaths": ["locales"], "i18n-ally.keystyle": "nested", - "i18n-ally.extract.ignored": ["Coolify", "coolLabs logo"] + "i18n-ally.extract.ignoredByFiles": { + "src\\routes\\__layout.svelte": ["Coolify", "coolLabs logo"] + } } diff --git a/package.json b/package.json index 39696ce59..7a0a8e4bf 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "prisma": "3.11.1", "svelte": "3.46.4", "svelte-check": "2.4.6", + "svelte-i18n": "^3.3.13", "svelte-preprocess": "4.10.4", "svelte-select": "^4.4.7", "tailwindcss": "3.0.23", @@ -81,7 +82,6 @@ "mustache": "^4.2.0", "node-forge": "1.3.0", "svelte-kit-cookie-session": "2.1.2", - "sveltekit-i18n": "^2.1.2", "tailwindcss-scrollbar": "^0.1.0", "unique-names-generator": "4.7.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b7677e8d..e7594b347 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,10 +46,10 @@ specifiers: prisma: 3.11.1 svelte: 3.46.4 svelte-check: 2.4.6 + svelte-i18n: ^3.3.13 svelte-kit-cookie-session: 2.1.2 svelte-preprocess: 4.10.4 svelte-select: ^4.4.7 - sveltekit-i18n: ^2.1.2 tailwindcss: 3.0.23 tailwindcss-scrollbar: ^0.1.0 ts-node: 10.7.0 @@ -79,7 +79,6 @@ dependencies: mustache: 4.2.0 node-forge: 1.3.0 svelte-kit-cookie-session: 2.1.2 - sveltekit-i18n: 2.1.2_svelte@3.46.4 tailwindcss-scrollbar: 0.1.0_tailwindcss@3.0.23 unique-names-generator: 4.7.1 @@ -109,6 +108,7 @@ devDependencies: prisma: 3.11.1 svelte: 3.46.4 svelte-check: 2.4.6_postcss@8.4.12+svelte@3.46.4 + svelte-i18n: 3.3.13_svelte@3.46.4 svelte-preprocess: 4.10.4_296873641a0ad9f42fe92172d27bcedd svelte-select: 4.4.7 tailwindcss: 3.0.23_b89136460714832cdda11d1e9d57d1ff @@ -184,6 +184,55 @@ packages: - supports-color dev: true + /@formatjs/ecma402-abstract/1.11.4: + resolution: + { + integrity: sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw== + } + dependencies: + '@formatjs/intl-localematcher': 0.2.25 + tslib: 2.3.1 + dev: true + + /@formatjs/fast-memoize/1.2.1: + resolution: + { + integrity: sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg== + } + dependencies: + tslib: 2.3.1 + dev: true + + /@formatjs/icu-messageformat-parser/2.0.19: + resolution: + { + integrity: sha512-8HsLm9YLyVVIDMyBJb7wmve2wGd461cUwJ470eUog5YH5ZsF4p5lgvaJ+oGKxz1mrSMNNdDHU9v/NDsS+z+ilg== + } + dependencies: + '@formatjs/ecma402-abstract': 1.11.4 + '@formatjs/icu-skeleton-parser': 1.3.6 + tslib: 2.3.1 + dev: true + + /@formatjs/icu-skeleton-parser/1.3.6: + resolution: + { + integrity: sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg== + } + dependencies: + '@formatjs/ecma402-abstract': 1.11.4 + tslib: 2.3.1 + dev: true + + /@formatjs/intl-localematcher/0.2.25: + resolution: + { + integrity: sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA== + } + dependencies: + tslib: 2.3.1 + dev: true + /@humanwhocodes/config-array/0.5.0: resolution: { @@ -446,26 +495,6 @@ packages: - supports-color dev: true - /@sveltekit-i18n/base/1.1.1_svelte@3.46.4: - resolution: - { - integrity: sha512-J/sMU0OwS3dCLOuilHMBqu8vZHuuXiNV9vFJx8Nb4/b5BlR/KCZ4bCXI8wZR02GHeCOYKZxWus07CM1scxa/jw== - } - peerDependencies: - svelte: ^3.x - dependencies: - svelte: 3.46.4 - optionalDependencies: - '@sveltekit-i18n/parser-default': 1.0.3 - dev: false - - /@sveltekit-i18n/parser-default/1.0.3: - resolution: - { - integrity: sha512-HheveklTjp3hxpYQhoHfyA6B4bQaUeSV5MQf2usIv/58UF2jY/YqhCAWj9bDBjufbuZc5pSz4BXvdX3WVT+viA== - } - dev: false - /@szmarczak/http-timer/5.0.1: resolution: { @@ -2225,6 +2254,14 @@ packages: } dev: true + /deepmerge/4.2.2: + resolution: + { + integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + } + engines: { node: '>=0.10.0' } + dev: true + /defer-to-connect/2.0.1: resolution: { @@ -3425,6 +3462,18 @@ packages: integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== } + /intl-messageformat/9.12.0: + resolution: + { + integrity: sha512-5Q9j21JreB1G27/CqMYsA+pvJ19JjHyhiTSeUuvZK9BCDJGHtOLgpUUcGM+GLHiUuoVMKVeeX1smamiVHQrSKQ== + } + dependencies: + '@formatjs/ecma402-abstract': 1.11.4 + '@formatjs/fast-memoize': 1.2.1 + '@formatjs/icu-messageformat-parser': 2.0.19 + tslib: 2.3.1 + dev: true + /invariant/2.2.4: resolution: { @@ -5194,6 +5243,24 @@ packages: svelte: 3.46.4 dev: true + /svelte-i18n/3.3.13_svelte@3.46.4: + resolution: + { + integrity: sha512-RQM+ys4+Y9ztH//tX22H1UL2cniLNmIR+N4xmYygV6QpQ6EyQvloZiENRew8XrVzfvJ8HaE8NU6/yurLkl7z3g== + } + engines: { node: '>= 11.15.0' } + hasBin: true + peerDependencies: + svelte: ^3.25.1 + dependencies: + deepmerge: 4.2.2 + estree-walker: 2.0.2 + intl-messageformat: 9.12.0 + sade: 1.7.4 + svelte: 3.46.4 + tiny-glob: 0.2.9 + dev: true + /svelte-kit-cookie-session/2.1.2: resolution: { @@ -5271,19 +5338,6 @@ packages: engines: { node: '>= 8' } dev: true - /sveltekit-i18n/2.1.2_svelte@3.46.4: - resolution: - { - integrity: sha512-s5YxcbNd2EWNZaZR1A4Drt8s53E4fpUkN4XIWd3VRpw1pihZVWssqmBW1qkjQ6AB0kiu1Qwule+vt1HkbQOjrg== - } - peerDependencies: - svelte: ^3.x - dependencies: - '@sveltekit-i18n/base': 1.1.1_svelte@3.46.4 - '@sveltekit-i18n/parser-default': 1.0.3 - svelte: 3.46.4 - dev: false - /table/6.7.2: resolution: { diff --git a/src/hooks.ts b/src/hooks.ts index 4a0fa2e87..d6c6eca6d 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -6,9 +6,6 @@ import { getUserDetails, sentry } from '$lib/common'; import { version } from '$lib/common'; import cookie from 'cookie'; import { dev } from '$app/env'; -import { locales } from '$lib/translations'; - -const routeRegex = new RegExp(/^\/[^.]*([?#].*)?$/); export const handle = handleSession( { @@ -65,45 +62,9 @@ export const handle = handleSession( expires: new Date('Thu, 01 Jan 1970 00:00:01 GMT') }) ); + } finally { + return response; } - - const { url, request } = event; - const { pathname } = url; - - // If this request is a route request - if (routeRegex.test(pathname)) { - // Get defined locales - const supportedLocales = locales.get(); - - // Try to get locale from `pathname`. - let locale = supportedLocales.find( - (l) => `${l}`.toLowerCase() === `${pathname.match(/[^/]+?(?=\/|$)/)}`.toLowerCase() - ); - - // If route locale is not supported - if (!locale) { - // Get user preferred locale - locale = `${`${request.headers['accept-language']}`.match( - /[a-zA-Z]+?(?=-|_|,|;)/ - )}`.toLowerCase(); - - // Set default locale if user preferred locale does not match - if (!supportedLocales.includes(locale)) locale = 'en'; - - // 301 redirect - return new Response(undefined, { - headers: { location: `/${locale}${pathname}` }, - status: 301 - }); - } - - // Add html `lang` attribute - const body = await response.text(); - - return new Response(`${body}`.replace(//, ``), response); - } - - return response; } ); diff --git a/src/lib/form.ts b/src/lib/form.ts index 94871a66e..08099576d 100644 --- a/src/lib/form.ts +++ b/src/lib/form.ts @@ -1,15 +1,10 @@ import { toast } from '@zerodevx/svelte-toast'; -import { t } from '$lib/translations'; - -let formatMessage; -t.subscribe((storeFormat) => (formatMessage = storeFormat)); - -export function errorNotification(message: string): void { +export function errorNotification(message: string) { console.error(message); if (typeof message !== 'string') { - toast.push(formatMessage('error.generic_message')); + toast.push('Ooops, something is not okay, are you okay?'); } else { - toast.push(formatMessage(message)); + toast.push(message); } } export function enhance( diff --git a/src/lib/lang.json b/src/lib/lang.json deleted file mode 100644 index b01c522bb..000000000 --- a/src/lib/lang.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "en": "English", - "fr": "Français" -} diff --git a/src/lib/settings.ts b/src/lib/settings.ts index 437f1e415..211852c06 100644 --- a/src/lib/settings.ts +++ b/src/lib/settings.ts @@ -1,4 +1,4 @@ -const publicPaths = [ +export const publicPaths = [ '/login', '/register', '/reset', @@ -8,7 +8,3 @@ const publicPaths = [ '/webhooks/github/install', '/webhooks/gitlab' ]; - -export function isPublicPath(path: string): boolean { - return publicPaths.includes(path); -} diff --git a/src/lib/translations.ts b/src/lib/translations.ts deleted file mode 100644 index 299c8a75b..000000000 --- a/src/lib/translations.ts +++ /dev/null @@ -1,26 +0,0 @@ -import i18n from 'sveltekit-i18n'; -import lang from './lang.json'; - -/** @type {import('sveltekit-i18n').Config} */ -export const config = { - fallbackLocale: 'en', - translations: { - en: { lang }, - fr: { lang } - }, - loaders: [ - { - locale: 'en', - key: '', - loader: async () => (await import('../../static/locales/en.json')).default - }, - { - locale: 'fr', - key: '', - loader: async () => (await import('../../static/locales/fr.json')).default - } - ] -}; - -export const { t, loading, locales, locale, loadTranslations } = new i18n(config); -loading.subscribe(($loading) => $loading && console.log('Loading translations...')); diff --git a/src/routes/__error.svelte b/src/routes/__error.svelte index 97ee15b01..67693e70a 100644 --- a/src/routes/__error.svelte +++ b/src/routes/__error.svelte @@ -12,17 +12,17 @@
{status}
-
{$t('error.oops_your_lost')}
+
Ooops you are lost! But don't be afraid!
- {$t('error.you_can_find_your_way_back')} - {$t('error.here')} + {$_('error.you_can_find_your_way_back')} + {$_('error.here')}
 	import type { Load } from '@sveltejs/kit';
-	import { isPublicPath } from '$lib/settings';
-	import { locale, loadTranslations } from '$lib/translations';
+	import { publicPaths } from '$lib/settings';
 
 	export const load: Load = async ({ fetch, url, session }) => {
-		const { pathname } = url;
-		const lang = `${pathname.match(/[^/]+?(?=\/|$)/) || ''}`;
-		const route = pathname.replace(new RegExp(`^/${lang}`), '');
-		await loadTranslations(lang, route);
-
-		if (!session.userId && !isPublicPath(route)) {
+		if (!session.userId && !publicPaths.includes(url.pathname)) {
 			return {
 				status: 302,
 				redirect: '/login'
@@ -44,7 +38,18 @@
 	import { errorNotification } from '$lib/form';
 	import { asyncSleep } from '$lib/components/common';
 	import { del, get, post } from '$lib/api';
-	import { t } from '$lib/translations';
+	import { register, init, _, getLocaleFromNavigator } from 'svelte-i18n';
+
+	async function setup() {
+		register('en', () => import('../../static/locales/en.json'));
+
+		return await Promise.allSettled([
+			// TODO: add some more stuff you want to init ...
+			init({ initialLocale: getLocaleFromNavigator(), fallbackLocale: 'en' })
+		]);
+	}
+
+	const setupResult = setup();
 
 	let isUpdateAvailable = false;
 
@@ -54,7 +59,6 @@
 		success: null
 	};
 	let latestVersion = 'latest';
-
 	onMount(async () => {
 		if ($session.userId) {
 			const overrideVersion = browser && window.localStorage.getItem('latestVersion');
@@ -111,7 +115,7 @@
 				return window.location.reload();
 			} else {
 				await post(`/update.json`, { type: 'update', latestVersion });
-				toast.push(`${$t('layout.update_done')}

${$t('layout.wait_new_version_startup')}`); + toast.push(`${$_('layout.update_done')}

${$_('layout.wait_new_version_startup')}`); let reachable = false; let tries = 0; do { @@ -125,7 +129,7 @@ if (reachable) break; tries++; } while (!reachable || tries < 120); - toast.push($t('layout.new_version')); + toast.push($_('layout.new_version')); updateStatus.loading = false; updateStatus.success = true; await asyncSleep(3000); @@ -143,332 +147,22 @@ Coolify - -{#if $session.userId} - + + {/if} +
+ +
+{:catch error} +

{error.message}

+{/await} diff --git a/src/routes/[lang]/applications/[id]/__layout.svelte b/src/routes/applications/[id]/__layout.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/__layout.svelte rename to src/routes/applications/[id]/__layout.svelte diff --git a/src/routes/[lang]/applications/[id]/check.json.ts b/src/routes/applications/[id]/check.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/check.json.ts rename to src/routes/applications/[id]/check.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/_BuildPack.svelte b/src/routes/applications/[id]/configuration/_BuildPack.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/_BuildPack.svelte rename to src/routes/applications/[id]/configuration/_BuildPack.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/_GithubRepositories.svelte b/src/routes/applications/[id]/configuration/_GithubRepositories.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/_GithubRepositories.svelte rename to src/routes/applications/[id]/configuration/_GithubRepositories.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/_GitlabRepositories.svelte b/src/routes/applications/[id]/configuration/_GitlabRepositories.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/_GitlabRepositories.svelte rename to src/routes/applications/[id]/configuration/_GitlabRepositories.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/buildpack.json.ts b/src/routes/applications/[id]/configuration/buildpack.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/buildpack.json.ts rename to src/routes/applications/[id]/configuration/buildpack.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/buildpack.svelte b/src/routes/applications/[id]/configuration/buildpack.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/buildpack.svelte rename to src/routes/applications/[id]/configuration/buildpack.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/deploykey.json.ts b/src/routes/applications/[id]/configuration/deploykey.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/deploykey.json.ts rename to src/routes/applications/[id]/configuration/deploykey.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/destination.json.ts b/src/routes/applications/[id]/configuration/destination.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/destination.json.ts rename to src/routes/applications/[id]/configuration/destination.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/destination.svelte b/src/routes/applications/[id]/configuration/destination.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/destination.svelte rename to src/routes/applications/[id]/configuration/destination.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/githubToken.json.ts b/src/routes/applications/[id]/configuration/githubToken.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/githubToken.json.ts rename to src/routes/applications/[id]/configuration/githubToken.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/repository.json.ts b/src/routes/applications/[id]/configuration/repository.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/repository.json.ts rename to src/routes/applications/[id]/configuration/repository.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/repository.svelte b/src/routes/applications/[id]/configuration/repository.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/repository.svelte rename to src/routes/applications/[id]/configuration/repository.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/source.json.ts b/src/routes/applications/[id]/configuration/source.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/source.json.ts rename to src/routes/applications/[id]/configuration/source.json.ts diff --git a/src/routes/[lang]/applications/[id]/configuration/source.svelte b/src/routes/applications/[id]/configuration/source.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/source.svelte rename to src/routes/applications/[id]/configuration/source.svelte diff --git a/src/routes/[lang]/applications/[id]/configuration/sshkey.json.ts b/src/routes/applications/[id]/configuration/sshkey.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/configuration/sshkey.json.ts rename to src/routes/applications/[id]/configuration/sshkey.json.ts diff --git a/src/routes/[lang]/applications/[id]/delete.json.ts b/src/routes/applications/[id]/delete.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/delete.json.ts rename to src/routes/applications/[id]/delete.json.ts diff --git a/src/routes/[lang]/applications/[id]/deploy.json.ts b/src/routes/applications/[id]/deploy.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/deploy.json.ts rename to src/routes/applications/[id]/deploy.json.ts diff --git a/src/routes/[lang]/applications/[id]/index.json.ts b/src/routes/applications/[id]/index.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/index.json.ts rename to src/routes/applications/[id]/index.json.ts diff --git a/src/routes/[lang]/applications/[id]/index.svelte b/src/routes/applications/[id]/index.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/index.svelte rename to src/routes/applications/[id]/index.svelte diff --git a/src/routes/[lang]/applications/[id]/logs/_Loading.svelte b/src/routes/applications/[id]/logs/_Loading.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/_Loading.svelte rename to src/routes/applications/[id]/logs/_Loading.svelte diff --git a/src/routes/[lang]/applications/[id]/logs/build/_BuildLog.svelte b/src/routes/applications/[id]/logs/build/_BuildLog.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/build/_BuildLog.svelte rename to src/routes/applications/[id]/logs/build/_BuildLog.svelte diff --git a/src/routes/[lang]/applications/[id]/logs/build/build.json.ts b/src/routes/applications/[id]/logs/build/build.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/build/build.json.ts rename to src/routes/applications/[id]/logs/build/build.json.ts diff --git a/src/routes/[lang]/applications/[id]/logs/build/index.json.ts b/src/routes/applications/[id]/logs/build/index.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/build/index.json.ts rename to src/routes/applications/[id]/logs/build/index.json.ts diff --git a/src/routes/[lang]/applications/[id]/logs/build/index.svelte b/src/routes/applications/[id]/logs/build/index.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/build/index.svelte rename to src/routes/applications/[id]/logs/build/index.svelte diff --git a/src/routes/[lang]/applications/[id]/logs/index.json.ts b/src/routes/applications/[id]/logs/index.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/index.json.ts rename to src/routes/applications/[id]/logs/index.json.ts diff --git a/src/routes/[lang]/applications/[id]/logs/index.svelte b/src/routes/applications/[id]/logs/index.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/logs/index.svelte rename to src/routes/applications/[id]/logs/index.svelte diff --git a/src/routes/[lang]/applications/[id]/previews/index.json.ts b/src/routes/applications/[id]/previews/index.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/previews/index.json.ts rename to src/routes/applications/[id]/previews/index.json.ts diff --git a/src/routes/[lang]/applications/[id]/previews/index.svelte b/src/routes/applications/[id]/previews/index.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/previews/index.svelte rename to src/routes/applications/[id]/previews/index.svelte diff --git a/src/routes/[lang]/applications/[id]/secrets/_Secret.svelte b/src/routes/applications/[id]/secrets/_Secret.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/secrets/_Secret.svelte rename to src/routes/applications/[id]/secrets/_Secret.svelte diff --git a/src/routes/[lang]/applications/[id]/secrets/index.json.ts b/src/routes/applications/[id]/secrets/index.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/secrets/index.json.ts rename to src/routes/applications/[id]/secrets/index.json.ts diff --git a/src/routes/[lang]/applications/[id]/secrets/index.svelte b/src/routes/applications/[id]/secrets/index.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/secrets/index.svelte rename to src/routes/applications/[id]/secrets/index.svelte diff --git a/src/routes/[lang]/applications/[id]/settings.json.ts b/src/routes/applications/[id]/settings.json.ts similarity index 85% rename from src/routes/[lang]/applications/[id]/settings.json.ts rename to src/routes/applications/[id]/settings.json.ts index 222eff807..aea78ff96 100644 --- a/src/routes/[lang]/applications/[id]/settings.json.ts +++ b/src/routes/applications/[id]/settings.json.ts @@ -2,7 +2,6 @@ import { getUserDetails } from '$lib/common'; import * as db from '$lib/database'; import { ErrorHandler } from '$lib/database'; import type { RequestHandler } from '@sveltejs/kit'; -import { _ } from 'svelte-i18n'; export const post: RequestHandler = async (event) => { const { teamId, status, body } = await getUserDetails(event); @@ -15,7 +14,8 @@ export const post: RequestHandler = async (event) => { const isDouble = await db.checkDoubleBranch(branch, projectId); if (isDouble && autodeploy) { throw { - message: $_('application.app.error_double_app_for_one_branch') + message: + 'Cannot activate automatic deployments until only one application is defined for this repository / branch.' }; } await db.setApplicationSettings({ id, debug, previews, dualCerts, autodeploy }); diff --git a/src/routes/[lang]/applications/[id]/stop.json.ts b/src/routes/applications/[id]/stop.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/stop.json.ts rename to src/routes/applications/[id]/stop.json.ts diff --git a/src/routes/[lang]/applications/[id]/storage/_Storage.svelte b/src/routes/applications/[id]/storage/_Storage.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/storage/_Storage.svelte rename to src/routes/applications/[id]/storage/_Storage.svelte diff --git a/src/routes/[lang]/applications/[id]/storage/index.json.ts b/src/routes/applications/[id]/storage/index.json.ts similarity index 100% rename from src/routes/[lang]/applications/[id]/storage/index.json.ts rename to src/routes/applications/[id]/storage/index.json.ts diff --git a/src/routes/[lang]/applications/[id]/storage/index.svelte b/src/routes/applications/[id]/storage/index.svelte similarity index 100% rename from src/routes/[lang]/applications/[id]/storage/index.svelte rename to src/routes/applications/[id]/storage/index.svelte diff --git a/src/routes/[lang]/applications/_Application.svelte b/src/routes/applications/_Application.svelte similarity index 96% rename from src/routes/[lang]/applications/_Application.svelte rename to src/routes/applications/_Application.svelte index 910c8e0c4..16d19a42f 100644 --- a/src/routes/[lang]/applications/_Application.svelte +++ b/src/routes/applications/_Application.svelte @@ -15,7 +15,6 @@ import Docker from '$lib/components/svg/applications/Docker.svelte'; import Astro from '$lib/components/svg/applications/Astro.svelte'; import Eleventy from '$lib/components/svg/applications/Eleventy.svelte'; - import { t } from '$lib/translations'; const buildPack = application?.buildPack?.toLowerCase(); @@ -60,7 +59,7 @@ {/if} {#if !application.gitSourceId || !application.destinationDockerId}
- {$t('application.configuration_missing')} + Configuration missing
{/if}
diff --git a/src/routes/[lang]/applications/index.svelte b/src/routes/applications/index.svelte similarity index 84% rename from src/routes/[lang]/applications/index.svelte rename to src/routes/applications/index.svelte index d559fd7b9..5f6056ac5 100644 --- a/src/routes/[lang]/applications/index.svelte +++ b/src/routes/applications/index.svelte @@ -4,7 +4,6 @@ import Application from './_Application.svelte'; import { post } from '$lib/api'; import { goto } from '$app/navigation'; - import { t } from '$lib/translations'; async function newApplication() { const { id } = await post('/applications/new', {}); return await goto(`/applications/${id}`, { replaceState: true }); @@ -12,7 +11,7 @@
-
{$t('index.applications')}
+
Applications
{#if $session.isAdmin}
{#if !applications || applications.length === 0}
-
{$t('application.no_applications_found')}
+
No applications found
{:else} {#each applications as application} diff --git a/src/routes/[lang]/applications/index.ts b/src/routes/applications/index.ts similarity index 100% rename from src/routes/[lang]/applications/index.ts rename to src/routes/applications/index.ts diff --git a/src/routes/[lang]/applications/new.ts b/src/routes/applications/new.ts similarity index 100% rename from src/routes/[lang]/applications/new.ts rename to src/routes/applications/new.ts diff --git a/src/routes/[lang]/common/getUniqueName.json.ts b/src/routes/common/getUniqueName.json.ts similarity index 100% rename from src/routes/[lang]/common/getUniqueName.json.ts rename to src/routes/common/getUniqueName.json.ts diff --git a/src/routes/[lang]/databases/[id]/_Databases/_CouchDb.svelte b/src/routes/databases/[id]/_Databases/_CouchDb.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/_Databases/_CouchDb.svelte rename to src/routes/databases/[id]/_Databases/_CouchDb.svelte diff --git a/src/routes/[lang]/databases/[id]/_Databases/_Databases.svelte b/src/routes/databases/[id]/_Databases/_Databases.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/_Databases/_Databases.svelte rename to src/routes/databases/[id]/_Databases/_Databases.svelte diff --git a/src/routes/[lang]/databases/[id]/_Databases/_MongoDB.svelte b/src/routes/databases/[id]/_Databases/_MongoDB.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/_Databases/_MongoDB.svelte rename to src/routes/databases/[id]/_Databases/_MongoDB.svelte diff --git a/src/routes/[lang]/databases/[id]/_Databases/_MySQL.svelte b/src/routes/databases/[id]/_Databases/_MySQL.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/_Databases/_MySQL.svelte rename to src/routes/databases/[id]/_Databases/_MySQL.svelte diff --git a/src/routes/[lang]/databases/[id]/_Databases/_PostgreSQL.svelte b/src/routes/databases/[id]/_Databases/_PostgreSQL.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/_Databases/_PostgreSQL.svelte rename to src/routes/databases/[id]/_Databases/_PostgreSQL.svelte diff --git a/src/routes/[lang]/databases/[id]/_Databases/_Redis.svelte b/src/routes/databases/[id]/_Databases/_Redis.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/_Databases/_Redis.svelte rename to src/routes/databases/[id]/_Databases/_Redis.svelte diff --git a/src/routes/[lang]/databases/[id]/__layout.svelte b/src/routes/databases/[id]/__layout.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/__layout.svelte rename to src/routes/databases/[id]/__layout.svelte diff --git a/src/routes/[lang]/databases/[id]/configuration/destination.json.ts b/src/routes/databases/[id]/configuration/destination.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/configuration/destination.json.ts rename to src/routes/databases/[id]/configuration/destination.json.ts diff --git a/src/routes/[lang]/databases/[id]/configuration/destination.svelte b/src/routes/databases/[id]/configuration/destination.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/configuration/destination.svelte rename to src/routes/databases/[id]/configuration/destination.svelte diff --git a/src/routes/[lang]/databases/[id]/configuration/type.json.ts b/src/routes/databases/[id]/configuration/type.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/configuration/type.json.ts rename to src/routes/databases/[id]/configuration/type.json.ts diff --git a/src/routes/[lang]/databases/[id]/configuration/type.svelte b/src/routes/databases/[id]/configuration/type.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/configuration/type.svelte rename to src/routes/databases/[id]/configuration/type.svelte diff --git a/src/routes/[lang]/databases/[id]/configuration/version.json.ts b/src/routes/databases/[id]/configuration/version.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/configuration/version.json.ts rename to src/routes/databases/[id]/configuration/version.json.ts diff --git a/src/routes/[lang]/databases/[id]/configuration/version.svelte b/src/routes/databases/[id]/configuration/version.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/configuration/version.svelte rename to src/routes/databases/[id]/configuration/version.svelte diff --git a/src/routes/[lang]/databases/[id]/delete.json.ts b/src/routes/databases/[id]/delete.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/delete.json.ts rename to src/routes/databases/[id]/delete.json.ts diff --git a/src/routes/[lang]/databases/[id]/index.json.ts b/src/routes/databases/[id]/index.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/index.json.ts rename to src/routes/databases/[id]/index.json.ts diff --git a/src/routes/[lang]/databases/[id]/index.svelte b/src/routes/databases/[id]/index.svelte similarity index 100% rename from src/routes/[lang]/databases/[id]/index.svelte rename to src/routes/databases/[id]/index.svelte diff --git a/src/routes/[lang]/databases/[id]/settings.json.ts b/src/routes/databases/[id]/settings.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/settings.json.ts rename to src/routes/databases/[id]/settings.json.ts diff --git a/src/routes/[lang]/databases/[id]/start.json.ts b/src/routes/databases/[id]/start.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/start.json.ts rename to src/routes/databases/[id]/start.json.ts diff --git a/src/routes/[lang]/databases/[id]/stop.json.ts b/src/routes/databases/[id]/stop.json.ts similarity index 100% rename from src/routes/[lang]/databases/[id]/stop.json.ts rename to src/routes/databases/[id]/stop.json.ts diff --git a/src/routes/[lang]/databases/index.svelte b/src/routes/databases/index.svelte similarity index 100% rename from src/routes/[lang]/databases/index.svelte rename to src/routes/databases/index.svelte diff --git a/src/routes/[lang]/databases/index.ts b/src/routes/databases/index.ts similarity index 100% rename from src/routes/[lang]/databases/index.ts rename to src/routes/databases/index.ts diff --git a/src/routes/[lang]/databases/new.ts b/src/routes/databases/new.ts similarity index 100% rename from src/routes/[lang]/databases/new.ts rename to src/routes/databases/new.ts diff --git a/src/routes/[lang]/destinations/[id]/_FoundApp.svelte b/src/routes/destinations/[id]/_FoundApp.svelte similarity index 100% rename from src/routes/[lang]/destinations/[id]/_FoundApp.svelte rename to src/routes/destinations/[id]/_FoundApp.svelte diff --git a/src/routes/[lang]/destinations/[id]/_LocalDocker.svelte b/src/routes/destinations/[id]/_LocalDocker.svelte similarity index 100% rename from src/routes/[lang]/destinations/[id]/_LocalDocker.svelte rename to src/routes/destinations/[id]/_LocalDocker.svelte diff --git a/src/routes/[lang]/destinations/[id]/_RemoteDocker.svelte b/src/routes/destinations/[id]/_RemoteDocker.svelte similarity index 100% rename from src/routes/[lang]/destinations/[id]/_RemoteDocker.svelte rename to src/routes/destinations/[id]/_RemoteDocker.svelte diff --git a/src/routes/[lang]/destinations/[id]/__layout.svelte b/src/routes/destinations/[id]/__layout.svelte similarity index 100% rename from src/routes/[lang]/destinations/[id]/__layout.svelte rename to src/routes/destinations/[id]/__layout.svelte diff --git a/src/routes/[lang]/destinations/[id]/index.json.ts b/src/routes/destinations/[id]/index.json.ts similarity index 100% rename from src/routes/[lang]/destinations/[id]/index.json.ts rename to src/routes/destinations/[id]/index.json.ts diff --git a/src/routes/[lang]/destinations/[id]/index.svelte b/src/routes/destinations/[id]/index.svelte similarity index 100% rename from src/routes/[lang]/destinations/[id]/index.svelte rename to src/routes/destinations/[id]/index.svelte diff --git a/src/routes/[lang]/destinations/[id]/restart.json.ts b/src/routes/destinations/[id]/restart.json.ts similarity index 100% rename from src/routes/[lang]/destinations/[id]/restart.json.ts rename to src/routes/destinations/[id]/restart.json.ts diff --git a/src/routes/[lang]/destinations/[id]/scan.json.ts b/src/routes/destinations/[id]/scan.json.ts similarity index 100% rename from src/routes/[lang]/destinations/[id]/scan.json.ts rename to src/routes/destinations/[id]/scan.json.ts diff --git a/src/routes/[lang]/destinations/[id]/settings.json.ts b/src/routes/destinations/[id]/settings.json.ts similarity index 100% rename from src/routes/[lang]/destinations/[id]/settings.json.ts rename to src/routes/destinations/[id]/settings.json.ts diff --git a/src/routes/[lang]/destinations/[id]/start.json.ts b/src/routes/destinations/[id]/start.json.ts similarity index 100% rename from src/routes/[lang]/destinations/[id]/start.json.ts rename to src/routes/destinations/[id]/start.json.ts diff --git a/src/routes/[lang]/destinations/[id]/stop.json.ts b/src/routes/destinations/[id]/stop.json.ts similarity index 100% rename from src/routes/[lang]/destinations/[id]/stop.json.ts rename to src/routes/destinations/[id]/stop.json.ts diff --git a/src/routes/[lang]/destinations/index.json.ts b/src/routes/destinations/index.json.ts similarity index 100% rename from src/routes/[lang]/destinations/index.json.ts rename to src/routes/destinations/index.json.ts diff --git a/src/routes/[lang]/destinations/index.svelte b/src/routes/destinations/index.svelte similarity index 100% rename from src/routes/[lang]/destinations/index.svelte rename to src/routes/destinations/index.svelte diff --git a/src/routes/index.svelte b/src/routes/index.svelte index e67e7d64d..1a5f61b4b 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,6 +1,5 @@
-
{$t('dashboard')}
+
Dashboard
@@ -45,7 +44,7 @@ class="flex cursor-pointer flex-col rounded p-6 text-center text-green-500 no-underline transition duration-150 hover:bg-green-500 hover:text-white" >
- {$t('index.applications')} + Applications
{applicationsCount} @@ -57,7 +56,7 @@ class="flex cursor-pointer flex-col rounded p-6 text-center text-sky-500 no-underline transition duration-150 hover:bg-sky-500 hover:text-white" >
- {$t('index.destinations')} + Destinations
{destinationsCount} @@ -69,7 +68,7 @@ class="flex cursor-pointer flex-col rounded p-6 text-center text-orange-500 no-underline transition duration-150 hover:bg-orange-500 hover:text-white" >
- {$t('index.git_sources')} + Git Sources
{sourcesCount} @@ -80,9 +79,7 @@ sveltekit:prefetch class="flex cursor-pointer flex-col rounded p-6 text-center text-purple-500 no-underline transition duration-150 hover:bg-purple-500 hover:text-white" > -
- {$t('index.databases')} -
+
Databases
{databasesCount}
-
- {$t('index.services')} -
+
Services
{servicesCount}
@@ -101,9 +96,7 @@ sveltekit:prefetch class="flex cursor-pointer flex-col rounded p-6 text-center text-cyan-500 no-underline transition duration-150 hover:bg-cyan-500 hover:text-white" > -
- {$t('index.teams')} -
+
Teams
{teamsCount}
diff --git a/src/routes/[lang]/login/index.json.ts b/src/routes/login/index.json.ts similarity index 100% rename from src/routes/[lang]/login/index.json.ts rename to src/routes/login/index.json.ts diff --git a/src/routes/[lang]/login/index.svelte b/src/routes/login/index.svelte similarity index 81% rename from src/routes/[lang]/login/index.svelte rename to src/routes/login/index.svelte index dccbc90c9..b321bc086 100644 --- a/src/routes/[lang]/login/index.svelte +++ b/src/routes/login/index.svelte @@ -5,8 +5,6 @@ import { post } from '$lib/api'; import { errorNotification } from '$lib/form'; import { onMount } from 'svelte'; - import { t } from '$lib/translations'; - let loading = false; let emailEl; let email, password; @@ -41,7 +39,7 @@
{#if $session.userId} -
{$t('login.already_logged_in')}
+
Already logged in...
{:else}
@@ -50,7 +48,7 @@ @@ -71,19 +69,16 @@ class="hover:opacity-90 text-white" class:bg-transparent={loading} class:text-stone-600={loading} - class:bg-coollabs={!loading} - >{loading ? $t('login.authenticating') : $t('login.login')}{loading ? 'Authenticating...' : 'Login'} Register goto('/reset')}>Reset password
diff --git a/src/routes/[lang]/logout/index.json.ts b/src/routes/logout/index.json.ts similarity index 100% rename from src/routes/[lang]/logout/index.json.ts rename to src/routes/logout/index.json.ts diff --git a/src/routes/[lang]/new/destination/_LocalDocker.svelte b/src/routes/new/destination/_LocalDocker.svelte similarity index 100% rename from src/routes/[lang]/new/destination/_LocalDocker.svelte rename to src/routes/new/destination/_LocalDocker.svelte diff --git a/src/routes/[lang]/new/destination/_RemoteDocker.svelte b/src/routes/new/destination/_RemoteDocker.svelte similarity index 100% rename from src/routes/[lang]/new/destination/_RemoteDocker.svelte rename to src/routes/new/destination/_RemoteDocker.svelte diff --git a/src/routes/[lang]/new/destination/check.json.ts b/src/routes/new/destination/check.json.ts similarity index 100% rename from src/routes/[lang]/new/destination/check.json.ts rename to src/routes/new/destination/check.json.ts diff --git a/src/routes/[lang]/new/destination/docker.json.ts b/src/routes/new/destination/docker.json.ts similarity index 100% rename from src/routes/[lang]/new/destination/docker.json.ts rename to src/routes/new/destination/docker.json.ts diff --git a/src/routes/[lang]/new/destination/index.svelte b/src/routes/new/destination/index.svelte similarity index 100% rename from src/routes/[lang]/new/destination/index.svelte rename to src/routes/new/destination/index.svelte diff --git a/src/routes/[lang]/new/source/_Github.svelte b/src/routes/new/source/_Github.svelte similarity index 100% rename from src/routes/[lang]/new/source/_Github.svelte rename to src/routes/new/source/_Github.svelte diff --git a/src/routes/[lang]/new/source/_Gitlab.svelte b/src/routes/new/source/_Gitlab.svelte similarity index 100% rename from src/routes/[lang]/new/source/_Gitlab.svelte rename to src/routes/new/source/_Gitlab.svelte diff --git a/src/routes/[lang]/new/source/index.json.ts b/src/routes/new/source/index.json.ts similarity index 100% rename from src/routes/[lang]/new/source/index.json.ts rename to src/routes/new/source/index.json.ts diff --git a/src/routes/[lang]/new/source/index.svelte b/src/routes/new/source/index.svelte similarity index 100% rename from src/routes/[lang]/new/source/index.svelte rename to src/routes/new/source/index.svelte diff --git a/src/routes/[lang]/new/team/index.json.ts b/src/routes/new/team/index.json.ts similarity index 100% rename from src/routes/[lang]/new/team/index.json.ts rename to src/routes/new/team/index.json.ts diff --git a/src/routes/[lang]/new/team/index.svelte b/src/routes/new/team/index.svelte similarity index 100% rename from src/routes/[lang]/new/team/index.svelte rename to src/routes/new/team/index.svelte diff --git a/src/routes/[lang]/register/index.svelte b/src/routes/register/index.svelte similarity index 84% rename from src/routes/[lang]/register/index.svelte rename to src/routes/register/index.svelte index ee4e0a61e..35501fce2 100644 --- a/src/routes/[lang]/register/index.svelte +++ b/src/routes/register/index.svelte @@ -7,7 +7,6 @@ import { post } from '$lib/api'; import { errorNotification } from '$lib/form'; import { onMount } from 'svelte'; - import { t } from '$lib/translations'; let loading = false; let emailEl; @@ -21,7 +20,7 @@ }); async function handleSubmit() { if (password !== passwordCheck) { - return errorNotification($t('register.passwords_do_not_match')); + return errorNotification('Passwords do not match.'); } loading = true; try { @@ -58,7 +57,7 @@
{#if $session.userId} -
{$t('login.already_logged_in')}
+
Already logged in...
{:else}
@@ -67,7 +66,7 @@
Register
{#if userCount === 0}
- {$t('register.register_first_user')} + You are registering the first user. It will be the administrator of your Coolify instance.
{/if} {/if} diff --git a/src/routes/[lang]/register/index.ts b/src/routes/register/index.ts similarity index 100% rename from src/routes/[lang]/register/index.ts rename to src/routes/register/index.ts diff --git a/src/routes/[lang]/reset/index.json.ts b/src/routes/reset/index.json.ts similarity index 91% rename from src/routes/[lang]/reset/index.json.ts rename to src/routes/reset/index.json.ts index 21e403509..a75ea4766 100644 --- a/src/routes/[lang]/reset/index.json.ts +++ b/src/routes/reset/index.json.ts @@ -16,7 +16,7 @@ export const post: RequestHandler = async (event) => { return { status: 500, body: { - error: 'reset_password.invalid_secret_key' + error: 'Invalid secret key.' } }; } diff --git a/src/routes/[lang]/reset/index.svelte b/src/routes/reset/index.svelte similarity index 100% rename from src/routes/[lang]/reset/index.svelte rename to src/routes/reset/index.svelte diff --git a/src/routes/[lang]/reset/password.json.ts b/src/routes/reset/password.json.ts similarity index 93% rename from src/routes/[lang]/reset/password.json.ts rename to src/routes/reset/password.json.ts index 9856349b3..28e9d56e3 100644 --- a/src/routes/[lang]/reset/password.json.ts +++ b/src/routes/reset/password.json.ts @@ -8,7 +8,7 @@ export const post: RequestHandler = async (event) => { return { status: 500, body: { - error: 'reset_password.invalid_secret_key' + error: 'Invalid secret key.' } }; } diff --git a/src/routes/[lang]/services/[id]/_Services/_Ghost.svelte b/src/routes/services/[id]/_Services/_Ghost.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/_Services/_Ghost.svelte rename to src/routes/services/[id]/_Services/_Ghost.svelte diff --git a/src/routes/[lang]/services/[id]/_Services/_MinIO.svelte b/src/routes/services/[id]/_Services/_MinIO.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/_Services/_MinIO.svelte rename to src/routes/services/[id]/_Services/_MinIO.svelte diff --git a/src/routes/[lang]/services/[id]/_Services/_PlausibleAnalytics.svelte b/src/routes/services/[id]/_Services/_PlausibleAnalytics.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/_Services/_PlausibleAnalytics.svelte rename to src/routes/services/[id]/_Services/_PlausibleAnalytics.svelte diff --git a/src/routes/[lang]/services/[id]/_Services/_Services.svelte b/src/routes/services/[id]/_Services/_Services.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/_Services/_Services.svelte rename to src/routes/services/[id]/_Services/_Services.svelte diff --git a/src/routes/[lang]/services/[id]/_Services/_VSCodeServer.svelte b/src/routes/services/[id]/_Services/_VSCodeServer.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/_Services/_VSCodeServer.svelte rename to src/routes/services/[id]/_Services/_VSCodeServer.svelte diff --git a/src/routes/[lang]/services/[id]/_Services/_Wordpress.svelte b/src/routes/services/[id]/_Services/_Wordpress.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/_Services/_Wordpress.svelte rename to src/routes/services/[id]/_Services/_Wordpress.svelte diff --git a/src/routes/[lang]/services/[id]/__layout.svelte b/src/routes/services/[id]/__layout.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/__layout.svelte rename to src/routes/services/[id]/__layout.svelte diff --git a/src/routes/[lang]/services/[id]/check.json.ts b/src/routes/services/[id]/check.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/check.json.ts rename to src/routes/services/[id]/check.json.ts diff --git a/src/routes/[lang]/services/[id]/configuration/destination.json.ts b/src/routes/services/[id]/configuration/destination.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/configuration/destination.json.ts rename to src/routes/services/[id]/configuration/destination.json.ts diff --git a/src/routes/[lang]/services/[id]/configuration/destination.svelte b/src/routes/services/[id]/configuration/destination.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/configuration/destination.svelte rename to src/routes/services/[id]/configuration/destination.svelte diff --git a/src/routes/[lang]/services/[id]/configuration/type.json.ts b/src/routes/services/[id]/configuration/type.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/configuration/type.json.ts rename to src/routes/services/[id]/configuration/type.json.ts diff --git a/src/routes/[lang]/services/[id]/configuration/type.svelte b/src/routes/services/[id]/configuration/type.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/configuration/type.svelte rename to src/routes/services/[id]/configuration/type.svelte diff --git a/src/routes/[lang]/services/[id]/configuration/version.json.ts b/src/routes/services/[id]/configuration/version.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/configuration/version.json.ts rename to src/routes/services/[id]/configuration/version.json.ts diff --git a/src/routes/[lang]/services/[id]/configuration/version.svelte b/src/routes/services/[id]/configuration/version.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/configuration/version.svelte rename to src/routes/services/[id]/configuration/version.svelte diff --git a/src/routes/[lang]/services/[id]/delete.json.ts b/src/routes/services/[id]/delete.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/delete.json.ts rename to src/routes/services/[id]/delete.json.ts diff --git a/src/routes/[lang]/services/[id]/ghost/index.json.ts b/src/routes/services/[id]/ghost/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/ghost/index.json.ts rename to src/routes/services/[id]/ghost/index.json.ts diff --git a/src/routes/[lang]/services/[id]/ghost/start.json.ts b/src/routes/services/[id]/ghost/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/ghost/start.json.ts rename to src/routes/services/[id]/ghost/start.json.ts diff --git a/src/routes/[lang]/services/[id]/ghost/stop.json.ts b/src/routes/services/[id]/ghost/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/ghost/stop.json.ts rename to src/routes/services/[id]/ghost/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/index.json.ts b/src/routes/services/[id]/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/index.json.ts rename to src/routes/services/[id]/index.json.ts diff --git a/src/routes/[lang]/services/[id]/index.svelte b/src/routes/services/[id]/index.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/index.svelte rename to src/routes/services/[id]/index.svelte diff --git a/src/routes/[lang]/services/[id]/languagetool/index.json.ts b/src/routes/services/[id]/languagetool/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/languagetool/index.json.ts rename to src/routes/services/[id]/languagetool/index.json.ts diff --git a/src/routes/[lang]/services/[id]/languagetool/start.json.ts b/src/routes/services/[id]/languagetool/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/languagetool/start.json.ts rename to src/routes/services/[id]/languagetool/start.json.ts diff --git a/src/routes/[lang]/services/[id]/languagetool/stop.json.ts b/src/routes/services/[id]/languagetool/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/languagetool/stop.json.ts rename to src/routes/services/[id]/languagetool/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/minio/index.json.ts b/src/routes/services/[id]/minio/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/minio/index.json.ts rename to src/routes/services/[id]/minio/index.json.ts diff --git a/src/routes/[lang]/services/[id]/minio/start.json.ts b/src/routes/services/[id]/minio/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/minio/start.json.ts rename to src/routes/services/[id]/minio/start.json.ts diff --git a/src/routes/[lang]/services/[id]/minio/stop.json.ts b/src/routes/services/[id]/minio/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/minio/stop.json.ts rename to src/routes/services/[id]/minio/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/n8n/index.json.ts b/src/routes/services/[id]/n8n/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/n8n/index.json.ts rename to src/routes/services/[id]/n8n/index.json.ts diff --git a/src/routes/[lang]/services/[id]/n8n/start.json.ts b/src/routes/services/[id]/n8n/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/n8n/start.json.ts rename to src/routes/services/[id]/n8n/start.json.ts diff --git a/src/routes/[lang]/services/[id]/n8n/stop.json.ts b/src/routes/services/[id]/n8n/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/n8n/stop.json.ts rename to src/routes/services/[id]/n8n/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/nocodb/index.json.ts b/src/routes/services/[id]/nocodb/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/nocodb/index.json.ts rename to src/routes/services/[id]/nocodb/index.json.ts diff --git a/src/routes/[lang]/services/[id]/nocodb/start.json.ts b/src/routes/services/[id]/nocodb/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/nocodb/start.json.ts rename to src/routes/services/[id]/nocodb/start.json.ts diff --git a/src/routes/[lang]/services/[id]/nocodb/stop.json.ts b/src/routes/services/[id]/nocodb/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/nocodb/stop.json.ts rename to src/routes/services/[id]/nocodb/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/plausibleanalytics/activate.json.ts b/src/routes/services/[id]/plausibleanalytics/activate.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/plausibleanalytics/activate.json.ts rename to src/routes/services/[id]/plausibleanalytics/activate.json.ts diff --git a/src/routes/[lang]/services/[id]/plausibleanalytics/index.json.ts b/src/routes/services/[id]/plausibleanalytics/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/plausibleanalytics/index.json.ts rename to src/routes/services/[id]/plausibleanalytics/index.json.ts diff --git a/src/routes/[lang]/services/[id]/plausibleanalytics/start.json.ts b/src/routes/services/[id]/plausibleanalytics/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/plausibleanalytics/start.json.ts rename to src/routes/services/[id]/plausibleanalytics/start.json.ts diff --git a/src/routes/[lang]/services/[id]/plausibleanalytics/stop.json.ts b/src/routes/services/[id]/plausibleanalytics/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/plausibleanalytics/stop.json.ts rename to src/routes/services/[id]/plausibleanalytics/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/secrets/_Secret.svelte b/src/routes/services/[id]/secrets/_Secret.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/secrets/_Secret.svelte rename to src/routes/services/[id]/secrets/_Secret.svelte diff --git a/src/routes/[lang]/services/[id]/secrets/index.json.ts b/src/routes/services/[id]/secrets/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/secrets/index.json.ts rename to src/routes/services/[id]/secrets/index.json.ts diff --git a/src/routes/[lang]/services/[id]/secrets/index.svelte b/src/routes/services/[id]/secrets/index.svelte similarity index 100% rename from src/routes/[lang]/services/[id]/secrets/index.svelte rename to src/routes/services/[id]/secrets/index.svelte diff --git a/src/routes/[lang]/services/[id]/settings.json.ts b/src/routes/services/[id]/settings.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/settings.json.ts rename to src/routes/services/[id]/settings.json.ts diff --git a/src/routes/[lang]/services/[id]/uptimekuma/index.json.ts b/src/routes/services/[id]/uptimekuma/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/uptimekuma/index.json.ts rename to src/routes/services/[id]/uptimekuma/index.json.ts diff --git a/src/routes/[lang]/services/[id]/uptimekuma/start.json.ts b/src/routes/services/[id]/uptimekuma/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/uptimekuma/start.json.ts rename to src/routes/services/[id]/uptimekuma/start.json.ts diff --git a/src/routes/[lang]/services/[id]/uptimekuma/stop.json.ts b/src/routes/services/[id]/uptimekuma/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/uptimekuma/stop.json.ts rename to src/routes/services/[id]/uptimekuma/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/vaultwarden/index.json.ts b/src/routes/services/[id]/vaultwarden/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/vaultwarden/index.json.ts rename to src/routes/services/[id]/vaultwarden/index.json.ts diff --git a/src/routes/[lang]/services/[id]/vaultwarden/start.json.ts b/src/routes/services/[id]/vaultwarden/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/vaultwarden/start.json.ts rename to src/routes/services/[id]/vaultwarden/start.json.ts diff --git a/src/routes/[lang]/services/[id]/vaultwarden/stop.json.ts b/src/routes/services/[id]/vaultwarden/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/vaultwarden/stop.json.ts rename to src/routes/services/[id]/vaultwarden/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/vscodeserver/index.json.ts b/src/routes/services/[id]/vscodeserver/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/vscodeserver/index.json.ts rename to src/routes/services/[id]/vscodeserver/index.json.ts diff --git a/src/routes/[lang]/services/[id]/vscodeserver/start.json.ts b/src/routes/services/[id]/vscodeserver/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/vscodeserver/start.json.ts rename to src/routes/services/[id]/vscodeserver/start.json.ts diff --git a/src/routes/[lang]/services/[id]/vscodeserver/stop.json.ts b/src/routes/services/[id]/vscodeserver/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/vscodeserver/stop.json.ts rename to src/routes/services/[id]/vscodeserver/stop.json.ts diff --git a/src/routes/[lang]/services/[id]/wordpress/index.json.ts b/src/routes/services/[id]/wordpress/index.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/wordpress/index.json.ts rename to src/routes/services/[id]/wordpress/index.json.ts diff --git a/src/routes/[lang]/services/[id]/wordpress/start.json.ts b/src/routes/services/[id]/wordpress/start.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/wordpress/start.json.ts rename to src/routes/services/[id]/wordpress/start.json.ts diff --git a/src/routes/[lang]/services/[id]/wordpress/stop.json.ts b/src/routes/services/[id]/wordpress/stop.json.ts similarity index 100% rename from src/routes/[lang]/services/[id]/wordpress/stop.json.ts rename to src/routes/services/[id]/wordpress/stop.json.ts diff --git a/src/routes/[lang]/services/index.svelte b/src/routes/services/index.svelte similarity index 100% rename from src/routes/[lang]/services/index.svelte rename to src/routes/services/index.svelte diff --git a/src/routes/[lang]/services/index.ts b/src/routes/services/index.ts similarity index 100% rename from src/routes/[lang]/services/index.ts rename to src/routes/services/index.ts diff --git a/src/routes/[lang]/services/new.ts b/src/routes/services/new.ts similarity index 100% rename from src/routes/[lang]/services/new.ts rename to src/routes/services/new.ts diff --git a/src/routes/[lang]/settings/check.json.ts b/src/routes/settings/check.json.ts similarity index 100% rename from src/routes/[lang]/settings/check.json.ts rename to src/routes/settings/check.json.ts diff --git a/src/routes/[lang]/settings/index.json.ts b/src/routes/settings/index.json.ts similarity index 100% rename from src/routes/[lang]/settings/index.json.ts rename to src/routes/settings/index.json.ts diff --git a/src/routes/[lang]/settings/index.svelte b/src/routes/settings/index.svelte similarity index 100% rename from src/routes/[lang]/settings/index.svelte rename to src/routes/settings/index.svelte diff --git a/src/routes/[lang]/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelte similarity index 81% rename from src/routes/[lang]/sources/[id]/_Github.svelte rename to src/routes/sources/[id]/_Github.svelte index e3243fc76..102971353 100644 --- a/src/routes/[lang]/sources/[id]/_Github.svelte +++ b/src/routes/sources/[id]/_Github.svelte @@ -3,7 +3,6 @@ import { page, session } from '$app/stores'; import { post } from '$lib/api'; import { errorNotification } from '$lib/form'; - import { t } from '$lib/translations'; const { id } = $page.params; let loading = false; @@ -44,7 +43,7 @@ const top = screen.height / 2 - 618 / 2; const newWindow = open( `/sources/${id}/newGithubApp`, - $t('sources.source.new_github_app'), + 'New Github App', 'resizable=1, scrollbars=1, fullscreen=0, height=618, width=1020,top=' + top + ', left=' + @@ -61,32 +60,30 @@ {#if !source.githubAppId} - + {:else if source.githubApp?.installationId}
-
{$t('general')}
+
General
{#if $session.isAdmin} {loading ? 'Saving...' : 'Save'} Change GitHub App Settings {/if}
- +
{:else} - + {/if} diff --git a/src/routes/[lang]/sources/[id]/_Gitlab.svelte b/src/routes/sources/[id]/_Gitlab.svelte similarity index 100% rename from src/routes/[lang]/sources/[id]/_Gitlab.svelte rename to src/routes/sources/[id]/_Gitlab.svelte diff --git a/src/routes/[lang]/sources/[id]/__layout.svelte b/src/routes/sources/[id]/__layout.svelte similarity index 82% rename from src/routes/[lang]/sources/[id]/__layout.svelte rename to src/routes/sources/[id]/__layout.svelte index accaa7c06..0f5139558 100644 --- a/src/routes/[lang]/sources/[id]/__layout.svelte +++ b/src/routes/sources/[id]/__layout.svelte @@ -34,11 +34,10 @@ import { page, session } from '$app/stores'; import { errorNotification } from '$lib/form'; import DeleteIcon from '$lib/components/DeleteIcon.svelte'; - import { t } from '$lib/translations'; const { id } = $page.params; async function deleteSource(name) { - const sure = confirm(`${$t('sources.source.sure_to_delete')} '${name}'?`); + const sure = confirm(`Are you sure you would like to delete '${name}'?`); if (sure) { const response = await fetch(`/sources/${id}.json`, { method: 'delete' @@ -56,14 +55,14 @@ diff --git a/src/routes/[lang]/sources/[id]/check.json.ts b/src/routes/sources/[id]/check.json.ts similarity index 100% rename from src/routes/[lang]/sources/[id]/check.json.ts rename to src/routes/sources/[id]/check.json.ts diff --git a/src/routes/[lang]/sources/[id]/gitlab.json.ts b/src/routes/sources/[id]/gitlab.json.ts similarity index 100% rename from src/routes/[lang]/sources/[id]/gitlab.json.ts rename to src/routes/sources/[id]/gitlab.json.ts diff --git a/src/routes/[lang]/sources/[id]/index.json.ts b/src/routes/sources/[id]/index.json.ts similarity index 100% rename from src/routes/[lang]/sources/[id]/index.json.ts rename to src/routes/sources/[id]/index.json.ts diff --git a/src/routes/[lang]/sources/[id]/index.svelte b/src/routes/sources/[id]/index.svelte similarity index 100% rename from src/routes/[lang]/sources/[id]/index.svelte rename to src/routes/sources/[id]/index.svelte diff --git a/src/routes/[lang]/sources/[id]/newGithubApp.svelte b/src/routes/sources/[id]/newGithubApp.svelte similarity index 100% rename from src/routes/[lang]/sources/[id]/newGithubApp.svelte rename to src/routes/sources/[id]/newGithubApp.svelte diff --git a/src/routes/[lang]/sources/index.json.ts b/src/routes/sources/index.json.ts similarity index 100% rename from src/routes/[lang]/sources/index.json.ts rename to src/routes/sources/index.json.ts diff --git a/src/routes/[lang]/sources/index.svelte b/src/routes/sources/index.svelte similarity index 88% rename from src/routes/[lang]/sources/index.svelte rename to src/routes/sources/index.svelte index 4823c1e64..bd9039514 100644 --- a/src/routes/[lang]/sources/index.svelte +++ b/src/routes/sources/index.svelte @@ -22,11 +22,10 @@
-
{$t('index.git_sources')}
+
Git Sources
{#if $session.isAdmin} {#if !sources || sources.length === 0}
-
{$t('sources.no_git_sources_found')}
+
No git sources found
{:else}
@@ -63,7 +62,7 @@
{source.name}
{#if (source.type === 'gitlab' && !source.gitlabAppId) || (source.type === 'github' && !source.githubAppId && !source.githubApp?.installationId)}
- {$t('application.configuration_missing')} + Configuration missing
{:else}
{source.htmlUrl}
diff --git a/src/routes/[lang]/teams/[id]/__layout.svelte b/src/routes/teams/[id]/__layout.svelte similarity index 100% rename from src/routes/[lang]/teams/[id]/__layout.svelte rename to src/routes/teams/[id]/__layout.svelte diff --git a/src/routes/[lang]/teams/[id]/index.json.ts b/src/routes/teams/[id]/index.json.ts similarity index 100% rename from src/routes/[lang]/teams/[id]/index.json.ts rename to src/routes/teams/[id]/index.json.ts diff --git a/src/routes/[lang]/teams/[id]/index.svelte b/src/routes/teams/[id]/index.svelte similarity index 100% rename from src/routes/[lang]/teams/[id]/index.svelte rename to src/routes/teams/[id]/index.svelte diff --git a/src/routes/[lang]/teams/[id]/invitation/accept.json.ts b/src/routes/teams/[id]/invitation/accept.json.ts similarity index 100% rename from src/routes/[lang]/teams/[id]/invitation/accept.json.ts rename to src/routes/teams/[id]/invitation/accept.json.ts diff --git a/src/routes/[lang]/teams/[id]/invitation/invite.json.ts b/src/routes/teams/[id]/invitation/invite.json.ts similarity index 100% rename from src/routes/[lang]/teams/[id]/invitation/invite.json.ts rename to src/routes/teams/[id]/invitation/invite.json.ts diff --git a/src/routes/[lang]/teams/[id]/invitation/revoke.json.ts b/src/routes/teams/[id]/invitation/revoke.json.ts similarity index 100% rename from src/routes/[lang]/teams/[id]/invitation/revoke.json.ts rename to src/routes/teams/[id]/invitation/revoke.json.ts diff --git a/src/routes/[lang]/teams/[id]/permission/change.json.ts b/src/routes/teams/[id]/permission/change.json.ts similarity index 100% rename from src/routes/[lang]/teams/[id]/permission/change.json.ts rename to src/routes/teams/[id]/permission/change.json.ts diff --git a/src/routes/[lang]/teams/[id]/remove/user.json.ts b/src/routes/teams/[id]/remove/user.json.ts similarity index 100% rename from src/routes/[lang]/teams/[id]/remove/user.json.ts rename to src/routes/teams/[id]/remove/user.json.ts diff --git a/src/routes/[lang]/teams/index.json.ts b/src/routes/teams/index.json.ts similarity index 100% rename from src/routes/[lang]/teams/index.json.ts rename to src/routes/teams/index.json.ts diff --git a/src/routes/[lang]/teams/index.svelte b/src/routes/teams/index.svelte similarity index 100% rename from src/routes/[lang]/teams/index.svelte rename to src/routes/teams/index.svelte diff --git a/static/locales/en.json b/static/locales/en.json index 897d6158c..aa64ad4e5 100644 --- a/static/locales/en.json +++ b/static/locales/en.json @@ -8,59 +8,6 @@ }, "error": { "you_can_find_your_way_back": "You can find your way back", - "here": "here", - "oops_your_lost": "Ooops you are lost! But don't be afraid!", - "generic_message": "Ooops, something is not okay, are you okay?" - }, - "index": { - "applications": "Applications", - "destinations": "Destinations", - "git_sources": "Git Sources", - "databases": "Databases", - "services": "Services", - "teams": "Teams" - }, - "dashboard": "Dashboard", - "application": { - "configuration_missing": "Configuration missing", - "no_applications_found": "No applications found", - "app": { - "error_double_app_for_one_branch": "Cannot activate automatic deployments until only one application is defined for this repository / branch." - } - }, - "sources": { - "no_git_sources_found": "No git sources found", - "source": { - "delete_git_source": "Delete Git Source", - "permission_denied_delete_git_source": "You do not have permission to delete a Git Source", - "sure_to_delete": "Are you sure you would like to delete", - "create_new_github_app": "Create new GitHub App", - "install_repositories": "Install Repositories", - "change_app_settings": "Change {name} App Settings", - "new_github_app": "New Github App" - } - }, - "general": "General", - "saving": "Saving...", - "save": "Save", - "forms": { - "name": "Name", - "email": "Email", - "password": "Password", - "password_again": "Password again" - }, - "login": { - "already_logged_in": "Already logged in...", - "authenticating": "Authenticating...", - "login": "Login" - }, - "register": { - "register": "Register", - "passwords_do_not_match": "Passwords do not match.", - "register_first_user": "You are registering the first user. It will be the administrator of your Coolify instance." - }, - "reset_password": { - "reset_password": "Reset password", - "invalid_secret_key": "Invalid secret key." + "here": "here" } } diff --git a/static/locales/fr.json b/static/locales/fr.json deleted file mode 100644 index 2cce1d2fb..000000000 --- a/static/locales/fr.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "layout": { - "update_done": "Mise à jour réalisée.", - "wait_new_version_startup": "En attente du démarrage de la nouvelle version...", - "new_version": "Nouvel version accessible. Rafraichissement de la page...", - "switch_to_a_different_team": "Changer d'équipe...", - "update_available": "Mise à jour disponible" - }, - "error": { - "you_can_find_your_way_back": "Vous ne trouvez pas votre chemin ?", - "here": "Ici", - "oops_your_lost": "Oups vous êtes perdu ! \nMais n'ayez pas peur !", - "generic_message": "Oups, quelque chose ne va pas, ça va ?" - }, - "dashboard": "Tableau de bord", - "index": { - "applications": "Applications", - "databases": "Bases de données", - "destinations": "Destinations", - "git_sources": "Sources Git", - "services": "Services", - "teams": "Équipes" - }, - "application": { - "no_applications_found": "Aucune application trouvée", - "app": { - "error_double_app_for_one_branch": "Impossible d'activer les déploiements automatiques tant qu'une seule application n'est pas définie pour ce référentiel/branche." - }, - "configuration_missing": "Configuration manquante" - }, - "forms": { - "email": "E-mail", - "name": "Nom", - "password": "Mot de passe", - "password_again": "Retaper le mot de passe" - }, - "general": "Général", - "login": { - "already_logged_in": "Déjà connecté...", - "authenticating": "Authentification...", - "login": "Connexion" - }, - "register": { - "passwords_do_not_match": "Les mots de passe ne correspondent pas.", - "register": "S'inscrire", - "register_first_user": "Vous enregistrez le premier utilisateur. \nCe sera l'administrateur de votre instance Coolify." - }, - "reset_password": { - "invalid_secret_key": "Clé secrète invalide.", - "reset_password": "Réinitialiser le mot de passe" - }, - "save": "Enregistrer", - "saving": "Enregistrement...", - "sources": { - "no_git_sources_found": "Aucune source git trouvée", - "source": { - "change_app_settings": "Modifier les paramètres de l'application {name}", - "create_new_github_app": "Créer une nouvelle application GitHub", - "delete_git_source": "Supprimer la source Git", - "install_repositories": "Installer les référentiels", - "new_github_app": "Nouvelle application Github", - "permission_denied_delete_git_source": "Vous n'êtes pas autorisé à supprimer une source Git", - "sure_to_delete": "Êtes-vous sûr de vouloir supprimer" - } - } -}