diff --git a/components/instantsearch-paginated-table.tsx b/components/instantsearch-paginated-table.tsx index 7d0bb75..a284a67 100644 --- a/components/instantsearch-paginated-table.tsx +++ b/components/instantsearch-paginated-table.tsx @@ -1,4 +1,5 @@ import type { Hit } from "instantsearch.js"; +import { useTranslations } from "next-intl"; import type { ReactNode } from "react"; import { Hits } from "react-instantsearch"; @@ -9,6 +10,7 @@ import { ClickablePublicationThumbnail } from "./publication-cover"; import { PublicationLink } from "./publication-link"; function TableRow({ hit }: { hit: Hit }) { + const lt = useTranslations("Languages"); const translators = [ ...new Set( hit.contains.flatMap((tr) => { @@ -48,7 +50,12 @@ function TableRow({ hit }: { hit: Hit }) { })} -
{hit.language}
+
+ { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + lt(hit.language as any) + } +
);