Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Jul 26, 2018
1 parent 2e2a81c commit 9176e0a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### 7.9.1

- Skip custom html tags in Trans component translation [PR482](https://github.com/i18next/react-i18next/pull/482)

### 7.9.0

- Support defaultNS from I18nextProvider props [PR478](https://github.com/i18next/react-i18next/pull/478)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-i18next",
"version": "7.9.0",
"version": "7.9.1",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
"main": "dist/commonjs/index.js",
"jsnext:main": "dist/es/index.js",
Expand Down
7 changes: 5 additions & 2 deletions react-i18next.js
Expand Up @@ -1061,8 +1061,11 @@ function renderNodes(children, targetString, i18n) {
if (child.dummy) child.children = inner; // needed on preact!
mem.push(React__default.cloneElement(child, _extends({}, child.props, { key: i }), inner));
} else if ((typeof child === 'undefined' ? 'undefined' : _typeof(child)) === 'object' && !isElement) {
var interpolated = i18n.services.interpolator.interpolate(node.children[0].content, child, i18n.language);
mem.push(interpolated);
var content = node.children[0] ? node.children[0].content : null;
if (content) {
var interpolated = i18n.services.interpolator.interpolate(node.children[0].content, child, i18n.language);
mem.push(interpolated);
}
} else {
mem.push(child);
}
Expand Down
2 changes: 1 addition & 1 deletion react-i18next.min.js

Large diffs are not rendered by default.

0 comments on commit 9176e0a

Please sign in to comment.