From be1efa83b21431b24fd8dc4c80fb80047718d58d Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Tue, 12 Sep 2023 09:45:09 +0000 Subject: [PATCH] :bug: Fix footer copyright translate --- .../theme-nonepress/src/theme/Footer/Copyright/index.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/theme-nonepress/src/theme/Footer/Copyright/index.tsx b/packages/theme-nonepress/src/theme/Footer/Copyright/index.tsx index a10955c..05c7141 100644 --- a/packages/theme-nonepress/src/theme/Footer/Copyright/index.tsx +++ b/packages/theme-nonepress/src/theme/Footer/Copyright/index.tsx @@ -1,7 +1,7 @@ import React from "react"; import Link from "@docusaurus/Link"; -import { translate } from "@docusaurus/Translate"; +import Translate, { translate } from "@docusaurus/Translate"; import type { Props } from "@theme/Footer/Copyright"; import IconDocusaurus from "@theme/Icon/Docusaurus"; @@ -16,7 +16,12 @@ export default function FooterCopyright({ copyright }: Props): JSX.Element { dangerouslySetInnerHTML={{ __html: copyright }} />
- Powered by + + Powered by +