Skip to content

Commit eaf7780

Browse files
committed
release
1 parent e05425e commit eaf7780

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 15.1.0
2+
3+
- fix: `<Trans />` warns 'Each child in a list should have a unique "key" prop.' for react 19 [1806](https://github.com/i18next/next-i18next/pull/1806)
4+
15
### 15.0.3
26

37
- try to fix [unexpected token issue](https://github.com/i18next/next-i18next/issues/2302)

react-i18next.js

+3
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,9 @@
471471
const translation = key ? t(key, combinedTOpts) : defaultValue;
472472
if (components) {
473473
Object.keys(components).forEach(c => {
474+
if (!components[c].key) components[c] = react.cloneElement(components[c], {
475+
key: c
476+
});
474477
const comp = components[c];
475478
if (typeof comp.type === 'function' || !comp.props || !comp.props.children || translation.indexOf(`${c}/>`) < 0 && translation.indexOf(`${c} />`) < 0) return;
476479
function Componentized() {

0 commit comments

Comments
 (0)