This commit is contained in:
toom1996
2026-09-25 11:32:11 +08:00
parent 4051c23d75
commit f8ff5b86c7
15 changed files with 86 additions and 197 deletions

View File

@ -36,7 +36,7 @@ const defaultKeywords =
const metaDescription = description ?? defaultDescription
const metaKeywords = keywords ?? defaultKeywords
// 把当前语言注入 API 请求层:所有服务端(SSG/SSR)取数统一带上 ?locale=,
// 把当前语言注入 API 请求层:所有服务端(SSG/SSR)取数统一走 X-Locale 头,
// 后端据此选 *_en / *_cn 列。客户端 fetch 则自行按 URL path 推断,无需此处。
setApiLocale(locale)