### 14.1.0 - types(`Trans`): add typechecking on context prop [1732](https://github.com/i18next/react-i18next/pull/1732) (might break if using "internal" `Trans` or `TransProps`) ### 14.0.8 - fix: issue [1728](https://github.com/i18next/react-i18next/issues/1728) when useSuspense is false and default ns [1731](https://github.com/i18next/react-i18next/pull/1731) ### 14.0.7 - try to get rid of internal interpolationOverride handling for Trans component, fixes [1729](https://github.com/i18next/react-i18next/issues/1729) ### 14.0.6 - align context handling of Trans component with t function, fixes [1729](https://github.com/i18next/react-i18next/issues/1729) ### 14.0.5 - Fix [1691](https://github.com/i18next/react-i18next/issues/1691) for strict mode, by preserving change language binding [1720](https://github.com/i18next/react-i18next/pull/1720) ### 14.0.4 - fix interpolation of the count prop [1719](https://github.com/i18next/react-i18next/issues/1719) ### 14.0.3 - revert changes done in v14.0.2 since it breaks normal language change render updates ### 14.0.2 - Fix/bug [1691](https://github.com/i18next/react-i18next/issues/1691) make returned t function identical upon second effect run in strict mode [1716](https://github.com/i18next/react-i18next/pull/1716) ### 14.0.1 - types: fix typo in `CustomInstanceExtensions` [1713](https://github.com/i18next/react-i18next/pull/1713) ### 14.0.0 - types: reportNamespaces is now optional, should fix [1693](https://github.com/i18next/react-i18next/issues/1693) ### 13.5.0 - self-closing components in translation strings should not attempt to replace the component's children [1695](https://github.com/i18next/react-i18next/issues/1695) ### 13.4.1 - types: use CustomInstanceExtenstions to extend reportNamespaces ### 13.4.0 - fix: separate cjs and mjs typings ### 13.3.2 - types: fix consider importing '\*.js' ### 13.3.1 - optimize defaultVariables feature introduced in last release ### 13.3.0 - Respect defaultVariables in the interpolation options [1685](https://github.com/i18next/react-i18next/issues/1685) ### 13.2.2 - Fix missing TransWithoutContext type [1672](https://github.com/i18next/react-i18next/pull/1672) ### 13.2.1 - types: Allow iterable ReactI18NextChildren as children [1669](https://github.com/i18next/react-i18next/pull/1669) ### 13.2.0 - Don't use defaults prop as default key [1664](https://github.com/i18next/react-i18next/pull/1664) ### 13.1.2 - postpone usage of newer ES syntax ### 13.1.1 - Render all children regardless of type when using i18nIsDynamicList prop [1661](https://github.com/i18next/react-i18next/pull/1661) ### 13.1.0 - Fix non-list dynamic content in Trans component [1660](https://github.com/i18next/react-i18next/pull/1660) ### 13.0.3 - fix unescape is not consistently called for all values [1657](https://github.com/i18next/react-i18next/issues/1657) ### 13.0.2 - export icu.macro [1652](https://github.com/i18next/react-i18next/issues/1652) ### 13.0.1 - types: Fix performance issue in Trans component [1646](https://github.com/i18next/react-i18next/pull/1646) ### 13.0.0 - Update types to support t function redesign [1615](https://github.com/i18next/react-i18next/pull/1615) - requires i18next >= v23.0.1 ### 12.3.1 - optimization for optional lng prop for useTranslation, should now prevent missings when lazy loading translations [1637](https://github.com/i18next/react-i18next/issues/1637) ### 12.3.0 - optional lng prop for useTranslation (helping on server side [1637](https://github.com/i18next/react-i18next/issues/1637)) ### 12.2.2 - try to fix conditional exports in package.json ### 12.2.1 - type fix: the type of defaultNS in I18nextProvider should support string[] [1633](https://github.com/i18next/react-i18next/pull/1633) ### 12.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](https://github.com/i18next/react-i18next/issues/1618) ### 12.1.5 - fix react merged types [1606](https://github.com/i18next/react-i18next/pull/1606) originally introduced with #1531 to address #1506 ### 12.1.4 - fix crash in gatsby [1594](https://github.com/i18next/react-i18next/issues/1594) ### 12.1.3 - fix fallback of t function in Trans component ### 12.1.2 - fix crash in gatsby [1594](https://github.com/i18next/react-i18next/issues/1594) ### 12.1.1 - fix for node resolution [1589](https://github.com/i18next/react-i18next/issues/1589) ### 12.1.0 - context-less version of Trans component to be used for environments without react context [1588](https://github.com/i18next/react-i18next/pull/1588) ### 12.0.0 - Update t function types to rely on types coming from i18next [1501](https://github.com/i18next/react-i18next/pull/1501) ### 11.18.6 - types: nsMode [1554](https://github.com/i18next/react-i18next/issues/1554) ### 11.18.5 - support unescaping forward slash [1548](https://github.com/i18next/react-i18next/pull/1548) ### 11.18.4 - fix: reset t when keyPrefix is updated [1544](https://github.com/i18next/react-i18next/pull/1544) ### 11.18.3 - types: bindI18n option for UseTranslationOptions ### 11.18.2 - more html entities to unescape by default [1538](https://github.com/i18next/react-i18next/pull/1538) ### 11.18.1 - types: allow iterable with objects as children [1531](https://github.com/i18next/react-i18next/pull/1531) ### 11.18.0 - ability to add custom unescape function [1529](https://github.com/i18next/react-i18next/pull/1529) ### 11.17.4 - fix: UMD build [1527](https://github.com/i18next/react-i18next/issues/1527) ### 11.17.3 - style: explicit React imports [1525](https://github.com/i18next/react-i18next/pull/1525) ### 11.17.2 - reset t if ns changes in useTranslation [1518](https://github.com/i18next/react-i18next/pull/1518) ### 11.17.1 - Stricter typescript type for Trans components prop [1516](https://github.com/i18next/react-i18next/pull/1516) ### 11.17.0 - Add support for keyPrefix in withTranslation [1512](https://github.com/i18next/react-i18next/pull/1512) ### 11.16.11 - types: fix Translation component types regression [1511](https://github.com/i18next/react-i18next/pull/1511) ### 11.16.10 - types: translation component types [1509](https://github.com/i18next/react-i18next/pull/1509) ### 11.16.9 - types: fix missing generic type for HTMLAttributes [1499](https://github.com/i18next/react-i18next/pull/1499) ### 11.16.8 - types: fix Trans component to support react 18 types, by introducing allowObjectInHTMLChildren TS option [1492](https://github.com/i18next/react-i18next/pull/1492) ### 11.16.7 - types: Added objects explicitly to Trans children [1486](https://github.com/i18next/react-i18next/pull/1486) ### 11.16.6 - fix: warn just once 'i18n.languages were undefined or empty' and return true, like before ### 11.16.5 - types: ReactNode should be prefixed with React [1481](https://github.com/i18next/react-i18next/pull/1481) ### 11.16.4 - fix type 'TFunctionResult' is not assignable to type 'ReactNode' on React 18 [1480](https://github.com/i18next/react-i18next/pull/1480) ### 11.16.3 - types: children fix for React v18 [1478](https://github.com/i18next/react-i18next/pull/1478) - fix: apply [same fix](https://github.com/i18next/i18next/commit/0dcf7fdede9d58e16f82179b41b09f10eda5aeea) for local hasLoadedNamespace function ### 11.16.2 - update macro to wrap defaults in brackets when necessary [1472](https://github.com/i18next/react-i18next/pull/1472) ### 11.16.1 - types: for context prop of Trans component ### 11.16.0 - fix: transSupportBasicHtmlNodes for keepArray check [1470](https://github.com/i18next/react-i18next/pull/1470) - feat: add context prop to Trans component [1464](https://github.com/i18next/react-i18next/issues/1464) ### 11.15.7 - types: add nsSeparator to CustomTypeOptions [1471](https://github.com/i18next/react-i18next/pull/1471) ### 11.15.6 - fix error for typescript 4.6 [1453](https://github.com/i18next/react-i18next/pull/1463) ### 11.15.5 - types: fix never return type when using plurals [1453](https://github.com/i18next/react-i18next/pull/1453) ### 11.15.4 - types: add values field to Plural component in macros [1446](https://github.com/i18next/react-i18next/pull/1446) ### 11.15.3 - types: fix for issue introduced with type extension for react-native [1436](https://github.com/i18next/react-i18next/pull/1436) ### 11.15.2 - types: TypeScript interface for the Trans component does now accept react-native props [1418](https://github.com/i18next/react-i18next/pull/1418) ### 11.15.1 - add missing types for shouldUnescape and useTranslation [1429](https://github.com/i18next/react-i18next/pull/1429) ### 11.15.0 - option to unescape html in Trans [1426](https://github.com/i18next/react-i18next/pull/1426) ### 11.14.3 - types: remove undefined from conditional type [1410](https://github.com/i18next/react-i18next/pull/1410) ### 11.14.2 - Add type-safe support to deep keyPrefix [1403](https://github.com/i18next/react-i18next/pull/1403) ### 11.14.1 - Rollback [1402](https://github.com/i18next/react-i18next/pull/1402): Remove generics from Trans component to suppress warning issue [1400](https://github.com/i18next/react-i18next/pull/1400) ### 11.14.0 - Remove generics from Trans component to suppress warning issue [1400](https://github.com/i18next/react-i18next/pull/1400) - Add type support to plurals [1399](https://github.com/i18next/react-i18next/pull/1399) ### 11.13.0 - feat(types): add type-safe support to keyPrefix option [1390](https://github.com/i18next/react-i18next/pull/1390) - feat(types): allow key separator augmentation [1367](https://github.com/i18next/react-i18next/pull/1367) ### 11.12.0 - feature: add key prefix support to useTranslation hook [1371](https://github.com/i18next/react-i18next/pull/1371) ### 11.11.4 - typescript: add returnNull and returnEptyString options to TypeOptions interface [1341](https://github.com/i18next/react-i18next/pull/1341) ### 11.11.3 - Trans: parse first, then interpolate [1345](https://github.com/i18next/react-i18next/pull/1345) ### 11.11.2 - feat(typings): support readonly namespaces in TFuncKey [1340](https://github.com/i18next/react-i18next/pull/1340) ### 11.11.1 - feat(types): allow readonly namespaces in useTranslation [1339](https://github.com/i18next/react-i18next/pull/1339) ### 11.11.0 - introduce `CustomTypeOptions` type definition and deprecate the `Resources` type definition [1328](https://github.com/i18next/react-i18next/pull/1328) ### 11.10.0 - add transWrapTextNodes option [1324](https://github.com/i18next/react-i18next/pull/1324) to prevent a well-known Google Translate issue with React apps [1323](https://github.com/i18next/react-i18next/issues/1323), thanks to [feross](https://github.com/feross) ### 11.9.0 - typescript/icu macro: add new syntax for interpolation of complex types [1316](https://github.com/i18next/react-i18next/pull/1316) -> [docs for template usage](https://react.i18next.com/misc/using-with-icu-format#tagged-template-for-icu) ### 11.8.15 - ignore null children in Trans component [1307](https://github.com/i18next/react-i18next/issues/1307) ### 11.8.14 - update html-parse-stringify to fix uppercase elements in Trans component [1304](https://github.com/i18next/react-i18next/issues/1304) ### 11.8.13 - Replace html-parse-stringify2 with html-parse-stringify [1283](https://github.com/i18next/react-i18next/pull/1283) to prevent [CVE-2021-23346](https://github.com/i18next/react-i18next/issues/1275) ### 11.8.12 - refactor: remove unneeded object [1286](https://github.com/i18next/react-i18next/pull/1286) ### 11.8.11 - typescript: Bug fixes [1284](https://github.com/i18next/react-i18next/pull/1284) ### 11.8.10 - typescript: Move type definition files [1276](https://github.com/i18next/react-i18next/pull/1276) ### 11.8.9 - Fix allow to replace i18n in provider with useTranslation hook [1273](https://github.com/i18next/react-i18next/pull/1273) ### 11.8.8 - typescript: Allow `TFuncKey` to be used without specifying the namespace, in the same way TFunction and useTranslation work [1262](https://github.com/i18next/react-i18next/pull/1262) ### 11.8.7 - warning for old wait usage ### 11.8.6 - typescript: Updated TS definitions (adding useSuspense option in TranslationProps) [1247](https://github.com/i18next/react-i18next/pull/1247) ### 11.8.5 - typescript: fix: Inference for specific keys ts 4.1 [1230](https://github.com/i18next/react-i18next/pull/1230) ### 11.8.4 - typescript: Add workaround to suppress infinite instantiation warning [1227](https://github.com/i18next/react-i18next/pull/1227) - typescript: withTranslation() typing fix for defaultProps [1226](https://github.com/i18next/react-i18next/pull/1226) - typescript: Accept const components prop for Trans [1224](https://github.com/i18next/react-i18next/pull/1224) ### 11.8.3 - Fix: Return type inference for t function (typescript 4.1) [1221](https://github.com/i18next/react-i18next/pull/1221) ### 11.8.2 - fix: type definitions for typescript 4.1 [1220](https://github.com/i18next/react-i18next/pull/1220) ### 11.8.1 - fix: typescript definitions for t function without namespaces [1214](https://github.com/i18next/react-i18next/pull/1214) ### 11.8.0 - typescript: Make the translation function fully type-safe [1193](https://github.com/i18next/react-i18next/pull/1193) - trans should work with misleading overloaded empty elements in components [1206](https://github.com/i18next/react-i18next/pull/1206) ### 11.7.4 - fixes passing interpolations options via Trans components tOptions prop [1204](https://github.com/i18next/react-i18next/pull/1204) ### 11.7.3 - Avoid redundant re-rendering in I18nextProvider [1174](https://github.com/i18next/react-i18next/pull/1174) ### 11.7.2 - Avoid setState while react is rendering [1165](https://github.com/i18next/react-i18next/pull/1165) ### 11.7.1 - typescript: fix: typescript definition of context object [1160](https://github.com/i18next/react-i18next/pull/1160) ### 11.7.0 - Trans interpolating self-closing tags in components prop(object) [1140](https://github.com/i18next/react-i18next/pull/1140) ### 11.6.0 - Trans allow components props to be an object containing named interpolation elements ### 11.5.1 - providing filename when running babel.parse in icu.macro [1133](https://github.com/i18next/react-i18next/pull/1133) ### 11.5.0 - Trans: merge option in mapAST [1120](https://github.com/i18next/react-i18next/pull/1120) ### 11.4.0 - Add sideEffects false to package json to allow tree shaking [1097](https://github.com/i18next/react-i18next/pull/1097) ### 11.3.5 - fix returning defaultValue for Trans component [1092](https://github.com/i18next/react-i18next/pull/1092) ### 11.3.4 - [useTranslation] Avoid setting the new `t` function if the component is unmounted. (1051)[https://github.com/i18next/react-i18next/pull/1051] ### 11.3.3 - fixes copying ns in useSSR ### 11.3.2 - typescript: Add optional defaultN [1050](https://github.com/i18next/react-i18next/pull/1050) ### 11.3.1 - typescript: Translation component's ready parameter is missing in TypeScript definition [1044](https://github.com/i18next/react-i18next/pull/1044) - change hook condition in Trans to equal useTranslations implementation ### 11.3.0 - useSSR: add namespaces to init options options.ns [1031](https://github.com/i18next/react-i18next/issues/1031) - typescript: Fix the type of the components props of Trans [1036](https://github.com/i18next/react-i18next/pull/1036) ### 11.2.7 - typescript: Allow ComponentType for Trans' `parent` type [1021](https://github.com/i18next/react-i18next/pull/1021) ### 11.2.6 - typescript: Allow html props on Trans, fix `parent` prop type [1019](https://github.com/i18next/react-i18next/pull/1019) ### 11.2.5 - handle array fallback on wrongly configured app ;) [1010](https://github.com/i18next/react-i18next/pull/1010) ### 11.2.4 - typescript: Extend withTranslation tests to include optional props [1009](https://github.com/i18next/react-i18next/pull/1009) ### 11.2.3 - Store should be initialized after useSSR [1008](https://github.com/i18next/react-i18next/pull/1008) ### 11.2.2 - Only pass forwardedRef to children if options.withRef is false [999](https://github.com/i18next/react-i18next/pull/999) ### 11.2.1 - remove used jsx in withTranslation to avoid issues while compiling [994](https://github.com/i18next/react-i18next/pull/994) ### 11.2.0 - withTranslation allow not only passing a ref with option withRef but also passing a forwardedRef from outside as props (before forwardedRef was only added to wrapped component if the withRef option was set) [992](https://github.com/i18next/react-i18next/pull/992) ### 11.1.0 - Update `rollup.config.js` for IE11 Transpilations [988](https://github.com/i18next/react-i18next/pull/988) ### 11.0.1 - typescript: Use updated ts export default from i18next [984](https://github.com/i18next/react-i18next/pull/984) ### 11.0.0 - **Breaking** based on i18next changes made in [v18.0.0](https://github.com/i18next/i18next/blob/master/CHANGELOG.md#1800) changing the language should not trigger a Suspense anylonger. The state will be ready and `t` bound to the previous language until `languageChanged` get triggered -> this results in a nicer experience for users (no flickering Suspense while changing the language). Based on issue "Suspence is fired during lang change when useTranslation called in between" [975](https://github.com/i18next/react-i18next/issues/975) - the default bindI18n is now `languageChanged` and `languageChanging` was removed from that default - Adding `languageChanging` to bindI18n will bring back old behaviour where a language change will trigger a Suspense / ready: false while loading those new translations - You can now override the defaults in i18next.options.react for `bindI18n`, `bindI18nStore` and `useSuspense` in the hook by `useTranslation(ns, { bindI18n, bindI18nStore, useSuspense})` or in the HOC by passing those as props. ### 10.13.2 - typescript: Add t function to TransProps types [969](https://github.com/i18next/react-i18next/pull/969) - lint: Fix linter errors [966](https://github.com/i18next/react-i18next/pull/966) ### 10.13.1 - avoid conditional hook call in edge case (was only issue in wrong setup useContext outside I18nextProvider) [951](https://github.com/i18next/react-i18next/pull/951) ### 10.13.0 - also use count from `values` object passed to Trans if passed - else use the one on props [947](https://github.com/i18next/react-i18next/pull/947) ### 10.12.5 - typescript: Update types for reportNamespaces [945](https://github.com/i18next/react-i18next/pull/945) - typescript: Improve withSSR type definition [943](https://github.com/i18next/react-i18next/pull/943) ### 10.12.4 - ICU: Fixes macro to support count prop and expressions better [939](https://github.com/i18next/react-i18next/pull/939) ### 10.12.3 - avoid conditional hook call in edge case (wrong setup) [935](https://github.com/i18next/react-i18next/pull/935) ### 10.12.2 - Trans: do not replace html tags in translation strings that are not in the transKeepBasicHtmlNodesFor array [919](https://github.com/i18next/react-i18next/issues/919) ### 10.12.1 - Set ready flag to false when i18n instance has not been initialised [918](https://github.com/i18next/react-i18next/pull/918) ### 10.12.0 - fix / extend icu.macro: ICU: Trans macro will parse defaults as alternate to children [917](https://github.com/i18next/react-i18next/pull/917) ### 10.11.5 - typescript: fix types for use() [912](https://github.com/i18next/react-i18next/pull/912) ### 10.11.4 - assert edge case trans component get set a key - assert context get destructed of empty object if context gets used falsely on a component got pulled out of main tree from react-portal or similar ### 10.11.3 - only apply initial values in useSSR, withSSR on i18next instances not being a clone (eg. created by express middleware on server) ==> don't apply on serverside ### 10.11.2 - Reload translations whenever namespaces passed to useTranslation() change [878](https://github.com/i18next/react-i18next/pull/878) ### 10.11.1 - fixes a regression in Trans component taking namespace from passed t function [867](https://github.com/i18next/react-i18next/issues/867#issuecomment-502395958) ### 10.11.0 - Restore support passing the defaultNS via I18nextProvider prop [860](https://github.com/i18next/react-i18next/pull/860) ### 10.10.0 - HOC: expose wrapped component as WrappedComponent property [853](https://github.com/i18next/react-i18next/pull/853) ### 10.9.1 - Fix useEffect mount/unmount usage [852](https://github.com/i18next/react-i18next/pull/852) ### 10.9.0 - trigger suspense on languageChanging by add listening to that event too (new in i18next@15.1.0) - if you do not like this behaviour of suspending during languageChange - remove it from bindI18n ### 10.8.1 - expose context [829](https://github.com/i18next/react-i18next/pull/829) ### 10.8.0 - Support taking values for interpolation not only from content but the props count, values too: Replace count prop from in translation string automatically [826](https://github.com/i18next/react-i18next/issues/826) ### 10.7.0 - brings back nsMode=default|fallback [822](https://github.com/i18next/react-i18next/pull/822) - typescript: Add missing type definition for withTranslation options [821](https://github.com/i18next/react-i18next/pull/821) ### 10.6.2 - Fix Trans component ignore default options [818](https://github.com/i18next/react-i18next/pull/818) ### 10.6.1 - useTranslation useEffect also guard against unmounted for bound events...seems unmount and actual call to useEffect cleanup are not in correct order (component is first unmounted and then unbound - should be vice versa) ### 10.6.0 - use forwardRef for withTranslation [802](https://github.com/i18next/react-i18next/pull/802) - fixes Translation reset after component is unmounted with useTranslation [801](https://github.com/i18next/react-i18next/issues/801) ### 10.5.3 - Fix the displayName of HOC components [798](https://github.com/i18next/react-i18next/pull/798) ### 10.5.2 - fixes: transSupportBasicHtmlNodes doesn't work with self-closing Trans [790](https://github.com/i18next/react-i18next/issues/790) ### 10.5.1 - ReferenceError: setImmediate is not defined [787](https://github.com/i18next/react-i18next/issues/787) ### 10.5.0 - Adding support for nested component inside Trans that are a list.map like `` [784](https://github.com/i18next/react-i18next/pull/784) (Adding `