From a533c201d80c62d8f8debf4cbc81944d0b31e964 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Wed, 29 May 2024 20:58:25 +0200 Subject: [PATCH] chore: add missing translations --- .../manage/tools/docker/DockerTable.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/nextjs/src/app/[locale]/manage/tools/docker/DockerTable.tsx b/apps/nextjs/src/app/[locale]/manage/tools/docker/DockerTable.tsx index f4aee91e3..c376306cc 100644 --- a/apps/nextjs/src/app/[locale]/manage/tools/docker/DockerTable.tsx +++ b/apps/nextjs/src/app/[locale]/manage/tools/docker/DockerTable.tsx @@ -9,13 +9,16 @@ import { MantineReactTable, useMantineReactTable } from "mantine-react-table"; import type { RouterOutputs } from "@homarr/api"; import { useTimeAgo } from "@homarr/common"; import type { DockerContainerState } from "@homarr/definitions"; -import { useScopedI18n } from "@homarr/translation/client"; +import type { TranslationFunction } from "@homarr/translation"; +import { useI18n, useScopedI18n } from "@homarr/translation/client"; import { OverflowBadge } from "@homarr/ui"; -const columns: MRT_ColumnDef[] = [ +const createColumns = ( + t: TranslationFunction, +): MRT_ColumnDef[] => [ { accessorKey: "name", - header: "Name", + header: t("docker.field.name.label"), Cell({ renderedCellValue, row }) { return ( @@ -29,7 +32,7 @@ const columns: MRT_ColumnDef; @@ -37,7 +40,7 @@ const columns: MRT_ColumnDef port.PrivatePort.toString())} /> @@ -59,6 +62,7 @@ const columns: MRT_ColumnDef