From 6cc99812d2439e04de21dfb3a32d5e31a0ddfa57 Mon Sep 17 00:00:00 2001 From: ewandor Date: Fri, 2 May 2025 17:39:38 +0200 Subject: [PATCH] Liste Translations --- gui/rpk-gui/public/locales/enUS/common.json | 2 ++ gui/rpk-gui/public/locales/frFR/common.json | 2 ++ gui/rpk-gui/src/pages/firm/EntityRoutes.tsx | 6 ++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gui/rpk-gui/public/locales/enUS/common.json b/gui/rpk-gui/public/locales/enUS/common.json index 34cb984..727320f 100644 --- a/gui/rpk-gui/public/locales/enUS/common.json +++ b/gui/rpk-gui/public/locales/enUS/common.json @@ -175,6 +175,8 @@ "created_at": "Created at", "updated_by": "Updated by", "updated_at": "Updated at", + "label": "Label", + "type": "Type", "individual": { "type": "Individual", "lastname": "Lastname", diff --git a/gui/rpk-gui/public/locales/frFR/common.json b/gui/rpk-gui/public/locales/frFR/common.json index 2f4148a..c1c9f8f 100644 --- a/gui/rpk-gui/public/locales/frFR/common.json +++ b/gui/rpk-gui/public/locales/frFR/common.json @@ -175,6 +175,8 @@ "created_at": "Créé le", "updated_by": "Modifié par", "updated_at": "Modifié le", + "label": "Label", + "type": "Type", "individual": { "type": "Particulier", "middlename": "Autres prénoms", diff --git a/gui/rpk-gui/src/pages/firm/EntityRoutes.tsx b/gui/rpk-gui/src/pages/firm/EntityRoutes.tsx index bb79cc7..e39e2bd 100644 --- a/gui/rpk-gui/src/pages/firm/EntityRoutes.tsx +++ b/gui/rpk-gui/src/pages/firm/EntityRoutes.tsx @@ -1,4 +1,5 @@ import { Route, Routes } from "react-router"; +import { useTranslation } from "@refinedev/core"; import List from "./base-page/List"; import Edit from "./base-page/Edit"; import New from "./base-page/New"; @@ -21,9 +22,10 @@ export const EntityRoutes = () => { } const ListEntity = () => { + const { translate: t } = useTranslation(); const columns = [ - { field: "label", headerName: "Label", flex: 1 }, - { field: "entity_data", headerName: "Type", flex: 1, valueFormatter: ({ type }: {type: string}) => type } + { field: "entity_data", headerName: t("schemas.type"), width: 110, valueFormatter: ({ type }: {type: string}) => type }, + { field: "label", headerName: t("schemas.label"), flex: 1 }, ]; return resource={`entities`} columns={columns} /> }