From 3ba9298317a0dad28941767f51f34eb7cf23b405 Mon Sep 17 00:00:00 2001 From: liwei Date: Mon, 16 Oct 2023 12:49:47 +0800 Subject: [PATCH] fix: donate i18n --- components/AppFooter.js | 4 ++-- components/AppHeader.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/AppFooter.js b/components/AppFooter.js index f2c6ffe..ac1f5d8 100644 --- a/components/AppFooter.js +++ b/components/AppFooter.js @@ -9,7 +9,7 @@ import HeartSvg from '../public/images/nav/heart.svg' const AppFooter = (props) => { const { t } = useTranslation('common') const router = useRouter() - const docsLocale = router.locale == 'zh-CN' ? '/zh/' : '' + const docsLocale = router.locale == 'zh-CN' ? '/zh' : '' return (