diff --git a/docs/src/components/Header/Header.astro b/docs/src/components/Header/Header.astro index 6ee66e24e..8471e4ebf 100644 --- a/docs/src/components/Header/Header.astro +++ b/docs/src/components/Header/Header.astro @@ -1,8 +1,11 @@ --- import SkipToContent from './SkipToContent.astro'; import SidebarToggle from './SidebarToggle.tsx'; +import LanguageSelect from './LanguageSelect.jsx'; import Search from "./Search.jsx"; -// import LanguageSelect from './LanguageSelect.jsx'; +import { getLanguageFromURL } from '../../util.ts'; +const {currentPage} = Astro.props; +const lang = currentPage && getLanguageFromURL(currentPage); ---