-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Cannot read properties of undefined (reading 'map')
components/HeadHrefLangs.astro:10:19
---
import i18next from "i18next";
import { localizeUrl } from "../..";
const supportedLanguages = i18next.languages;
const currentUrl = Astro.url.href;
---
{
supportedLanguages.map((supportedLanguage) => (
<link
rel="alternate"
hreflang={supportedLanguage}
href={localizeUrl(currentUrl, supportedLanguage)}
/>
))
}
另外不太明白的是page下面有一个index.astro, 但是zh文件夹下没有,那么如果路由是 localhost:43121/zh 怎么识别呢
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels