Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terra-i18n

Package Overview
Dependencies
Maintainers
6
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-i18n - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

5

CHANGELOG.md

@@ -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 @@ ------------------

2

docs/DEPENDENCIES.md

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc