--- // import { getLanguageFromURL } from '../../languages'; import { SIDEBAR } from '../../config'; type Props = { currentPage: string; }; const { currentPage } = Astro.props as Props; const { BASE_URL } = import.meta.env; let currentPageMatch = currentPage.slice(BASE_URL.length, currentPage.endsWith('/') ? -1 : undefined); const langCode = 'en'; // getLanguageFromURL(currentPage); const sidebar = SIDEBAR[langCode]; ---