Sourced from react-i18next's changelog.
17.0.9
- fix: allow TypeScript 7 in the optional
typescriptpeer dependency range (^5 || ^6 || ^7). Withtypescript@7.0.2in a project,npm installfailed with anERESOLVEpeer conflict. Fixes #1927, thanks@andikapradanaarif.- fix(types):
<Trans t={t} ns="ns" …>with atfromuseTranslation(['ns'])now typechecks under TypeScript 7. TS7 intersects theNsinference candidates coming from thetprop (readonly ['ns']) and thensprop ('ns') into an unsatisfiable'ns' & readonly ['ns'], where TS6 resolved them. Thensprop onTransProps,TransSelectorPropsandIcuTransWithoutContextPropsnow also accepts a single namespace out of an array-typedNs(Ns | (Ns extends readonly (infer S extends string)[] ? S : never)) — which matches runtime behavior and is unchanged under TS5/TS6.
8b4a9ea
17.0.9422bab1
fix: support typescript 7 — widen peer range and fix Trans ns inference
under...6e18aa9
README: mention npx i18next-cli localize as the zero-to-localized
path