From 902af3aa9f50616094dd508677984d9ba527e075 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sat, 9 Mar 2024 10:13:20 +0100 Subject: [PATCH] wording regarding toc --- src/components/TableOfContent/TableOfContent.astro | 4 +++- src/i18n/wordings-keys.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/TableOfContent/TableOfContent.astro b/src/components/TableOfContent/TableOfContent.astro index 48b63f5..7da7c9f 100644 --- a/src/components/TableOfContent/TableOfContent.astro +++ b/src/components/TableOfContent/TableOfContent.astro @@ -2,12 +2,14 @@ import type { TableOfContentEntry } from "src/shared/payload/payload-sdk"; import TableOfContentItem from "./components/TableOfContentItem.astro"; import { Icon } from "astro-icon/components"; +import { getI18n } from "src/i18n/i18n"; interface Props { toc: TableOfContentEntry[]; } const { toc } = Astro.props; +const { t } = await getI18n(Astro.locals.currentLocale); --- {/* ------------------------------------------- HTML ------------------------------------------- */} @@ -15,7 +17,7 @@ const { toc } = Astro.props;
Table of Content
+{t("pages.tableOfContent")}