- App Router: a language tag with script and region matches a supported script code - the proxy went from the full code straight to the bare language, so with
supportedLngs: ['en', 'zh-Hans', 'zh-Hant']a browser sendingzh-Hant-TWgoten,/zh-Hant-TW/xredirected to/en/zh-Hant-TW/x, and withnonExplicitSupportedLngsboth ended up onzh-Hans. Withzhalso supported it gotzh. The script part (zh-Hant) is now tried before the language part, as in i18next. Thanks @SudeepGowda55 (#2357) - App Router: the cookie fallback in
getT()matches like the proxy - when the proxy did not run (nox-i18next-current-languageheader), the language cookie only counted if it was insupportedLngsexactly, or withnonExplicitSupportedLngsby its language part. Now it goes through the proxy's matching: case-insensitive,zh-Hant-TWtozh-Hantandde-ATtode.