lingui-react
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.3.5"></a> | ||
## [1.3.5](https://github.com/lingui/js-lingui/compare/lingui-react@1.3.4...lingui-react@1.3.5) (2017-11-16) | ||
### Bug Fixes | ||
* Fix react package for react-native ([5ca1752](https://github.com/lingui/js-lingui/commit/5ca1752)) | ||
<a name="1.3.4"></a> | ||
@@ -8,0 +19,0 @@ ## [1.3.4](https://github.com/lingui/js-lingui/compare/lingui-react@1.3.3...lingui-react@1.3.4) (2017-10-25) |
@@ -440,6 +440,9 @@ import { date, number } from 'lingui-formats'; | ||
value: function render() { | ||
// lingui-transform-js transforms also this file in react-native env. | ||
// i18n must be aliased to _i18n to hide i18n.select call from plugin, | ||
// otherwise it throws "undefined is not iterable" obscure error. | ||
var _props = this.props, | ||
className = _props.className, | ||
render = _props.render, | ||
i18n = _props.i18n, | ||
_i18n = _props.i18n, | ||
selectProps = _objectWithoutProperties(_props, ['className', 'render', 'i18n']); | ||
@@ -450,3 +453,3 @@ | ||
render: render, | ||
value: i18n.select(selectProps) | ||
value: _i18n.select(selectProps) | ||
}); | ||
@@ -453,0 +456,0 @@ } |
@@ -447,6 +447,9 @@ 'use strict'; | ||
value: function render() { | ||
// lingui-transform-js transforms also this file in react-native env. | ||
// i18n must be aliased to _i18n to hide i18n.select call from plugin, | ||
// otherwise it throws "undefined is not iterable" obscure error. | ||
var _props = this.props, | ||
className = _props.className, | ||
render = _props.render, | ||
i18n = _props.i18n, | ||
_i18n = _props.i18n, | ||
selectProps = _objectWithoutProperties(_props, ['className', 'render', 'i18n']); | ||
@@ -457,3 +460,3 @@ | ||
render: render, | ||
value: i18n.select(selectProps) | ||
value: _i18n.select(selectProps) | ||
}); | ||
@@ -460,0 +463,0 @@ } |
{ | ||
"name": "lingui-react", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "React components for translations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54251
894