Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Aug 15, 2022
1 parent c06710c commit 6102082
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 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
Expand Down
4 changes: 2 additions & 2 deletions react-i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@

function getChildren(node) {
if (!node) return [];
return node && node.children ? node.children : node.props && node.props.children;
return node.props ? node.props.children : node.children;
}

function hasValidReactChildren(children) {
Expand Down Expand Up @@ -879,7 +879,7 @@
}

isInitial.current = false;
}, [i18n]);
}, [i18n, keyPrefix]);
var ret = [t, i18n, ready];
ret.t = t;
ret.i18n = i18n;
Expand Down
Loading

0 comments on commit 6102082

Please sign in to comment.