i18n: pre-paint UI locale script + admin language switcher polish
FeatureShipped· by Elsama· 1 month ago
UX audit finding
Admin language switcher (LanguageSwitcher) persists locale but UI strings remain English. document.documentElement.lang should be set before first paint to avoid flash and assistive tech mismatch.
Fix: Add pre-hydration script in root layout (mirror theme/sidebar pattern) + wire applyUiLocale on switch.