Skip to content

Commit 182ed58

Browse files
languages for PR #4542
1 parent 6192146 commit 182ed58

File tree

23 files changed

+164
-12
lines changed

23 files changed

+164
-12
lines changed

frontend/src/components/DefaultChat/index.jsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import useLogo from "@/hooks/useLogo";
77
import Workspace from "@/models/workspace";
88
import { NavLink } from "react-router-dom";
99
import { LAST_VISITED_WORKSPACE } from "@/utils/constants";
10+
import { useTranslation } from "react-i18next";
1011

1112
export default function DefaultChatContainer() {
13+
const { t } = useTranslation();
1214
const { user } = useUser();
1315
const { logo } = useLogo();
1416
const [lastVisitedWorkspace, setLastVisitedWorkspace] = useState(null);
@@ -84,18 +86,10 @@ export default function DefaultChatContainer() {
8486
className=" w-[200px] h-fit mb-5 rounded-lg"
8587
/>
8688
<h1 className="text-white text-2xl font-semibold">
87-
Welcome, {user.username}!
89+
{t("home.welcome")}, {user.username}!
8890
</h1>
89-
<p className="text-theme-home-text-secondary text-base text-center">
90-
{hasWorkspaces ? (
91-
<>Choose a workspace to start chatting!</>
92-
) : (
93-
<>
94-
You currently aren't assigned to any workspaces. <br />
95-
Please contact your administrator to request access to a
96-
workspace.
97-
</>
98-
)}
91+
<p className="text-theme-home-text-secondary text-base text-center whitespace-pre-line">
92+
{hasWorkspaces ? t("home.chooseWorkspace") : t("home.notAssigned")}
9993
</p>
10094
{hasWorkspaces && (
10195
<NavLink
@@ -104,7 +98,10 @@ export default function DefaultChatContainer() {
10498
)}
10599
className="text-sm font-medium mt-[10px] w-fit px-4 h-[34px] flex items-center justify-center rounded-lg cursor-pointer bg-theme-home-button-secondary hover:bg-theme-home-button-secondary-hover text-theme-home-button-secondary-text hover:text-theme-home-button-secondary-hover-text transition-all duration-200"
106100
>
107-
Go to "{lastVisitedWorkspace?.name || workspaces[0].name}" &rarr;
101+
{t("home.goToWorkspace", {
102+
workspace: lastVisitedWorkspace?.name || workspaces[0].name,
103+
})}{" "}
104+
&rarr;
108105
</NavLink>
109106
)}
110107
</div>

frontend/src/locales/ar/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,13 @@ const TRANSLATIONS = {
10101010
"password-label": "كلمة مرور المثيل",
10111011
},
10121012
},
1013+
home: {
1014+
welcome: "مرحبا",
1015+
chooseWorkspace: "اختر مساحة العمل لبدء المحادثة!",
1016+
notAssigned:
1017+
"لا تم التخصيص لأي مساحة عمل.\nيرجى الاتصال بمدير المثيل لطلب الوصول إلى مساحة عمل.",
1018+
goToWorkspace: 'الذهاب إلى "{{workspace}}"',
1019+
},
10131020
};
10141021

10151022
export default TRANSLATIONS;

frontend/src/locales/da/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,13 @@ const TRANSLATIONS = {
10491049
"password-label": "Instansadgangskode",
10501050
},
10511051
},
1052+
home: {
1053+
welcome: "Velkommen",
1054+
chooseWorkspace: "Vælg et arbejdsområde for at starte at chatte!",
1055+
notAssigned:
1056+
"Du er ikke tildelt til nogen arbejdsområder.\nKontakt din administrator for at anmode om adgang til et arbejdsområde.",
1057+
goToWorkspace: 'Gå til "{{workspace}}"',
1058+
},
10521059
};
10531060

10541061
export default TRANSLATIONS;

frontend/src/locales/de/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,13 @@ const TRANSLATIONS = {
10751075
"password-label": "Instanzpasswort",
10761076
},
10771077
},
1078+
home: {
1079+
welcome: "Willkommen",
1080+
chooseWorkspace: "Wählen Sie ein Arbeitsbereich, um zu beginnen!",
1081+
notAssigned:
1082+
"Sie sind nicht zugewiesen zu einem Arbeitsbereich.\nBitte kontaktieren Sie Ihren Administrator, um Zugriff auf einen Arbeitsbereich zu erhalten.",
1083+
goToWorkspace: 'Zurück zum Arbeitsbereich "{{workspace}}"',
1084+
},
10781085
};
10791086

10801087
export default TRANSLATIONS;

frontend/src/locales/en/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ const TRANSLATIONS = {
7272
no: "No",
7373
search: "Search",
7474
},
75+
home: {
76+
welcome: "Welcome",
77+
chooseWorkspace: "Choose a workspace to start chatting!",
78+
notAssigned:
79+
"You currently aren't assigned to any workspaces.\nPlease contact your administrator to request access to a workspace.",
80+
goToWorkspace: 'Go to "{{workspace}}"',
81+
},
7582

7683
// Setting Sidebar menu items.
7784
settings: {

frontend/src/locales/es/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,13 @@ const TRANSLATIONS = {
11171117
"password-label": "Contraseña de la instancia",
11181118
},
11191119
},
1120+
home: {
1121+
welcome: "Bienvenido",
1122+
chooseWorkspace: "Elige un espacio de trabajo para comenzar a chatear!",
1123+
notAssigned:
1124+
"Actualmente no estás asignado a ningún espacio de trabajo.\nPor favor, contacta a tu administrador para solicitar acceso a un espacio de trabajo.",
1125+
goToWorkspace: 'Ir a "{{workspace}}"',
1126+
},
11201127
};
11211128

11221129
export default TRANSLATIONS;

frontend/src/locales/et/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,13 @@ const TRANSLATIONS = {
10421042
"password-label": "Instantsi parool",
10431043
},
10441044
},
1045+
home: {
1046+
welcome: "Tere tulemast",
1047+
chooseWorkspace: "Vali tööruum, et alustada vestlust!",
1048+
notAssigned:
1049+
"Sa ei ole täidetud ühtegi tööruumi.\nPäringu tööruumiks, palun pööra teie administraatorile.",
1050+
goToWorkspace: 'Mine tööruumiks "{{workspace}}"',
1051+
},
10451052
};
10461053

10471054
export default TRANSLATIONS;

frontend/src/locales/fa/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,13 @@ const TRANSLATIONS = {
10021002
"password-label": "رمز عبور نمونه",
10031003
},
10041004
},
1005+
home: {
1006+
welcome: "خوش آمدید",
1007+
chooseWorkspace: "انتخاب یک فضای کار برای شروع گفتگو!",
1008+
notAssigned:
1009+
"شما در حال حاضر به هیچ فضای کاری اختصاص نیافته‌اید.\nلطفاً با مدیر خود تماس بگیرید تا دسترسی به یک فضای کار را درخواست کنید.",
1010+
goToWorkspace: 'به فضای کار "{{workspace}}" بروید',
1011+
},
10051012
};
10061013

10071014
export default TRANSLATIONS;

frontend/src/locales/fr/common.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,14 @@ const TRANSLATIONS = {
10101010
"password-label": "Mot de passe de l'instance",
10111011
},
10121012
},
1013+
home: {
1014+
welcome: "Bienvenue",
1015+
chooseWorkspace:
1016+
"Choisissez un espace de travail pour commencer à chatter!",
1017+
notAssigned:
1018+
"Vous n'êtes actuellement pas affecté à aucun espace de travail.\nPour accéder à un espace de travail, veuillez contacter votre administrateur.",
1019+
goToWorkspace: 'Aller à "{{workspace}}"',
1020+
},
10131021
};
10141022

10151023
export default TRANSLATIONS;

frontend/src/locales/he/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,13 @@ const TRANSLATIONS = {
10501050
"password-label": "סיסמת מופע",
10511051
},
10521052
},
1053+
home: {
1054+
welcome: "ברוכים הבאים",
1055+
chooseWorkspace: "בחר סביבת עבודה כדי להתחיל לשוחח!",
1056+
notAssigned:
1057+
"אינך מוקצה לכל סביבת עבודה.\nיש ליצור קשר עם המנהל שלך כדי לבקש גישה לסביבת עבודה.",
1058+
goToWorkspace: 'עבור לסביבת עבודה "{{workspace}}"',
1059+
},
10531060
};
10541061

10551062
export default TRANSLATIONS;

0 commit comments

Comments
 (0)