From 3ccfc462c11e6fecddb721049a92e3e6ff450d69 Mon Sep 17 00:00:00 2001 From: mohadeseh safari Date: Fri, 9 May 2025 17:53:21 -0400 Subject: [PATCH] Transalated all strings in TeamPanel --- .../TabPanels/Account/TeamPanel.jsx | 40 +++++++++---------- client/src/locales/gb.json | 23 +++++++++++ client/src/locales/ru.json | 23 +++++++++++ client/src/locales/tr.json | 23 +++++++++++ 4 files changed, 88 insertions(+), 21 deletions(-) diff --git a/client/src/Components/TabPanels/Account/TeamPanel.jsx b/client/src/Components/TabPanels/Account/TeamPanel.jsx index 9448c632b..fe4b201dd 100644 --- a/client/src/Components/TabPanels/Account/TeamPanel.jsx +++ b/client/src/Components/TabPanels/Account/TeamPanel.jsx @@ -40,7 +40,7 @@ const TeamPanel = () => { const headers = [ { id: "name", - content: "Name", + content: t("teamPanel.table.name"), render: (row) => { return ( @@ -48,16 +48,16 @@ const TeamPanel = () => { {row.firstName + " " + row.lastName} - Created {new Date(row.createdAt).toLocaleDateString()} + {t("teamPanel.table.created")} {new Date(row.createdAt).toLocaleDateString()} ); }, }, - { id: "email", content: "Email", render: (row) => row.email }, + { id: "email", content: t("teamPanel.table.email"), render: (row) => row.email }, { id: "role", - content: "Role", + content: t("teamPanel.table.role"), render: (row) => row.role, }, ]; @@ -198,7 +198,7 @@ const TeamPanel = () => { spellCheck="false" gap={SPACING_GAP} > - Team members + {t("teamPanel.teamMembers")} { filled={(filter === "all").toString()} onClick={() => setFilter("all")} > - All + {t("teamPanel.filter.all")} @@ -238,22 +238,20 @@ const TeamPanel = () => { color="accent" onClick={() => setIsOpen(true)} > - Invite a team member + {t("teamPanel.inviteTeamMember")} { marginBottom={SPACING_GAP} type="email" id="input-team-member" - placeholder="Email" + placeholder={t("teamPanel.email")} value={toInvite.email} onChange={handleChange} error={errors.email ? true : false} @@ -270,7 +268,7 @@ const TeamPanel = () => { />