@m6web/react-i18n
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -34,3 +34,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
HtmlTrans.propTypes = { | ||
element: PropTypes.string, | ||
element: PropTypes.oneOfType([PropTypes.string, PropTypes.element]), | ||
i18nKey: PropTypes.string.isRequired, | ||
@@ -37,0 +37,0 @@ data: PropTypes.object, |
@@ -49,3 +49,3 @@ 'use strict'; | ||
HtmlTrans.propTypes = { | ||
element: _propTypes2.default.string, | ||
element: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.element]), | ||
i18nKey: _propTypes2.default.string.isRequired, | ||
@@ -52,0 +52,0 @@ data: _propTypes2.default.object, |
{ | ||
"name": "@m6web/react-i18n", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Provider and utils for translation in a react app", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -101,3 +101,3 @@ # React i18n for 6play apps | ||
* **general**: use general plural form if truthy | ||
* **element**: HTML element used to generate ReactElement. (default value: `span`) | ||
* **element**: HTML element, or React element used for rendering. (default value: `span`) | ||
@@ -104,0 +104,0 @@ Note that **number** and **data** can be used together. |
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
46315