Files
multica/apps/web/lib/html-lang.ts
T
Soda 0431218061 MUL-6833 fix(web): localize auth callback and error pages (#7752)
Localize the web auth callback, 404 page, and root error boundary, plus the shared section-level ErrorBoundary.

Also fixes several pre-existing auth-path bugs surfaced during review:
- access_denied was unreachable (the !code branch preceded the error-param check)
- UserLocaleSync's reload could replay a consumed OAuth code and show 'Login Failed' after a successful sign-in
- Google token-exchange and userinfo provider failures were misreported as user-actionable causes
- checkSignupAllowed reported 'registration is disabled' for an allowlist miss
2026-09-03 14:13:47 +08:00

12 lines
416 B
TypeScript

import type { SupportedLocale } from "@multica/core/i18n";
// HTML lang uses BCP-47 region tags widely recognized by screen readers and
// font stacks. i18next keeps zh-Hans internally because that is the resource
// key, while the document uses zh-CN for accessibility and CJK fallback.
export const HTML_LANG: Record<SupportedLocale, string> = {
en: "en",
"zh-Hans": "zh-CN",
ko: "ko-KR",
ja: "ja-JP",
};