Skip to content

Commit e349d9a

Browse files
committed
revert f22d478
1 parent 7350296 commit e349d9a

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 16.3.1
2+
3+
- revert fix: Incosistent behaviour of Trans and t. Trans set defaultValue when t call doesn't set the field. [1876](https://github.com/i18next/react-i18next/issues/1876) [f22d478](https://github.com/i18next/react-i18next/commit/f22d4787187e6cfc54d57f5fbede1c816ea19565)
4+
15
### 16.3.0
26

37
- fix: add i18n wrapper for React Compiler and React.memo compatibility [1884](https://github.com/i18next/react-i18next/pull/1884)

react-i18next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2763,7 +2763,7 @@
27632763
count,
27642764
...values,
27652765
...interpolationOverride,
2766-
defaultValue: defaults || tOptions?.defaultValue,
2766+
defaultValue,
27672767
ns: namespaces
27682768
};
27692769
let translation = key ? t(key, combinedTOpts) : defaultValue;

react-i18next.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/TransWithoutContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ export function Trans({
532532
count,
533533
...values,
534534
...interpolationOverride,
535-
defaultValue: defaults || tOptions?.defaultValue,
535+
defaultValue,
536536
ns: namespaces,
537537
};
538538
let translation = key ? t(key, combinedTOpts) : defaultValue;

0 commit comments

Comments
 (0)