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

Compare Source

  • fix: Interpolation fails with arrays (TypeError) and doesn't work with objects in defaultValue 1829

v24.2.1

Compare Source

  • Standardize null/undefined checks across codebase 2275
  • fix(typescript): make TFunction augmentable again 2279, fixes 2278

v24.2.0

Compare Source

  • feat(typescript): Add strictKeyChecks option to enforce checking key existence when defaultValue is used 2274, fixes 2043

v24.1.2

Compare Source

  • optimize fix: Bug Report: Unsafe Behavior in i18n.t Function Leading to Potential Code Execution 2273

v24.1.1

Compare Source

  • fix: Bug Report: Unsafe Behavior in i18n.t Function Leading to Potential Code Execution 2273

v24.1.0

Compare Source

  • try to address 2270 by cloning the store data 2271

v24.0.5

Compare Source

  • remove extra log for 2268

v24.0.4

Compare Source

  • simplify fix: incorrect locale detected 2268

v24.0.3

Compare Source

  • fix: incorrect locale detected 2268
  • fix: Intl.getCanonicalLocales throws with custom regions 2267

v24.0.2

Compare Source

  • if no Intl api, log error and use dummy rule

v24.0.1

Compare Source

  • early return and log error, if no Intl api

v24.0.0

Compare Source

This is a major breaking release:

  • remove support for older environments
  • remove old i18next JSON formats
  • 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 initImmediate to initAsync
  • fallback to dev language if plural rule not found
  • Dropped support for Node.js < v14
  • remove TypeScript v4 support. TypeScript v5 is now an optional peer dependency
  • addresses

➡️ check out the migration guide

v23.16.8

Compare Source

  • fix(plural): Create cache entry for PluralRules created as part of the fallback flow 2256

v23.16.7

Compare Source

  • if plural rule is not found, try to search with language only code 2252

v23.16.6

Compare Source

  • fix: Small typo in the type definitions 2250

v23.16.5

Compare Source

  • fix extractFromKey for use cases like this

v23.16.4

Compare Source

  • revert formatter change 2247 because of caching not working anymore

v23.16.3

Compare Source

  • fix utils imports for Deno

v23.16.2

Compare Source

  • perf(size): Adds a isString utility 2248

v23.16.1

Compare Source

  • perf: Optimize size of Formatter 2247

v23.16.0

Compare Source

  • use Intl.getCanonicalLocales function if available to format language code, like suggested in 2244

v23.15.2

Compare Source

  • fix(types): make context related keys detection stricter 2243 fixes 2242

v23.15.1

Compare Source

  • types(TFunction): make return not inferrable and use defaultValue as return when provided 2234

v23.15.0

Compare Source

  • support unescaped variables in TypeScript 2233

v23.14.0

Compare Source

  • If backend errors with retry flag, set internal state to 0, so reloadingResources should work 147

v23.13.0

Compare Source

  • Cache output of getRule to optimize performance 2226

v23.12.7

Compare Source

  • revert last optimization to address 2227

v23.12.6

Compare Source

  • remove console.log statement 2227

v23.12.5

Compare Source

  • try to optimize last fix for 2227

v23.12.4

Compare Source

  • try to address 2227 without the removal of cached formatter for in-built formatters

v23.12.3

Compare Source

  • fix: Using a comma in a formatter parameter 2225

v23.12.2

Compare Source

  • fix: Nested translation resolution between languages uses the fallback language for nested translations 2216 by preserving issue fix "lng is undefined when formatter used in $t( )" 1938

v23.12.1

Compare Source

  • Use explicit imports for utils 2212

v23.12.0

Compare Source

  • feat: Add posibility to override keyPrefix for certain translation. 2211

v23.11.5

Compare Source

  • perf: use Array.isArray() 2193
  • perf: trim keys once 2194

v23.11.4

Compare Source

  • perf(interpolator): use object deconstruction 2181

v23.11.3

Compare Source

  • fix: Unsupported language is automatically added to preload option 2178

v23.11.2

Compare Source

  • allow defaultValue in nested translation 2174

v23.11.1

Compare Source

  • types: remove const from ParseKeys Context type parameter and disable skipLibCheck 2169

v23.11.0

Compare Source

  • Fix typing performance regression 2166

v23.10.1

Compare Source

v23.10.0

Compare Source

  • Add 'isInitializing' property so we're able to detect init() was already called 2141

v23.9.0

Compare Source

  • types: support nested keys in InterpolationMap 2140 fixes 2014

v23.8.3

Compare Source

  • prevent resource mutation when using addResourceBundle 2081

v23.8.2

Compare Source

  • optimize addResources to address 2130

v23.8.1

Compare Source

  • types: support stricter typechecking for returnEmptyString and returnNull 2129

v23.8.0

Compare Source

  • improve performance by reducing array slices and RegExp recreation 2128

v23.7.20

Compare Source

  • 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

Compare Source

  • fix: consistent _zero special handling also for defaultValue_zero 2124

v23.7.18

Compare Source

  • types: support readonly defaultNS 2123

v23.7.17

Compare Source

  • types: fix support for defaultNS as array (fixes 2118) 2121
  • types: fix typo in CustomInstanceExtensions 2122

v23.7.16

Compare Source

  • 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

Compare Source

  • types: simplifies types for array access and fixes 2103

v23.7.14

Compare Source

  • types: fix types for array access

v23.7.13

Compare Source

  • types: optimise ParseTReturn 2095

v23.7.12

Compare Source

  • types: fix for older ts version (context validation only for TS 5)

v23.7.11

Compare Source

  • types: fix for older ts versions 2090

v23.7.10

Compare Source

  • types: initializedStoreOnce and initializedLanguageOnce 2089

v23.7.9

Compare Source

  • types: fix FormatFunction should allow any value inside options parameter

v23.7.8

Compare Source

  • prevent cosmetic SyntaxError because of non catched error variable

v23.7.7

Compare Source

  • optimize TypeScript V4 export

v23.7.6

Compare Source

  • types: CustomInstanceExtenstions

v23.7.5

Compare Source

  • fix types export for TypeScript v4 in combination with react-i18next

v23.7.4

Compare Source

  • fix for TypeScript v4 in combination with react-i18next

v23.7.3

Compare Source

  • fix: consider importing '*.js'

v23.7.2

Compare Source

  • 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

Compare Source

  • fix: consistent _zero special handling also for defaultValue_zero 2124

v23.7.0

Compare Source

  • fix: separate cjs and mjs typings 2010
  • fix: consider importing './typescript/t.js' 2048

v23.6.0

Compare Source

  • add interpolation data to response if returnDetails is true 2053

v23.5.1

Compare Source

  • types: use unknown to better infer types on nested t functions also for older typescript version 2032

v23.5.0

Compare Source

  • types: use unknown to better infer types on nested t functions 2018

v23.4.9

Compare Source

  • fix: preload languages also on cimode, if configured also as fallbackLng

v23.4.8

Compare Source

  • fix: preload languages also on cimode, if configured

v23.4.7

Compare Source

  • preload languages also on cimode, if configured

v23.4.6

Compare Source

  • pass correct language for custom i18nFormat

v23.4.5

Compare Source

  • types: named export for FlatNamespace

v23.4.4

Compare Source

  • types: add customisation of contextSeparator also on v4 t types 2019

v23.4.3

Compare Source

  • types: add customisation of contextSeparator 2017

v23.4.2

Compare Source

  • types: export some types for next-i18next

v23.4.1

Compare Source

  • types: fix typescript imports

v23.4.0

Compare Source

  • types: Support const modifier for options and key 2007
  • types: Support context 2006

v23.3.0

Compare Source

  • types: Fix performance issue that affects flat object with multiple (thousands) keys 2004

v23.2.11

Compare Source

  • types: Fix $TFunctionBrand 1997

v23.2.10

Compare Source

  • types: emit function can have additional arguments 1993

v23.2.9

Compare Source

  • types: Add brand to TFunction type so different namespaces' TFunctions are not treated as compatible 1994

v23.2.8

Compare Source

  • types for hasLoadedNamespace

v23.2.7

Compare Source

  • fix utils import (for Deno)

v23.2.6

Compare Source

  • Re-allow unknown keys, when a defaultValue is provided 1867

v23.2.5

Compare Source

  • Clean language code before passing to formatters 1988

v23.2.3

Compare Source

  • types: Optimize logic for fallback ns 1984

v23.2.2

Compare Source

  • types: try to fix fallbackNS type handling also for older TS version 1981

v23.2.1

Compare Source

  • types: Fix $TFunctionBrand 1997

v23.2.0

Compare Source

  • types: add fallbackNS type handling 1975

v23.1.0

Compare Source

  • cloneInstance: introduce forkResourceStore 1974
  • types: default argument values for ParseKeys type

v23.0.2

Compare Source

  • refactor: static createInstance for wider browser support 1973

v23.0.1

Compare Source

  • types: export ParseKeys

v23.0.0

Compare Source

This is a major breaking release:

  • redesigned TypeScript types 1911

  • removed setDebug function in the logger: 1954

  • changed returnNull default to false 1885

  • drop support for old browsers and Node.js < v12 1948

  • ordinal plural keys are now prefixed with _ordinal to help translators (non-breaking, because of fallback) 1945

➡️ check out the migration guide

v22.5.1

Compare Source

  • ResourceStore addResource: offer possibility to pass keySeparator via options 1968

v22.5.0

Compare Source

  • extend hasLoadedNamespace function options to pass optional lng to optimize server side usage of react-i18next

v22.4.15

Compare Source

  • fix: function t() passed options alteration 1947

v22.4.14

Compare Source

  • fix: pass lng to format function used in nesting 1938

v22.4.13

Compare Source

  • fix: deepFind as fallback for interpolation 1930

v22.4.12

Compare Source

  • fix: getBestMatchFromCodes when dev is a supported lng 1927

v22.4.11

Compare Source

  • types: fix postProcessor key argument type, fixes 1919

v22.4.10

Compare Source

  • format options are optional, fixes 1913

v22.4.9

Compare Source

  • fix: getFixedT with keyPrefix and fallback keys usage 1604

v22.4.8

Compare Source

  • fix: nested interpolation with data model "replace"

v22.4.7

Compare Source

  • fix: interpolation with data model "replace"

v22.4.6

Compare Source

  • types: missing dir function export for typescript

v22.4.5

Compare Source

  • types: allow als general options as second argument for t function

v22.4.4

Compare Source

  • types: fix some strange t function overloads fixes 1882

v22.4.3

Compare Source

  • types: t function overloads fix (open issue is still calling t with optional options argument)

v22.4.2

Compare Source

  • types: t function overloads for call with ns option in combination with objects

v22.4.1

Compare Source

  • fix: function t() passed options alteration 1947

v22.4.0

Compare Source

  • types: more overloads for t function

v22.3.0

Compare Source

  • offer possibility to define a language detector's detect function as promise

v22.2.0

Compare Source

  • types: extend the init method with a generic parameter for backend options 1878, 105, 34

v22.1.5

Compare Source

  • types: ability to pass ns as option instead of prefix i.e. i18next.t('bar', { ns: 'alternate' });

v22.1.4

Compare Source

  • dir function executable also without initialization

v22.1.3

Compare Source

  • named export for dir function

v22.1.2

Compare Source

  • revert: guess if languageDetector is async if no info provided

v22.1.1

Compare Source

  • guess if languageDetector is async if no info provided

v22.1.0

Compare Source

  • extend backend connector to accept also backends with promise / async-await signature

v22.0.8

Compare Source

  • fix options for continuous nesting 1876

v22.0.7

Compare Source

  • Expose some types 1871

v22.0.6

Compare Source

  • fix CallbackError type

v22.0.5

Compare Source

  • Change DefaultTFuncReturn to return null if returnNull typeOption is true 1865

v22.0.4

Compare Source

  • Add type for Formatter.addCached 1862

v22.0.3

Compare Source

  • Make getFixedT type-safe 1860
  • types: Omit object from t function 1858

v22.0.2

Compare Source

  • [TypeScript] Add default value for TDefaultResult 1853

v22.0.1

Compare Source

  • Fix normalize type options 1850

v22.0.0

Compare Source

  • 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

Compare Source

  • fix localstorage check to try to address 297 300

v8.0.3

Compare Source

  • change localstorage check to try to address 297

v8.0.2

Compare Source

  • fix for when passed services are null, should address 296

v8.0.1

Compare Source

  • some environments, throws when accessing document.cookie

v8.0.0

Compare Source

  • chore: set browsers target to defaults 286
  • perf: use object deconstruction, optional chaining and hot path optimisations 287

v7.2.2

Compare Source

v7.2.1

Compare Source

  • fix: align addDetector impementation to type definition 282

v7.2.0

Compare Source

  • fix: separate cjs and mjs typings

v7.1.0

Compare Source

  • introduce convertDetectedLanguage option

v7.0.2

Compare Source

  • simplify usage without i18next

v7.0.1

Compare Source

  • try to force esm moduel type for esm build 269

v7.0.0

Compare Source

  • typescript fix for i18next v22
i18next/i18next-http-backend (i18next-http-backend)

v3.0.2

Compare Source

  • optimize fetchApi selector

v3.0.1

Compare Source

  • try to get rid of top-level await

v3.0.0

Compare Source

  • 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/cjs export or stay at v2.6.2 or v2.7.1

v2.7.3

Compare Source

  • optimize fetchApi selector [backported]

v2.7.2

Compare Source

v2.7.1

Compare Source

  • same as 2.6.2

v2.7.0

Compare Source

  • deprecated, same as v3.0.0

v2.6.2

Compare Source

  • improve network error detection across browsers 152

v2.6.1

Compare Source

  • optimize "Failed to fetch" retry case 147

v2.6.0

Compare Source

  • fix "Failed to fetch" retry case 147

v2.5.2

Compare Source

  • dereference timers in node.js so that the process may exit when finished 139

v2.5.1

Compare Source

  • fix: remove typeof window.document === 'undefined' check which deopt bundle optimization 137

v2.5.0

Compare Source

  • added fetch interceptor to the Backend Options 133

v2.4.3

Compare Source

  • fix: overriding options

v2.4.2

Compare Source

  • fix: mjs typings export

v2.4.1

Compare Source

  • fix: separate cjs and mjs typings

v2.4.0

Compare Source

v2.3.1

Compare Source

  • fix for browser usage

v2.3.0

Compare Source

  • update deps

v2.2.2

Compare Source

  • hack for debug mode in react-native

v2.2.1

Compare Source

  • fix for types moduleResolution "node16"

v2.2.0

Compare Source

  • parseLoadPayload for POST request 110

v2.1.1

Compare Source

  • regression fix for saveMissing signature 1890

v2.1.0

Compare Source

  • typescript: export the backend options type 105

v2.0.2

Compare Source

  • typescript: static type prop

v2.0.1

Compare Source

v2.0.0

Compare Source

  • typescript: update for major i18next version
i18next/react-i18next (react-i18next)

v15.4.1

Compare Source

fix: unique key warning on componentized element 1835

v15.4.0

Compare Source

feat: add meta with codes on warnings to allow conditional logging 1826

v15.3.0

Compare Source

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

Compare Source

This version may be breaking if you still use React < v18 with TypeScript. For JS users this version is equal to v15.1.4

  • fix: Global JSX namespace is deprecated 1823 with 1822

v15.1.4

Compare Source

  • Fix: warning each child should have a unique key 1820

v15.1.3

Compare Source

  • fix: Self-closing REACT components in translation strings should not attempt to replace the component's children 1815 1816

v15.1.2

Compare Source

  • fix: Attempted to assign to readonly property 1813

v15.1.1

Compare Source

  • fix: Not all namespaces are loaded when passing the lng option to useTranslate 1809

v15.1.0

Compare Source

  • fix: <Trans /> warns 'Each child in a list should have a unique "key" prop.' for react 19 1806

v15.0.3

Compare Source

v15.0.2

Compare Source

  • try to fix Trans handling with alwaysFormat set to true 1801

v15.0.1

Compare Source

  • revert arrow function in class property to address this

v15.0.0

Compare Source

  • 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

Compare Source

  • 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

Compare Source

  • bring back internal interpolationOverride handling for Trans component (if there are childrens), fixes 1754

v14.1.1

Compare Source

  • do not modify passed tOptions context property to address 1745

v14.1.0

Compare Source

  • types(Trans): add typechecking on context prop 1732 (might break if using "internal" Trans or TransProps)

v14.0.8

Compare Source

  • fix: issue 1728 when useSuspense is false and default ns 1731

v14.0.7

Compare Source

  • try to get rid of internal interpolationOverride handling for Trans component, fixes 1729

v14.0.6

Compare Source

  • align context handling of Trans component with t function, fixes 1729

v14.0.5

Compare Source

  • Fix 1691 for strict mode, by preserving change language binding 1720

v14.0.4

Compare Source

  • fix interpolation of the count prop 1719

v14.0.3

Compare Source

  • revert changes done in v14.0.2 since it breaks normal language change render updates

v14.0.2

Compare Source

  • Fix/bug 1691 make returned t function identical upon second effect run in strict mode 1716

v14.0.1

Compare Source

  • types: fix typo in CustomInstanceExtensions 1713

v14.0.0

Compare Source

  • types: reportNamespaces is now optional, should fix 1693

v13.5.0

Compare Source

  • self-closing components in translation strings should not attempt to replace the component's children 1695

v13.4.1

Compare Source

  • types: use CustomInstanceExtenstions to extend reportNamespaces

v13.4.0

Compare Source

  • fix: separate cjs and mjs typings

v13.3.2

Compare Source

  • types: fix consider importing '*.js'

v13.3.1

Compare Source

  • optimize defaultVariables feature introduced in last release

v13.3.0

Compare Source

  • Respect defaultVariables in the interpolation options 1685

v13.2.2

Compare Source

  • Fix missing TransWithoutContext type 1672

v13.2.1

Compare Source

  • types: Allow iterable ReactI18NextChildren as children 1669

v13.2.0

Compare Source

  • Don't use defaults prop as default key 1664

v13.1.2

Compare Source

  • postpone usage of newer ES syntax

v13.1.1

Compare Source

  • Render all children regardless of type when using i18nIsDynamicList prop 1661

v13.1.0

Compare Source

  • Fix non-list dynamic content in Trans component 1660

v13.0.3

Compare Source

  • fix unescape is not consistently called for all values 1657

v13.0.2

Compare Source

  • export icu.macro 1652

v13.0.1

Compare Source

  • types: Fix performance issue in Trans component 1646

v13.0.0

Compare Source

  • Update types to support t function redesign 1615
  • requires i18next >= v23.0.1

v12.3.1

Compare Source

  • optimization for optional lng prop for useTranslation, should now prevent missings when lazy loading translations 1637

v12.3.0

Compare Source

  • optional lng prop for useTranslation (helping on server side 1637)

v12.2.2

Compare Source

  • try to fix conditional exports in package.json

v12.2.1

Compare Source

  • type fix: the type of defaultNS in I18nextProvider should support string[] 1633

v12.2.0

Compare Source

  • 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

Compare Source

v12.1.4

Compare Source

  • fix crash in gatsby 1594

v12.1.3

Compare Source

  • fix fallback of t function in Trans component

v12.1.2

Compare Source

  • fix crash in gatsby 1594

v12.1.1

Compare Source

  • fix for node resolution 1589

v12.1.0

Compare Source

  • context-less version of Trans component to be used for environments without react context 1588

v12.0.0

Compare Source

  • Update t function types to rely on types coming from i18next 1501

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports

Loading
Loading