Skip to content

Commit

Permalink
rebuild with reodered i18n resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Feb 9, 2018
1 parent 66b564c commit 959270c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
### 7.3.5
- reorder selection of i18n in I18n render prop

### 7.3.4
- more save access to options in general

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-i18next",
"version": "7.3.4",
"version": "7.3.5",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
"main": "dist/commonjs/index.js",
"jsnext:main": "dist/es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion react-i18next.js
Expand Up @@ -441,7 +441,7 @@ var I18n = function (_Component) {

var _this = possibleConstructorReturn(this, (I18n.__proto__ || Object.getPrototypeOf(I18n)).call(this, props, context));

_this.i18n = context.i18n || props.i18n || getI18n();
_this.i18n = props.i18n || context.i18n || getI18n();
_this.namespaces = _this.props.ns || _this.i18n.options && _this.i18n.options.defaultNS;
if (typeof _this.namespaces === 'string') _this.namespaces = [_this.namespaces];

Expand Down
2 changes: 1 addition & 1 deletion react-i18next.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/I18n.js
Expand Up @@ -8,7 +8,7 @@ export default class I18n extends Component {
constructor(props, context) {
super(props, context);

this.i18n = context.i18n || props.i18n || getI18n();
this.i18n = props.i18n || context.i18n || getI18n();
this.namespaces = this.props.ns || (this.i18n.options && this.i18n.options.defaultNS);
if (typeof this.namespaces === 'string') this.namespaces = [this.namespaces];

Expand Down

0 comments on commit 959270c

Please sign in to comment.