unstale

npm / i18next

i18next

What changed in i18next 20 to 27, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.

86 breaking4 security14 deprecations31 new APIs and options7 performance19 behavior and defaults4 tooling69 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

i18next 2743 changes

Breaking changes 27

  • With overwrite, numbers and booleans are replaced too, and numbers, booleans, or null can replace a nested object.

    27.2.0release notes

  • Errors thrown by load callbacks or listeners now reach the app instead of being handed to the backend connector as failed reads.

    27.2.0release notes

  • When the selected plural form is missing, t() uses the same language’s _other form before trying the next fallback language; forms filled from _other are no longer reported as missing.

    27.1.0release notesdocs

  • Plural forms filled in from _other are no longer reported as missing by saveMissing, missingKeyHandler, or exists().

    27.1.0docs

  • The dotted language resource-store call form is removed; pass language, namespace, and key as separate arguments.

    27.0.0release notes

  • The dotted language-and-namespace form is removed; pass language and namespace separately. The dotted form throws a TypeError.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Language codes without a region now get canonical casing, so 'EN' becomes 'en'. Set cleanCode to false to preserve their original casing.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Removed from the types because it had no effect since v24.

    27.0.0release notes

  • Options are merged into defaults immediately without initializing the instance; pre-init options are available, getFixedT no longer throws, and t() returns '' until init().

    26.0.0, 27.0.0upgrade guiderelease notes

  • In v27, fallbackLng defaults to false instead of using the implicit 'dev' fallback; set the source language explicitly.

    26.0.0, 27.0.0upgrade guiderelease notes

  • The dotted-key form is removed; pass language, namespace, and key as separate arguments.

    26.0.0, 27.0.0upgrade guiderelease notes

  • The root CommonJS shim is removed because the exports map made it unreachable.

    27.0.0release notes

  • The default escaping no longer escapes '/'; &, <, >, double quote, and apostrophe remain escaped.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Removed; use literal delimiters through nestingPrefix instead.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Removed; use literal delimiters through nestingSuffix instead.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Removed; use literal delimiters through prefix instead.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Removed; use literal delimiters through suffix instead.

    26.0.0, 27.0.0upgrade guiderelease notes

  • With keySeparator: false, lookups use flat keys without splitting at false, selector paths join with dots, and types reflect flat keys and prefixes.

    27.0.0release notes

  • Logger state is now per instance rather than shared; an instance created with createInstance does not inherit the default instance's registrations.

    26.0.0, 27.0.0upgrade guiderelease notes

  • The minimum supported version is Node.js 22.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Plugin option types are no longer provided; locizeLastUsed is declared by locize-lastused, and react options are checked when react-i18next is in the program.

    27.0.0release notes

  • Post-processors are now per instance. Register them on each instance; clones keep their parent's processors, including later registrations.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Remains importable from i18next but is empty; react-i18next fills it in so react options are checked when react-i18next is in the program.

    27.0.0release notes

  • In v27, returnEmptyString defaults to false, so an empty string falls back like a missing key.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Without returnObjects, an object or array translation is handled like a missing key and t() returns the default value or key; returnedObjectHandler still controls the result when set.

    27.0.0release notes

  • Defaults to true for typed resources, requiring t() calls to provide interpolation variables; set it to false to keep the v26 types.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Plural keys no longer disable variable checks in calls or wrappers, including calls with options; plural and ordinal forms are checked for required count values.

    27.0.0release notes

Deprecations 1

Performance 3

  • Only the most recent 1000 failed loads are kept; an older failed load is read again when needed, preventing unbounded memory growth.

    27.1.2release notes

  • t() skips interpolation and nesting regexp scans when the text has no interpolation or nesting prefix, improving performance without changing output.

    27.1.1release notes

  • Each cached format keeps at most 1000 formatters, dropping the oldest when full, preventing unbounded memory growth without changing output.

    27.0.1release notes

Behavior and default changes 2

  • When a load callback throws, other callbacks waiting for the same namespaces still run and the loaded event is emitted before the error is thrown.

    27.2.0release notes

  • In debug mode, an unregistered post-process name on the instance logs a warning.

    26.0.0, 27.0.0upgrade guiderelease notes

Fixes and other changes 10

  • A variable passed as undefined now renders as an empty string in a formatted placeholder, matching the behavior of an unformatted placeholder.

    27.2.1release notes

  • With keySeparator: false, a namespace separator inside the key after the namespace is kept, allowing flat keys such as errors:required to be looked up correctly.

    27.2.0release notes

  • once() listeners are removed before they run, so off() can remove them and reentrant events or exceptions do not cause them to run more than once.

    27.1.5release notes

  • Selector results for JSON arrays that mix arrays with objects or strings keep the inner arrays as arrays.

    27.1.4release notes

  • With enableSelector, assigning a t function to a wider TFunction type no longer fails with TS2590 when namespaces have about 600 top-level keys.

    27.1.4release notes

  • With an object fallbackLng, language codes matching Object.prototype properties now get the default fallback instead of causing fallbackCodes.forEach to throw.

    27.1.3release notes

  • Language codes matching inherited object properties now load like any other unknown language, preventing a backend load from throwing and terminating a Node.js server process.

    27.1.3release notes

  • Now keeps every value, including numbers, booleans, and nested objects, instead of silently dropping values other than strings and arrays.

    26.0.0, 27.0.0upgrade guiderelease notes

  • Excludes keys whose ordinal forms require count, while retaining keys that have their own value alongside plural forms.

    27.0.0release notes

  • A namespaced plural key without count now returns string rather than never, matching the behavior of t('item').

    27.0.0release notes

i18next 26125 changes

Breaking changes 43

  • Without languages, reloads current languages and every language the backend loaded or tried to load, including for clones, and retries bundles that failed to load.

    26.7.1docs

  • Hydrates resources rendered on the server into the store and changes to the server's language, each only the first time.

    26.7.0release notesdocs

  • Setting nsSeparator to false now also removes the ns:key form from TypeScript key types.

    26.7.0docs

  • Without languages, reloadResources now reloads nothing instead of throwing; backends that reload preload must pass its languages.

    26.7.0release notes

  • Lets a backend reload its bundles through i18next, with retries and the loaded event, instead of calling backend connector methods itself.

    26.7.0release notes

  • Calling t() before init() now returns an empty string, as typed, instead of undefined.

    26.7.0release notes

  • An array of selectors with a plural member now requires count, matching runtime behavior that skips the plural member when count is absent.

    26.6.0release notes

  • An array of selectors with defaultValue now returns the literal values and default value as a union instead of string.

    26.6.0release notes

  • Selector typing with enableSelector: true or 'strict' avoids repeatedly filtering whole namespaces, reducing TypeScript type instantiations; selected values are unchanged, with noted changes to error display and null-only object typing.

    26.5.12release notes

  • Nested false, 0, or '' values are returned instead of falling through to a flat key with the same dotted name; the same fix applies to t.

    26.5.11release notes

  • Language matching no longer selects a supported code merely because it starts with the detected language code; add two-letter codes to supportedLngs or map them with fallbackLng if needed.

    26.5.10release notes

  • Nested interpolation and translation lookups no longer resolve inherited prototype methods or walk through __proto__; these keys are treated as missing, allowing fallback and missing-key handling to apply.

    26.5.9release notes

  • With forkResourceStore: true, clones now copy resources at every level, so nested keys and arrays are isolated from the original and other forks.

    26.5.6release notes

  • With the default true value, placeholders inside values inserted with unescaped interpolation now stay literal, preventing them from pulling another variable from the same t() call into the output. Set it to false to restore the old behavior.

    26.5.5release notes

  • With the default true setting, a placeholder inside an interpolated value stays literal even when the same placeholder appears later in the translation. Results with false are unchanged.

    26.5.4release notes

  • With the selector API, plural keys now require count in the type checker when calls pass an explicit ns, matching runtime lookup behavior.

    26.5.3release notes

  • nest() resolves $t(...) in a single pass, so text kept literal by skipOnVariables is no longer resolved by an outer loop; this also avoids quadratic work on unclosed input.

    26.4.4release notes

  • The package no longer emits this file because it was byte-identical to dist/esm/i18next.js.

    26.0.7release notes

  • The Formatter returns undefined and null values as-is instead of producing NaN when the value is missing.

    26.0.1release notes

  • The dotted-key form is removed; pass language, namespace, key, and value separately. The dotted form throws a TypeError.

    26.0.0upgrade guide

  • v27 canonicalizes codes without a region, changing 'EN' to 'en'.

    26.0.0upgrade guide

  • Clones no longer inherit preload by default, avoiding redundant loading across preloaded languages and namespaces. Passing preload to cloneInstance() retains the old behavior.

    26.0.0release notesupgrade guide

  • Removed from options and CustomTypeOptions; it had no effect since v24.

    26.0.0upgrade guide

  • Without a language, dir() now returns 'ltr' instead of 'rtl'.

    26.0.0release notesdocsupgrade guide

  • The build targets ES2020, with the listed minimum browser versions.

    26.0.0upgrade guide

  • The global suppression state for the console support notice is removed.

    26.0.0release notes

  • The environment variable for suppressing the console support notice is removed.

    26.0.0release notesupgrade guide

  • Custom formatters can be registered through the formatter service as part of the new formatting approach.

    26.0.0release notes

  • The unreachable CommonJS shim at the package root is removed; use require('i18next').

    26.0.0upgrade guide

  • The deprecated compatibility mapping from initImmediate to initAsync is removed; use initAsync instead.

    26.0.0release notes

  • The deprecated option has been removed; use initAsync instead.

    26.0.0upgrade guide

  • The 86 internal helpers whose names start with _ or $ are no longer importable; other types in the declarations remain exported.

    26.0.0upgrade guide

  • The legacy monolithic format function is no longer supported; use the built-in Formatter or a custom Formatter module.

    26.0.0release notesupgrade guide

  • The legacy custom formatting function is no longer supported; migrate custom formatting logic to the Formatter API.

    26.0.0upgrade guide

  • Unsafe language codes from language inputs are refused unless configured in supportedLngs, a non-function fallbackLng, preload, or init resources.

    26.0.0upgrade guide

  • The best match no longer selects a supported language code merely because it starts with the same letters.

    26.0.0upgrade guide

  • The option type is no longer declared by i18next; it is declared by locize-lastused 5.1.0 and later.

    26.0.0upgrade guide

  • A nested 0, false, or empty string wins over a flat dotted key; a nested null falls back to it.

    26.0.0upgrade guide

  • Objects and arrays without returnObjects are handled like missing keys; returnedObjectHandler still controls the returned value when set.

    26.0.0upgrade guide

  • The types treat an empty-string translation as the key when returnEmptyString is false.

    26.0.0upgrade guide

  • The option for controlling the console support notice is removed along with the notice.

    26.0.0release notes

  • The option for showing the console support notice has been removed.

    26.0.0upgrade guide

  • The unused option is removed; the v4 test compatibility layer now defaults to true internally.

    26.0.0release notes

Security 4

  • Warns when escapeValue: false is combined with interpolated variables inside a $t nesting-options block, where quotes in attacker-controlled values can inject additional nesting options.

    26.0.6release notes

  • Strips CR, LF, NUL, and other C0/C1 control characters from string log arguments to prevent log forging through user-controlled values.

    26.0.6release notes

  • Regex-escapes the delimiter to prevent ReDoS from regex metacharacters and avoid breaking the {{- var}} syntax.

    26.0.6release notes

  • Exports a language-code safety check for plugins accepting a language from a request, URL, or storage.

    26.0.0release notesdocsupgrade guide

Deprecations 13

  • Marked deprecated because it has had no effect since v24; it is slated for removal from the types in v27.

    26.7.0release notesdocs

  • Dotted language forms of resource-store calls warn in debug mode and are slated for removal in v27; pass language, namespace, and key separately.

    26.7.0release notes

  • In debug mode, values containing / under the default escape warn that v27 will no longer escape /.

    26.7.0release notes

  • When fallbackLng is unset, requesting the default fallback language dev logs a debug notice; v27 is planned to default fallbackLng to false.

    26.7.0release notes

  • prefixEscaped, suffixEscaped, nestingPrefixEscaped, and nestingSuffixEscaped warn in debug mode and are slated for removal in v27; use the literal delimiters as the unescaped options.

    26.7.0release notes

  • Debug mode warns once per code when an unconfigured language from lng, changeLanguage(), or the detector fails isSafeLanguageCode; v27 is planned to refuse such codes.

    26.7.0release notes

  • Debug mode warns for regionless language codes that v27 will canonicalize differently; cleanCode: true already lower-cases them.

    26.7.0release notes

  • Debug mode warns when init() replaces a logger registered by another instance with use(); v27 will make loggers per instance.

    26.7.0release notes

  • Debug mode warns when an instance runs a post-processor registered only on another instance; v27 will make post-processors per instance.

    26.7.0release notes

  • In debug mode, an object or array hit without returnObjects warns that v27 will return the key instead of the sentence describing the object hit.

    26.7.0release notes

  • Guessing a backend or async detector's calling convention from its parameter count is deprecated and warns in debug mode when unmarked.

    26.0.0release notesdocsupgrade guide

  • With debug enabled in v26.7.0, i18next logs warnings wherever a setup relies on something that changes in v27.

    26.0.0upgrade guide

  • Writing this property from outside still works but is deprecated.

    26.0.0upgrade guide

New APIs and options 20

  • Lets types recognize a custom interpolation.formatSeparator when parsing interpolation formats.

    26.7.0release notesdocs

  • Exports a type for keys accepted by t() without options, excluding strings with variables and plural keys whose forms take count.

    26.7.0release notesdocs

  • Exported intentionally as a public type.

    26.7.0release notes

  • Reload resources through the backend with retries and emit loaded; without arguments, reload everything i18next loaded or tried to load through the backend, including for clones.

    26.7.0docs

  • Add this type option to require t() options for strings with {{variables}}, preventing raw interpolation placeholders from reaching the UI.

    26.6.0docsrelease notes

  • With this option true, non-string values in unescaped placeholders or with escapeValue false are converted to strings instead of throwing.

    26.5.4release notes

  • Overrides the inferred type for an ICU format or MF2 function name, including custom functions.

    26.5.0release notes

  • Opting into ICU or MF2 parsing types t() options from message arguments, reporting missing, misspelled, and wrongly typed arguments, including when options are omitted.

    26.5.0release notes

  • Adds a mergeable augmentation surface for namespace resource types, allowing packages to contribute namespaces independently; same-key, different-literal conflicts are dropped to avoid poisoning t() overload resolution.

    26.3.0release notes

  • Exposes enableSelector on InitOptions so selector settings typecheck without a module augmentation; accepts false, true, 'optimize', or 'strict'.

    26.2.0release notes

  • Adds a CustomTypeOptions flag, defaulting to true, to disable type-level parsing of translation strings for {{variable}} patterns; runtime interpolation is unaffected.

    26.2.0release notes

  • Opt-in strict mode exposes every namespace only under its own key on $, and rewrites a leading selector path segment matching the scope's namespace list as a namespace prefix, including the primary.

    26.1.0release notes

  • A fourth optional fixedOpts argument carries scopeNs so selector paths with a namespace prefix route correctly under useTranslation([nsA, nsB]), without changing the bound resolution namespace.

    26.0.10release notes

  • The TypeScript signature now accepts an optional sixth options parameter, matching the runtime API.

    26.0.3release notes

  • Backends and async language detectors can declare whether they use callbacks or return a promise or value; this avoids relying on Function.length to guess.

    26.0.0release notesupgrade guidedocs

  • Declares variables supplied at runtime by interpolation.defaultVariables; those variables become optional in t() options while retaining their types when passed.

    26.0.0release notesupgrade guidedocs

  • SSR integrations should use hydrate() to put server-rendered resources into the store.

    26.0.0upgrade guide

  • Custom formatters can be registered through the formatter service using the cached registration method.

    26.0.0release notes

  • EventEmitter adds one-time event subscriptions, and the method is also added to the i18n and ResourceStore type interfaces.

    26.0.0release notes

  • Plugin authors should use this API to reload resources instead of calling backendConnector.read() and loaded() themselves.

    26.0.0upgrade guide

Performance 4

  • Type-checking the selector API with context is no longer quadratic in object size; context variants are collected in one pass, avoiding excessive type instantiation and out-of-memory failures.

    26.5.1release notes

  • Type-checking t() calls against large namespaces is no longer quadratic; cached key unions and direct literal-key lookups reduce check time without changing keys, return types, or errors.

    26.5.1release notes

  • Non-empty bundle checks are cached across instances, making later checks O(1). Bundles emptied manually with delete remain counted as having translations; use removeResourceBundle() instead.

    26.4.3release notes

  • Caches hierarchy resolution results per (code, fallbackCode) pair to reduce per-call cost. If other resolution-relevant options change at runtime, call i18next.services.languageUtils.clearCache(); dynamic fallbacks remain uncached.

    26.4.0release notes

Behavior and default changes 7

  • The deprecation warning for language codes without a region now appears only when casing changes; codes such as iw, tl, and eng are not treated as aliases.

    26.7.2release notes

  • With the default skipOnVariables: true, missing interpolation variables are now logged in debug mode once per string and variable.

    26.7.0release notes

  • strictInterpolationChecks will default to true from v27.

    26.7.0docs

  • In debug mode, warns when a second backend, language detector, i18nFormat, or formatter replaces the first one.

    26.7.0release notes

  • Unformatted interpolation values are now typed as string | number; formatted values retain their precise types, and count remains number-only.

    26.0.9release notes

  • ReactOptions remains importable from i18next, while react-i18next supplies its body and enables checking of react options when included in the program.

    26.0.0upgrade guide

  • With the default enabled, a {{placeholder}} inside a value inserted with {{- var}} stays literal.

    26.0.0upgrade guide

Tooling 1

  • The per-call skipInterpolation option is now typed.

    26.7.0release notes

Fixes and other changes 33

  • Retries bundles that failed to load, allowing reloads and backend reloadInterval recovery to restore languages after a startup backend or network outage.

    26.7.1release notes

  • Without languages specified, reloads current languages and every language the backend loaded or tried to load for the instance and its clones, but never requests cimode.

    26.7.1release notes

  • A clone's services.utils is now bound to that clone, while the parent keeps its own, fixing saveMissing namespace checks across clones.

    26.7.0release notes

  • With nsSeparator: false in CustomTypeOptions, key unions no longer contain nsfalsekey-style keys, and keys containing false are no longer split at that text.

    26.7.0release notes

  • off('a b', listener) now removes the listener from both events, matching on('a b', listener).

    26.7.0release notes

  • Its type may return a value, matching runtime behavior where that value is what t() returns.

    26.7.0release notes

  • With forkResourceStore: true, cloneInstance no longer mutates the options object it is given, preventing later clones from silently sharing the parent's resource store and avoiding errors with frozen options.

    26.5.12release notes

  • With a disabled or custom separator, nested interpolation and defaultVariables values of 0, false, or '' are now inserted correctly; nested falsy values also take precedence over flat dotted keys.

    26.5.12release notes

  • Joined arrays now receive the same resolved details as strings, allowing post processors and i18nFormat plugins to access lookup metadata; nested arrays also stop at the recursion guard instead of overflowing the stack.

    26.5.8release notes

  • When the cache key cannot be built because options contain a BigInt or circular object, formatting now proceeds without the cache, including for formatters added with addCached.

    26.5.7release notes

  • On TypeScript 7, failed t calls with missing, misspelled or wrongly typed options again report the relevant option error, matching TypeScript 5 and 6.

    26.5.2release notes

  • With default non-strict key checks, missing or misspelled interpolation variables in an options object now report the missing variable instead of a misleading default-value overload error.

    26.5.0release notes

  • Loads the new namespace for the clone's language and fallbacks instead of every preloaded language.

    26.4.7release notes

  • Formatted fallback language codes already in the hierarchy are no longer added a second time, preventing duplicate language lookups while preserving order.

    26.4.6release notes

  • Checks the resolved language code actually loaded, or waits for the fallback when lng is outside supportedLngs, preventing readiness loops.

    26.4.5release notes

  • Nested values containing $&, $, $' or $$` now stay literal, and non-string values returned by formatters in the nesting chain are stringified.

    26.4.2release notes

  • The selector-form keyPrefix overload is now available when enableSelector is 'strict', preserving the returned t function's keyPrefix scope.

    26.4.1release notes

  • The optional TypeScript peer dependency range now allows TypeScript 7, avoiding an npm install peer conflict.

    26.3.6release notes

  • The returnDetails path no longer mutates the passed replace object; returned usedParams still includes count.

    26.3.5release notes

  • With skipOnVariables: true and escapeValue: true, placeholders inside interpolated values containing escapable characters now stay literal.

    26.3.5release notes

  • Multiline options objects in nested $t() calls are now parsed correctly, so nested lookups receive their options and resolve placeholders.

    26.3.5release notes

  • With deep merging and overwrite enabled, inherited built-in properties are now copied as plain own data instead of being recursed into, preventing shared built-ins from being corrupted.

    26.3.4release notes

  • Selector calls with context and returnObjects: true now preserve the full shape of heterogeneous JSON array elements instead of collapsing their types.

    26.3.3release notes

  • Parenthesised formatter options containing the format separator now work at any position in a chain, preventing inner commas from corrupting output.

    26.3.2release notes

  • Using keyPrefix no longer widens t()'s return type to include values from sibling keys in the namespace.

    26.3.1release notes

  • Restores the pre-v25.10.4 type shape so plain arrow functions can be assigned to ExistsFunction-typed variables; direct i18next.exists calls still narrow keys, and custom wrappers can use typeof i18next.exists for narrowing.

    26.0.8release notes

  • When a plural lookup misses, the debug log shows the plural-resolved key instead of the base key, making the missing plural category clear.

    26.0.7release notes

  • Calling changeLanguage() on a cloneInstance() now updates language state when the target language is not yet loaded, avoiding a race that could skip setLngProps.

    26.0.5release notes

  • Inline formatting options now resolve to their base format type, such as number for currency, instead of falling back to string.

    26.0.4release notes

  • t("key", {} as TOptions) no longer produces a type error when context is unknown, because the context constraint bypasses strict checking.

    26.0.2release notes

  • The Formatter no longer crashes when alwaysFormat is true and no format specifier is present.

    26.0.1release notes

  • The generic parameter naming inconsistency between CJS and ESM type definitions is fixed.

    26.0.0release notes

  • The cache moves from module scope to the Translator instance, preventing cross-instance state leakage.

    26.0.0release notes

i18next 2546 changes

Breaking changes 2

  • When a key resolves to plural forms, the selector API now enforces { count: number }.

    25.9.0release notes

  • getCleanedCode now replaces all underscores.

    25.8.14release notes

New APIs and options 9

  • Exports a stable, readable helper type for typing selector function props.

    25.10.9release notes

  • The support notice check also checks the I18NEXT_NO_SUPPORT_NOTICE environment variable.

    25.10.3release notes

  • Allows custom formatters to be typed via CustomTypeOptions.

    25.10.0release notes

  • Supports selector syntax in getFixedT and per-call options.

    25.10.0release notes

  • The selector API now accepts an array of selector functions, analogous to an array of keys.

    25.8.18release notes

  • An option can suppress the support message.

    25.8.2release notes

  • Type definitions were added for the transDefaultProps option in react-i18next.

    25.7.3release notes

  • Exports the InterpolationMap type for use by developers.

    25.6.2release notes

  • Selector functions can be passed to t with enableSelector, while string keys remain first-class and the selector API stays opt-in; the previously announced v26 default and v27 deprecation plans are dropped.

    25.4.0docs

Behavior and default changes 7

  • The support notice is suppressed automatically when NODE_ENV=production.

    25.10.10release notes

  • Selector functions used as keyPrefix now provide full type-safe key narrowing, scoping the returned t function to the prefix subtree.

    25.10.5release notes

  • The i18nKey prop accepts SelectorKey values, allowing selector keys to be used with Trans.

    25.10.4release notes

  • The selector callback is constrained against resource definitions to catch invalid keys at compile time; optional ns and keyPrefix options support non-default namespace and prefix contexts.

    25.10.2release notes

  • Returns a branded SelectorKey type that t() accepts directly, enabling pre-computed and reusable translation keys.

    25.10.0release notes

  • Always uses getBestMatchFromCodes for string or array language inputs.

    25.0.0release notes

  • Now tries to fall back to a language code with the same script.

    25.0.0release notes

Tooling 3

  • Type definitions now support TypeScript 6.

    25.10.7release notes

  • TypeScript 6 is supported, addressing the cited react-i18next issue.

    25.10.6release notes

  • Interpolation values are automatically typed from built-in format specifiers, such as number for number and Date for datetime.

    25.10.0release notes

Fixes and other changes 25

  • Reordered overloads so Parameters<TFunction> resolves to the general selector signature instead of the branded SelectorKey type.

    25.10.8release notes

  • FilterKeys now excludes base keys with context variants when the provided context matches none of those variants.

    25.10.1release notes

  • In selector mode, preserves non-context, non-plural leaf keys when context is provided, fixing incorrect type narrowing with returnObjects: true.

    25.10.0release notes

  • String unions with invalid members are now correctly detected as type errors when used as the context option.

    25.9.0release notes

  • The selector now resolves namespaces against the effective ns rather than the global init options.

    25.8.20release notes

  • Fixes namespace resolution for a single-string ns and the primary namespace in an array; only paths starting with a secondary namespace in a multi-namespace array are rewritten.

    25.8.19release notes

  • The TypeScript return type is now this instead of void, enabling proper method chaining.

    25.8.16release notes

  • Fixes the Selector API so it can resolve namespaces.

    25.8.15release notes

  • Reverts the fix for compatibility with moduleResolution bundler.

    25.8.11release notes

  • Guards against null matchedDoubleQuotes while parsing the nesting option.

    25.8.10release notes

  • Escapes nestingOptionsSeparator during nesting option parsing.

    25.8.9release notes

  • Adds the missing toJSON declaration to the types.

    25.8.8release notes

  • Avoids a ReferenceError crash when the Intl API is unavailable.

    25.8.7release notes

  • The return value type definition for getFixedT() was corrected to address an incomplete type definition.

    25.8.6release notes

  • Fixes compatibility with moduleResolution set to bundler.

    25.8.5release notes

  • Fixes crashes when a backend in the backends array has no name property.

    25.8.4release notes

  • Fixes Namespace inference for the selector ns option.

    25.8.1release notes

  • Fixes the fallback for TFunctionReturn.

    25.8.0release notes

  • Fixes interpolation breaking when an instance is cloned.

    25.7.4release notes

  • Fixes invalid overwriting of the default value for overloadTranslationOptionHandler.

    25.7.2release notes

  • A wrong TypeScript signature was removed.

    25.7.1release notes

  • Creates a new interpolator when interpolation options are passed in, addressing issue 2371.

    25.7.0release notes

  • Fixes createInstance not existing on an instance.

    25.6.1release notes

  • For the largest resource sets, the documentation recommends using enableSelector: "optimize".

    25.4.0docs

  • Fixes multiple changeLanguage calls that could produce results in the wrong order.

    25.0.0release notes

i18next 248 changes

Breaking changes 7

  • The initImmediate option is renamed to initAsync.

    24.0.0release notes

  • The Intl API is now mandatory, with no fallback.

    24.0.0release notes

  • Support for old i18next JSON formats is removed; existing v3 translations need conversion to v4 format.

    24.0.0release notes

  • Support for older environments is removed.

    24.0.0release notes

  • The language falls back to dev if a plural rule is not found.

    24.0.0release notes

  • TypeScript v4 support is removed.

    24.0.0release notes

  • Compatibility with the v1 API is removed.

    24.0.0release notes

Behavior and default changes 1

  • TypeScript v5 is now an optional peer dependency.

    24.0.0release notes

i18next 234 changes

Breaking changes 4

  • Support for old browsers was dropped.

    23.0.0release notes

  • Ordinal plural keys are now prefixed with _ordinal to help translators.

    23.0.0release notes

  • The default for returnNull changed to false.

    23.0.0release notes

  • The setDebug function in the logger was removed.

    23.0.0release notes

i18next 221 changes

Behavior and default changes 1

  • The translation function is now fully type-safe for TypeScript users.

    22.0.0release notes

i18next 216 changes

Breaking changes 3

New APIs and options 2

  • Adds the resolvedLanguage property to i18next.

    21.0.0release notes

  • Introduces a new JSON format with ICU plural forms and ordinal support.

    21.0.0release notes

Behavior and default changes 1

  • Natural language keys are detected automatically, so nsSeparator and keySeparator no longer need to be set to false.

    21.0.0release notes

i18next 201 changes

Fixes and other changes 1

  • PluginOptions can now be properly augmented, which matters when extending plugin option types.

    20.0.0release notes