Sourced from i18next's releases.
v27.2.5
- fix(types):
LoggerModule'slog,warnanderrortake one array, the way i18next calls them (log(args)); they were typed with rest parameters, so a logger typed to spread...argsgot the array as its only argument. Loggers typed either way still compile.- fix(types):
I18nFormatModuledeclares the members i18next calls:init,parse,addLookupKeys,handleAsObjectandgetResource, all optional. It declared onlytype, so an object-literal i18n format with these members failed to compile.v27.2.4
- fix(types):
BackendModule.createtakes the parameters i18next passes it: a backend withcallbackApi: truegetscreate(languages, namespace, key, fallbackValue, callback, options), one withcallbackApi: falsegetscreate(languages, namespace, key, fallbackValue, options)and may return a promise. The types declared only the first four parameters, so a required fifth or sixth parameter failed to compile and an object-literal backend could not take them at all. One rare case now fails: acreate: (...args) => other.create(...args)that forwards to acreatetyped with exactly four parameters. The doc comments ofreadandreadMultinow describe their promise form (read(language, namespace)returning the data or a promise of it), which the types already accepted.- fix(types):
getFixedT()takes its fourth parameter,{ scopeNs }, the full list of namespaces the returnedtis bound to, which selector keys use to find a namespace prefix; lookups still usens(react-i18next'suseTranslationpasses it).- fix(types): the doc comment of
saveMissingPluralssays@default true, the runtime default since the option came in 10.3.0, notfalse.
Sourced from i18next's changelog.
27.2.5
- fix(types):
LoggerModule'slog,warnanderrortake one array, the way i18next calls them (log(args)); they were typed with rest parameters, so a logger typed to spread...argsgot the array as its only argument. Loggers typed either way still compile.- fix(types):
I18nFormatModuledeclares the members i18next calls:init,parse,addLookupKeys,handleAsObjectandgetResource, all optional. It declared onlytype, so an object-literal i18n format with these members failed to compile.27.2.4
- fix(types):
BackendModule.createtakes the parameters i18next passes it: a backend withcallbackApi: truegetscreate(languages, namespace, key, fallbackValue, callback, options), one withcallbackApi: falsegetscreate(languages, namespace, key, fallbackValue, options)and may return a promise. The types declared only the first four parameters, so a required fifth or sixth parameter failed to compile and an object-literal backend could not take them at all. One rare case now fails: acreate: (...args) => other.create(...args)that forwards to acreatetyped with exactly four parameters. The doc comments ofreadandreadMultinow describe their promise form (read(language, namespace)returning the data or a promise of it), which the types already accepted.- fix(types):
getFixedT()takes its fourth parameter,{ scopeNs }, the full list of namespaces the returnedtis bound to, which selector keys use to find a namespace prefix; lookups still usens(react-i18next'suseTranslationpasses it).- fix(types): the doc comment of
saveMissingPluralssays@default true, the runtime default since the option came in 10.3.0, notfalse.
4b6860e
27.2.557ada53
changelog for 27.2.570a1fb8
fix(types): LoggerModule takes one array, I18nFormatModule declares the
membe...7dc41f0
docs: README links the docs pages directly, and docs PRs go to
i18next/www7b3e42a
27.2.4afeb5aa
changelog for 27.2.46b70fcd
fix(types): saveMissingPlurals documents @​default true2eb4186
fix(types): getFixedT takes its fourth parameter, fixedOpts1e4788b
fix(types): BackendModule.create takes the callback and options i18next
passes