From c4c4be72beedd4b88e26fcdac4ca46d7b5e799d1 Mon Sep 17 00:00:00 2001 From: tequ Date: Wed, 22 Apr 2026 14:06:57 +0900 Subject: [PATCH] fix to use defaultLocale --- src/components/Header.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 57642db..dccd188 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -84,7 +84,7 @@ export default function Header(props) { const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const pathname = props.url.pathname - const currentLocale = props.locale || 'en' + const currentLocale = props.locale || defaultLocale const t = nav[currentLocale] || nav.en function langUrl(code) { @@ -164,7 +164,7 @@ export default function Header(props) { const pathSegments = pathname.slice(1).split('/') const activeSegment = - currentLocale !== 'en' ? pathSegments[1] : pathSegments[0] + currentLocale !== defaultLocale ? pathSegments[1] : pathSegments[0] /* ── Shared class fragments ─────────────────────────────────────────────── */ const linkBase =