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

@m6web/react-i18n

Package Overview
Dependencies
Maintainers
11
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@m6web/react-i18n - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

2

es/components/i18nElement.component.js

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

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