mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-10 02:16:45 +08:00
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
12 lines
416 B
TypeScript
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",
|
|
};
|