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.9.2 to 1.9.3

es/utils/html.utils.js

19

es/utils/i18n.utils.js

@@ -15,3 +15,3 @@ import _has from 'lodash-es/has';

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

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

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

@@ -50,2 +43,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';
}

@@ -52,0 +55,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.9.2",
"version": "1.9.3",
"description": "Provider and utils for translation in a react app",

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

},
"gitHead": "d4af2194bd9db341492239d0375e3cf4ab0e5738"
"gitHead": "fbd081441924d562f431553433a386e82bf03376"
}

@@ -210,6 +210,7 @@ # @m6web/react-i18n

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

@@ -216,0 +217,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