terra-i18n
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -7,2 +7,7 @@ Changelog | ||
1.10.0 - (October 6, 2017) | ||
------------------ | ||
### Changed | ||
* Spread customProps onto div. | ||
1.9.0 - (September 26, 2017) | ||
@@ -9,0 +14,0 @@ ------------------ |
@@ -15,3 +15,3 @@ # Dependency Information | ||
| babel-jest | ^19.0.0 | -- | [Babel](https://github.com/babel/babel) [jest](https://github.com/facebook/jest) plugin | | ||
| terra-props-table | ^1.8.0 | ^15.4.2 | terra-props-table | | ||
| terra-props-table | ^1.9.0 | ^15.4.2 | terra-props-table | | ||
@@ -18,0 +18,0 @@ ## peerDependencies |
@@ -19,2 +19,4 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint-disable react/forbid-prop-types */ | ||
var propTypes = { | ||
@@ -33,12 +35,17 @@ /** | ||
messages: _propTypes2.default.object.isRequired | ||
}; /* eslint-disable react/forbid-prop-types */ | ||
}; | ||
var I18nProvider = function I18nProvider(props) { | ||
var I18nProvider = function I18nProvider(_ref) { | ||
var children = _ref.children, | ||
locale = _ref.locale, | ||
messages = _ref.messages, | ||
customProps = _objectWithoutProperties(_ref, ['children', 'locale', 'messages']); | ||
return _react2.default.createElement( | ||
_reactIntl.IntlProvider, | ||
{ locale: props.locale, key: props.locale, messages: props.messages }, | ||
{ locale: locale, key: locale, messages: messages }, | ||
_react2.default.createElement( | ||
'div', | ||
null, | ||
props.children | ||
customProps, | ||
children | ||
) | ||
@@ -45,0 +52,0 @@ ); |
{ | ||
"name": "terra-i18n", | ||
"main": "lib/I18n.js", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "The terra-i18n component provides the internationalization to the React component. Terra supports the following locales: 'de' 'es' 'en' 'en-US' 'en-GB', 'fi-FI', 'fr', 'pt'. All locales related files are loading on demand.", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
"babel-jest": "^19.0.0", | ||
"terra-props-table": "^1.9.0" | ||
"terra-props-table": "^1.10.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "peerDependencies": { |
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
29817
306