Liste Translations
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user