- fix(types): a
t()call withcontextlooks 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 literalcontext: '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=ENor a capitalised cookie) matches'en-US'like'en'and'EN-GB'already did, instead of falling back tofallbackLng, anddir('AR')returns'rtl'whereIntl.Localehas nogetTextInfo(). Thanks @anishkun (#2483) - fix:
dir()also returns'rtl'for'AR'or'AR-EG'withcleanCode: falsewhereIntl.Localehas nogetTextInfo()(Node.js 22, some browsers)