Liste Translations

This commit is contained in:
2025-05-02 17:39:38 +02:00
parent 2b88e46ca6
commit 6cc99812d2
3 changed files with 8 additions and 2 deletions

View File

@@ -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 <List<Entity> resource={`entities`} columns={columns} />
}