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

@m6web/react-i18n

Package Overview
Dependencies
Maintainers
6
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.6.0 to 1.6.1

es/utils/html.utils.js

19

es/utils/i18n.utils.js

@@ -13,3 +13,3 @@ import _get from 'lodash-es/get';

en: function en(number) {
return number === 0 || number > 1 ? 'other' : 'one';
return number === 1 ? 'one' : 'other';
},

@@ -19,9 +19,2 @@ fr: function fr(number) {

},
hu: function hu(number, general) {
if (!general) {
return 'one';
}
return number > 1 ? 'other' : 'one';
},
hr: function hr(number, general) {

@@ -48,2 +41,12 @@ // General plural

return '';
},
hu: function hu(number, general) {
if (!general) {
return 'one';
}
return number > 1 ? 'other' : 'one';
},
nl: function nl(number) {
return number === 1 ? 'one' : 'other';
}

@@ -50,0 +53,0 @@ };

@@ -26,3 +26,3 @@ 'use strict';

en: function en(number) {
return number === 0 || number > 1 ? 'other' : 'one';
return number === 1 ? 'one' : 'other';
},

@@ -32,9 +32,2 @@ fr: function fr(number) {

},
hu: function hu(number, general) {
if (!general) {
return 'one';
}
return number > 1 ? 'other' : 'one';
},
hr: function hr(number, general) {

@@ -61,2 +54,12 @@ // General plural

return '';
},
hu: function hu(number, general) {
if (!general) {
return 'one';
}
return number > 1 ? 'other' : 'one';
},
nl: function nl(number) {
return number === 1 ? 'one' : 'other';
}

@@ -63,0 +66,0 @@ };

{
"name": "@m6web/react-i18n",
"version": "1.6.0",
"version": "1.6.1",
"description": "Provider and utils for translation in a react app",

@@ -53,3 +53,4 @@ "main": "lib/index.js",

"release": "yarn lint && yarn test && yarn build && yarn version"
}
},
"gitHead": "0c6d7024371ad1cf17f0c3d6f905467c3012c12e"
}

@@ -203,6 +203,7 @@ # React i18n for 6play apps

| -------- | ------- | -------- | -------------- | ------------ | ------------- | ------------ |
| EN | `other` | `one` | `other` | `other` | - | - |
| FR | `one` | `one` | `other` | `other` | - | - |
| EN | `other` | `one` | `other` | `other` | - | - |
| HR | `many` | `one` | `other` | `one` | `few` | `many` |
| HU | `one` | `one` | `other` | `one` | - | - |
| HR | `many` | `one` | `other` | `one` | `few` | `many` |
| NL | `other` | `one` | `other` | `other` | - | - |

@@ -209,0 +210,0 @@ The variable used in translation template string has to be `%(number)d`, and is automatically provided by the translate function.

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