From d63e3db2163ade14e96d38f198c0c806e228a2a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C5=A0mahel?=
<48548230+ceskyDJ@users.noreply.github.com>
Date: Sat, 7 Jun 2025 17:40:07 +0200
Subject: [PATCH] i18n: Refactor and fix app names (Checkmate and Capture)
---
client/src/Components/Sidebar/index.jsx | 2 +-
client/src/Pages/Auth/CheckEmail.jsx | 2 +-
client/src/Pages/Auth/ForgotPassword.jsx | 2 +-
client/src/Pages/Auth/Login/Login.jsx | 2 +-
client/src/Pages/Auth/NewPasswordConfirmed.jsx | 2 +-
client/src/Pages/Auth/Register/Register.jsx | 2 +-
client/src/Pages/Auth/SetNewPassword.jsx | 2 +-
client/src/Pages/Infrastructure/Create/index.jsx | 2 +-
client/src/Pages/ServerUnreachable.jsx | 2 +-
client/src/Pages/Settings/SettingsAbout.jsx | 2 +-
client/src/locales/cs.json | 5 ++++-
client/src/locales/de.json | 5 ++++-
client/src/locales/en.json | 5 ++++-
client/src/locales/es.json | 5 ++++-
client/src/locales/fi.json | 5 ++++-
client/src/locales/fr.json | 5 ++++-
client/src/locales/pt-BR.json | 5 ++++-
client/src/locales/ru.json | 5 ++++-
client/src/locales/tr.json | 5 ++++-
client/src/locales/zh-TW.json | 5 ++++-
20 files changed, 50 insertions(+), 20 deletions(-)
diff --git a/client/src/Components/Sidebar/index.jsx b/client/src/Components/Sidebar/index.jsx
index 6073f428d..f1c512771 100644
--- a/client/src/Components/Sidebar/index.jsx
+++ b/client/src/Components/Sidebar/index.jsx
@@ -338,7 +338,7 @@ function Sidebar() {
mt={theme.spacing(2)}
sx={{ opacity: 0.8, fontWeight: 500 }}
>
- Checkmate
+ {t("common.appName")}
diff --git a/client/src/Pages/Auth/CheckEmail.jsx b/client/src/Pages/Auth/CheckEmail.jsx
index 695be62b0..5ee6edb74 100644
--- a/client/src/Pages/Auth/CheckEmail.jsx
+++ b/client/src/Pages/Auth/CheckEmail.jsx
@@ -118,7 +118,7 @@ const CheckEmail = () => {
gap={theme.spacing(4)}
>
- Checkmate
+ {t("common.appName")}
{
gap={theme.spacing(4)}
>
- Checkmate
+ {t("common.appName")}
{
gap={theme.spacing(4)}
>
- Checkmate
+ {t("common.appName")}
{
gap={theme.spacing(4)}
>
- Checkmate
+ {t("common.appName")}
{
gap={theme.spacing(4)}
>
- {t("commonAppName")}
+ {t("common.appName")}
{
gap={theme.spacing(4)}
>
- {t("commonAppName")}
+ {t("common.appName")}
{
diff --git a/client/src/Pages/ServerUnreachable.jsx b/client/src/Pages/ServerUnreachable.jsx
index e7d81926e..7e067425a 100644
--- a/client/src/Pages/ServerUnreachable.jsx
+++ b/client/src/Pages/ServerUnreachable.jsx
@@ -71,7 +71,7 @@ const ServerUnreachable = () => {
gap={theme.spacing(4)}
>
- Checkmate
+ {t("common.appName")}
{
- Checkmate {2.1}
+ {t("common.appName")} {2.1}
{t("settingsDevelopedBy")}
diff --git a/client/src/locales/cs.json b/client/src/locales/cs.json
index 765627912..97762043a 100644
--- a/client/src/locales/cs.json
+++ b/client/src/locales/cs.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "",
"email": "",
"forgotPassword": "",
@@ -17,7 +21,6 @@
"createPassword": "",
"createAPassword": "",
"authRegisterAlreadyHaveAccount": "",
- "commonAppName": "",
"authLoginEnterEmail": "",
"authRegisterTitle": "",
"authRegisterStepOneTitle": "",
diff --git a/client/src/locales/de.json b/client/src/locales/de.json
index 948748de3..0bf0119bc 100644
--- a/client/src/locales/de.json
+++ b/client/src/locales/de.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Noch kein Konto",
"email": "E-Mail",
"forgotPassword": "Passwort vergessen",
@@ -17,7 +21,6 @@
"createPassword": "Erstelle dein Passwort",
"createAPassword": "Passwort",
"authRegisterAlreadyHaveAccount": "Hast du schon eine Account?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "",
"authRegisterTitle": "",
"authRegisterStepOneTitle": "",
diff --git a/client/src/locales/en.json b/client/src/locales/en.json
index 12442246c..09eeecfe4 100644
--- a/client/src/locales/en.json
+++ b/client/src/locales/en.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Don't have account",
"email": "E-mail",
"forgotPassword": "Forgot Password",
@@ -17,7 +21,6 @@
"createPassword": "Create your password",
"createAPassword": "Password",
"authRegisterAlreadyHaveAccount": "Already have an account?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "Enter your email",
"authRegisterTitle": "Create an account",
"authRegisterStepOneTitle": "Create your account",
diff --git a/client/src/locales/es.json b/client/src/locales/es.json
index a278312af..b998bd855 100644
--- a/client/src/locales/es.json
+++ b/client/src/locales/es.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "No tengo una cuenta",
"email": "Correo electronico",
"forgotPassword": "He olvidado mi contraseña",
@@ -17,7 +21,6 @@
"createPassword": "Crear contraseña",
"createAPassword": "Contraseña",
"authRegisterAlreadyHaveAccount": "Ya tienes un cuenta?",
- "commonAppName": "",
"authLoginEnterEmail": "Introduce tu correo electronico",
"authRegisterTitle": "Crear una cuenta",
"authRegisterStepOneTitle": "Crea tu cuenta",
diff --git a/client/src/locales/fi.json b/client/src/locales/fi.json
index 7f6ffa2ba..191eb530a 100644
--- a/client/src/locales/fi.json
+++ b/client/src/locales/fi.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Ei tiliä",
"email": "Sähköposti",
"forgotPassword": "Unohtunut salasana",
@@ -17,7 +21,6 @@
"createPassword": "Luo salasanasi",
"createAPassword": "Salasana",
"authRegisterAlreadyHaveAccount": "Onko sinulla jo tili?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "Syötä salasanasi",
"authRegisterTitle": "Luo tili",
"authRegisterStepOneTitle": "Luo tilisi",
diff --git a/client/src/locales/fr.json b/client/src/locales/fr.json
index d31e73f48..4dc39dc69 100644
--- a/client/src/locales/fr.json
+++ b/client/src/locales/fr.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Vous n'avez pas de compte",
"email": "E-mail",
"forgotPassword": "Mot de passe oublié",
@@ -17,7 +21,6 @@
"createPassword": "Créez votre mot de passe",
"createAPassword": "Créer un mot de passe",
"authRegisterAlreadyHaveAccount": "Vous avez un compte ?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "Entrez votre e-mail",
"authRegisterTitle": "Créer un compte",
"authRegisterStepOneTitle": "Créez votre compte",
diff --git a/client/src/locales/pt-BR.json b/client/src/locales/pt-BR.json
index fdc3e50a6..0e32f7b36 100644
--- a/client/src/locales/pt-BR.json
+++ b/client/src/locales/pt-BR.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Não tenho conta",
"email": "E-mail",
"forgotPassword": "Esqueci a senha",
@@ -17,7 +21,6 @@
"createPassword": "Criar sua senha",
"createAPassword": "Senha",
"authRegisterAlreadyHaveAccount": "Já possui uma conta?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "Insira seu e-mail",
"authRegisterTitle": "Criar uma conta",
"authRegisterStepOneTitle": "Crie sua conta",
diff --git a/client/src/locales/ru.json b/client/src/locales/ru.json
index fce8fd6ab..64342f618 100644
--- a/client/src/locales/ru.json
+++ b/client/src/locales/ru.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Нет аккаунта",
"email": "Почта",
"forgotPassword": "Забыли пароль",
@@ -17,7 +21,6 @@
"createPassword": "Создайте свой пароль",
"createAPassword": "Создайте пароль",
"authRegisterAlreadyHaveAccount": "Уже есть аккаунт?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "Введите свой email",
"authRegisterTitle": "Создать аккаунт",
"authRegisterStepOneTitle": "Создайте свой аккаут",
diff --git a/client/src/locales/tr.json b/client/src/locales/tr.json
index fb1be3c57..d314d5bfb 100644
--- a/client/src/locales/tr.json
+++ b/client/src/locales/tr.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "Hesabınız yok mu",
"email": "E-posta",
"forgotPassword": "Parolamı unuttum",
@@ -17,7 +21,6 @@
"createPassword": "Parolanızı oluşturun",
"createAPassword": "Bir parola oluşturun",
"authRegisterAlreadyHaveAccount": "Zaten hesabınız var mı?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "E-posta adresinizi girin",
"authRegisterTitle": "Hesap oluştur",
"authRegisterStepOneTitle": "Hesabınızı oluşturun",
diff --git a/client/src/locales/zh-TW.json b/client/src/locales/zh-TW.json
index bb44d91da..d4451017d 100644
--- a/client/src/locales/zh-TW.json
+++ b/client/src/locales/zh-TW.json
@@ -1,4 +1,8 @@
{
+ "common": {
+ "appName": "Checkmate",
+ "monitoringAgentName": "Capture"
+ },
"dontHaveAccount": "沒有帳號",
"email": "E-mail",
"forgotPassword": "忘記密碼",
@@ -17,7 +21,6 @@
"createPassword": "",
"createAPassword": "",
"authRegisterAlreadyHaveAccount": "已經有帳號嗎?",
- "commonAppName": "Checkmate",
"authLoginEnterEmail": "輸入您的 E-mail",
"authRegisterTitle": "建立帳號",
"authRegisterStepOneTitle": "建立您的帳號",