update
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user