fix(deps): update i18next (major)
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| i18next (source) | peerDependencies | major | ^21.10.0 -> ^24.2.2 |
| i18next (source) | devDependencies | major | ^21.10.0 -> ^24.2.2 |
| i18next (source) | dependencies | major | ^21.10.0 -> ^24.2.2 |
| i18next-browser-languagedetector | dependencies | major | ^6.1.8 -> ^8.0.4 |
| i18next-http-backend | dependencies | major | ^1.4.5 -> ^3.0.2 |
| react-i18next | dependencies | major | ^11.18.6 -> ^15.4.1 |
Release Notes
i18next/i18next (i18next)
v24.2.2
- fix: Interpolation fails with arrays (TypeError) and doesn't work with objects in defaultValue 1829
v24.2.1
- Standardize null/undefined checks across codebase 2275
- fix(typescript): make TFunction augmentable again 2279, fixes 2278
v24.2.0
- feat(typescript): Add strictKeyChecks option to enforce checking key existence when defaultValue is used 2274, fixes 2043
v24.1.2
- optimize fix: Bug Report: Unsafe Behavior in i18n.t Function Leading to Potential Code Execution 2273
v24.1.1
- fix: Bug Report: Unsafe Behavior in i18n.t Function Leading to Potential Code Execution 2273
v24.1.0
v24.0.5
- remove extra log for 2268
v24.0.4
- simplify fix: incorrect locale detected 2268
v24.0.3
v24.0.2
- if no Intl api, log error and use dummy rule
v24.0.1
- early return and log error, if no Intl api
v24.0.0
This is a major breaking release:
- remove support for older environments
- remove old i18next JSON formats
- To convert your existing v3 translations to the v4 format, have a look at i18next-v4-format-converter or this web tool.
- remove support for compatibility to v1 API
- Intl API is mandatory now and will not fallback anymore
- possible compatibility layer for older formats:
test/compatibility/v4/v4Compatibility.js - rename
initImmediatetoinitAsync - fallback to
devlanguage if plural rule not found - Dropped support for Node.js < v14
- remove TypeScript v4 support. TypeScript v5 is now an optional peer dependency
- addresses
v23.16.8
- fix(plural): Create cache entry for PluralRules created as part of the fallback flow 2256
v23.16.7
- if plural rule is not found, try to search with language only code 2252
v23.16.6
- fix: Small typo in the type definitions 2250
v23.16.5
- fix extractFromKey for use cases like this
v23.16.4
- revert formatter change 2247 because of caching not working anymore
v23.16.3
- fix utils imports for Deno
v23.16.2
- perf(size): Adds a isString utility 2248
v23.16.1
- perf: Optimize size of Formatter 2247
v23.16.0
- use
Intl.getCanonicalLocalesfunction if available to format language code, like suggested in 2244
v23.15.2
v23.15.1
- types(TFunction): make return not inferrable and use defaultValue as return when provided 2234
v23.15.0
- support unescaped variables in TypeScript 2233
v23.14.0
- If backend errors with retry flag, set internal state to 0, so reloadingResources should work 147
v23.13.0
- Cache output of getRule to optimize performance 2226
v23.12.7
- revert last optimization to address 2227
v23.12.6
- remove console.log statement 2227
v23.12.5
- try to optimize last fix for 2227
v23.12.4
- try to address 2227 without the removal of cached formatter for in-built formatters
v23.12.3
- fix: Using a comma in a formatter parameter 2225
v23.12.2
- fix: Nested translation resolution between languages uses the fallback language for nested translations 2216 by preserving issue fix "
lngis undefined when formatter used in$t( )" 1938
v23.12.1
- Use explicit imports for utils 2212
v23.12.0
- feat: Add posibility to override keyPrefix for certain translation. 2211
v23.11.5
v23.11.4
- perf(interpolator): use object deconstruction 2181
v23.11.3
- fix: Unsupported language is automatically added to preload option 2178
v23.11.2
- allow defaultValue in nested translation 2174
v23.11.1
- types: remove const from ParseKeys Context type parameter and disable
skipLibCheck2169
v23.11.0
- Fix typing performance regression 2166
v23.10.1
- optimize getBestMatchFromCodes for https://github.com/i18next/i18next-browser-languageDetector/issues/281
v23.10.0
- Add 'isInitializing' property so we're able to detect init() was already called 2141
v23.9.0
v23.8.3
- prevent resource mutation when using
addResourceBundle2081
v23.8.2
- optimize
addResourcesto address 2130
v23.8.1
- types: support stricter typechecking for returnEmptyString and returnNull 2129
v23.8.0
- improve performance by reducing array slices and RegExp recreation 2128
v23.7.20
- optimize: consistent _zero special handling also for defaultValue_zero 2124
- intl plural rule for dev is now en (consistent with v3 compatibility)
v23.7.19
- fix: consistent _zero special handling also for defaultValue_zero 2124
v23.7.18
- types: support readonly defaultNS 2123
v23.7.17
- types: fix support for defaultNS as array (fixes 2118) 2121
- types: fix typo in
CustomInstanceExtensions2122
v23.7.16
- fix: Use Typescript 5 types with Typescript 5+ 2108
- Hint: If you're using TypeScript 4 and you navigate to the type definitions in your code editor, it might be you will see the TypeScript 5 types, but the TS compiler should use the correct types.
v23.7.15
- types: simplifies types for array access and fixes 2103
v23.7.14
- types: fix types for array access
v23.7.13
- types: optimise ParseTReturn 2095
v23.7.12
- types: fix for older ts version (context validation only for TS 5)
v23.7.11
- types: fix for older ts versions 2090
v23.7.10
- types: initializedStoreOnce and initializedLanguageOnce 2089
v23.7.9
- types: fix FormatFunction should allow any value inside options parameter
v23.7.8
- prevent cosmetic SyntaxError because of non catched error variable
v23.7.7
- optimize TypeScript V4 export
v23.7.6
- types: CustomInstanceExtenstions
v23.7.5
- fix types export for TypeScript v4 in combination with react-i18next
v23.7.4
- fix for TypeScript v4 in combination with react-i18next
v23.7.3
- fix: consider importing '*.js'
v23.7.2
- optimize: consistent _zero special handling also for defaultValue_zero 2124
- intl plural rule for dev is now en (consistent with v3 compatibility)
v23.7.1
- fix: consistent _zero special handling also for defaultValue_zero 2124
v23.7.0
v23.6.0
- add interpolation data to response if returnDetails is true 2053
v23.5.1
- types: use unknown to better infer types on nested t functions also for older typescript version 2032
v23.5.0
- types: use unknown to better infer types on nested t functions 2018
v23.4.9
- fix: preload languages also on cimode, if configured also as fallbackLng
v23.4.8
- fix: preload languages also on cimode, if configured
v23.4.7
- preload languages also on cimode, if configured
v23.4.6
- pass correct language for custom i18nFormat
v23.4.5
- types: named export for FlatNamespace
v23.4.4
- types: add customisation of contextSeparator also on v4 t types 2019
v23.4.3
- types: add customisation of contextSeparator 2017
v23.4.2
- types: export some types for next-i18next
v23.4.1
- types: fix typescript imports
v23.4.0
v23.3.0
- types: Fix performance issue that affects flat object with multiple (thousands) keys 2004
v23.2.11
- types: Fix $TFunctionBrand 1997
v23.2.10
- types: emit function can have additional arguments 1993
v23.2.9
- types: Add brand to TFunction type so different namespaces' TFunctions are not treated as compatible 1994
v23.2.8
- types for hasLoadedNamespace
v23.2.7
- fix utils import (for Deno)
v23.2.6
- Re-allow unknown keys, when a defaultValue is provided 1867
v23.2.5
- Clean language code before passing to formatters 1988
v23.2.3
- types: Optimize logic for fallback ns 1984
v23.2.2
- types: try to fix fallbackNS type handling also for older TS version 1981
v23.2.1
- types: Fix $TFunctionBrand 1997
v23.2.0
- types: add fallbackNS type handling 1975
v23.1.0
- cloneInstance: introduce
forkResourceStore1974 - types: default argument values for ParseKeys type
v23.0.2
- refactor: static createInstance for wider browser support 1973
v23.0.1
- types: export ParseKeys
v23.0.0
This is a major breaking release:
-
redesigned TypeScript types 1911
-
removed
setDebugfunction in the logger: 1954 -
changed
returnNulldefault tofalse1885 -
drop support for old browsers and Node.js < v12 1948
-
ordinal plural keys are now prefixed with
_ordinalto help translators (non-breaking, because of fallback) 1945
v22.5.1
- ResourceStore addResource: offer possibility to pass keySeparator via options 1968
v22.5.0
- extend hasLoadedNamespace function options to pass optional lng to optimize server side usage of react-i18next
v22.4.15
- fix: function t() passed options alteration 1947
v22.4.14
- fix: pass lng to format function used in nesting 1938
v22.4.13
- fix: deepFind as fallback for interpolation 1930
v22.4.12
- fix: getBestMatchFromCodes when dev is a supported lng 1927
v22.4.11
- types: fix postProcessor key argument type, fixes 1919
v22.4.10
- format options are optional, fixes 1913
v22.4.9
- fix: getFixedT with keyPrefix and fallback keys usage 1604
v22.4.8
- fix: nested interpolation with data model "replace"
v22.4.7
- fix: interpolation with data model "replace"
v22.4.6
- types: missing dir function export for typescript
v22.4.5
- types: allow als general options as second argument for t function
v22.4.4
- types: fix some strange t function overloads fixes 1882
v22.4.3
- types: t function overloads fix (open issue is still calling t with optional options argument)
v22.4.2
- types: t function overloads for call with ns option in combination with objects
v22.4.1
- fix: function t() passed options alteration 1947
v22.4.0
- types: more overloads for t function
v22.3.0
- offer possibility to define a language detector's detect function as promise
v22.2.0
v22.1.5
- types: ability to pass ns as option instead of prefix i.e.
i18next.t('bar', { ns: 'alternate' });
v22.1.4
- dir function executable also without initialization
v22.1.3
- named export for dir function
v22.1.2
- revert: guess if languageDetector is async if no info provided
v22.1.1
- guess if languageDetector is async if no info provided
v22.1.0
- extend backend connector to accept also backends with promise / async-await signature
v22.0.8
- fix options for continuous nesting 1876
v22.0.7
- Expose some types 1871
v22.0.6
- fix CallbackError type
v22.0.5
- Change DefaultTFuncReturn to return null if returnNull typeOption is true 1865
v22.0.4
- Add type for Formatter.addCached 1862
v22.0.3
v22.0.2
- [TypeScript] Add default value for TDefaultResult 1853
v22.0.1
- Fix normalize type options 1850
v22.0.0
- Make the translation function fully type-safe 1775
BREAKING: Since this is a major rewrite for TypeScript usage we decided to create a major version. For JavaScript users v22.0.0 is equivalent to 21.10.0
i18next/i18next-browser-languageDetector (i18next-browser-languagedetector)
v8.0.4
v8.0.3
- change localstorage check to try to address 297
v8.0.2
- fix for when passed services are null, should address 296
v8.0.1
- some environments, throws when accessing document.cookie
v8.0.0
- chore: set browsers target to defaults 286
- perf: use object deconstruction, optional chaining and hot path optimisations 287
v7.2.2
v7.2.1
- fix: align addDetector impementation to type definition 282
v7.2.0
- fix: separate cjs and mjs typings
v7.1.0
- introduce convertDetectedLanguage option
v7.0.2
- simplify usage without i18next
v7.0.1
- try to force esm moduel type for esm build 269
v7.0.0
- typescript fix for i18next v22
i18next/i18next-http-backend (i18next-http-backend)
v3.0.2
- optimize fetchApi selector
v3.0.1
- try to get rid of top-level await
v3.0.0
- fix for Deno 2 and removal of unnecessary .cjs file
- for esm build environments not supporting top-level await, you should import the
i18next-http-backend/cjsexport or stay at v2.6.2 or v2.7.1
v2.7.3
- optimize fetchApi selector [backported]
v2.7.2
v2.7.1
- same as 2.6.2
v2.7.0
- deprecated, same as v3.0.0
v2.6.2
- improve network error detection across browsers 152
v2.6.1
- optimize "Failed to fetch" retry case 147
v2.6.0
- fix "Failed to fetch" retry case 147
v2.5.2
- dereference timers in node.js so that the process may exit when finished 139
v2.5.1
- fix: remove typeof window.document === 'undefined' check which deopt bundle optimization 137
v2.5.0
- added fetch interceptor to the Backend Options 133
v2.4.3
- fix: overriding options
v2.4.2
- fix: mjs typings export
v2.4.1
- fix: separate cjs and mjs typings
v2.4.0
v2.3.1
- fix for browser usage
v2.3.0
- update deps
v2.2.2
- hack for debug mode in react-native
v2.2.1
- fix for types moduleResolution "node16"
v2.2.0
- parseLoadPayload for POST request 110
v2.1.1
- regression fix for saveMissing signature 1890
v2.1.0
- typescript: export the backend options type 105
v2.0.2
- typescript: static type prop
v2.0.1
v2.0.0
- typescript: update for major i18next version
i18next/react-i18next (react-i18next)
v15.4.1
fix: unique key warning on componentized element 1835
v15.4.0
feat: add meta with codes on warnings to allow conditional logging 1826
v15.3.0
Uses the i18next logger instead of the default console logger, if there is a valid i18next instance. Now the debug i18next option is respected, and you can also inject your own logger module: https://www.i18next.com/misc/creating-own-plugins#logger
v15.2.0
This version may be breaking if you still use React < v18 with TypeScript. For JS users this version is equal to v15.1.4
v15.1.4
- Fix: warning each child should have a unique key 1820
v15.1.3
- fix: Self-closing REACT components in translation strings should not attempt to replace the component's children 1815 1816
v15.1.2
- fix: Attempted to assign to readonly property 1813
v15.1.1
- fix: Not all namespaces are loaded when passing the lng option to useTranslate 1809
v15.1.0
- fix:
<Trans />warns 'Each child in a list should have a unique "key" prop.' for react 19 1806
v15.0.3
- try to fix unexpected token issue
v15.0.2
- try to fix Trans handling with alwaysFormat set to true 1801
v15.0.1
- revert arrow function in class property to address this
v15.0.0
- use optional chaining, nullish coalescing and nullish coalescing assignment 1774
- Build config and optimizations 1769
- some dependency updates 1768
- use modern hasLoadedNamespace code (now requires at least i18next > v19.4.5 (introduced in june 2020))
v14.1.3
- create a isObject helper function 1766
- optimize nodesToString 1765
- Simplifies hasValidReactChildren 1764
- create a isString helper to avoid code duplication 1763
- use arrow functions where possible 1762
- use the commented out async code 1761
v14.1.2
- bring back internal interpolationOverride handling for Trans component (if there are childrens), fixes 1754
v14.1.1
- do not modify passed tOptions context property to address 1745
v14.1.0
- types(
Trans): add typechecking on context prop 1732 (might break if using "internal"TransorTransProps)
v14.0.8
v14.0.7
- try to get rid of internal interpolationOverride handling for Trans component, fixes 1729
v14.0.6
- align context handling of Trans component with t function, fixes 1729
v14.0.5
v14.0.4
- fix interpolation of the count prop 1719
v14.0.3
- revert changes done in v14.0.2 since it breaks normal language change render updates
v14.0.2
v14.0.1
- types: fix typo in
CustomInstanceExtensions1713
v14.0.0
- types: reportNamespaces is now optional, should fix 1693
v13.5.0
- self-closing components in translation strings should not attempt to replace the component's children 1695
v13.4.1
- types: use CustomInstanceExtenstions to extend reportNamespaces
v13.4.0
- fix: separate cjs and mjs typings
v13.3.2
- types: fix consider importing '*.js'
v13.3.1
- optimize defaultVariables feature introduced in last release
v13.3.0
- Respect defaultVariables in the interpolation options 1685
v13.2.2
- Fix missing TransWithoutContext type 1672
v13.2.1
- types: Allow iterable ReactI18NextChildren as children 1669
v13.2.0
- Don't use defaults prop as default key 1664
v13.1.2
- postpone usage of newer ES syntax
v13.1.1
- Render all children regardless of type when using i18nIsDynamicList prop 1661
v13.1.0
- Fix non-list dynamic content in Trans component 1660
v13.0.3
- fix unescape is not consistently called for all values 1657
v13.0.2
- export icu.macro 1652
v13.0.1
- types: Fix performance issue in Trans component 1646
v13.0.0
- Update types to support t function redesign 1615
- requires i18next >= v23.0.1
v12.3.1
- optimization for optional lng prop for useTranslation, should now prevent missings when lazy loading translations 1637
v12.3.0
- optional lng prop for useTranslation (helping on server side 1637)
v12.2.2
- try to fix conditional exports in package.json
v12.2.1
- type fix: the type of defaultNS in I18nextProvider should support string[] 1633
v12.2.0
- if defaultValue is passed in not ready t functio (via useTranslation) return that instead of the key, even though the user-land could should be fixed 1618
v12.1.5
v12.1.4
- fix crash in gatsby 1594
v12.1.3
- fix fallback of t function in Trans component
v12.1.2
- fix crash in gatsby 1594
v12.1.1
- fix for node resolution 1589
v12.1.0
- context-less version of Trans component to be used for environments without react context 1588
v12.0.0
- Update t function types to rely on types coming from i18next 1501
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.