npm i18next 27.2.8
v27.2.8

latest release: 27.2.9
one hour ago
  • fix(types): a t() call with context looks the key up along its own path in the namespace it names, instead of matching it against every key of every namespace. With several large namespaces each such call cost up to millions of type instantiations and could fail with TS2589, a literal context: 'x' soonest. A context value without a key is still an error, as since 25.9.0 (#2482)
  • fix: a language code without subtags gets its language part in the same casing as a code with subtags: with supportedLngs: ['en-US'], 'EN' (from ?lng=EN or a capitalised cookie) matches 'en-US' like 'en' and 'EN-GB' already did, instead of falling back to fallbackLng, and dir('AR') returns 'rtl' where Intl.Locale has no getTextInfo(). Thanks @anishkun (#2483)
  • fix: dir() also returns 'rtl' for 'AR' or 'AR-EG' with cleanCode: false where Intl.Locale has no getTextInfo() (Node.js 22, some browsers)

Don't miss a new i18next release

NewReleases is sending notifications on new releases.