@m6web/react-i18n
Advanced tools
Comparing version 1.9.2 to 1.9.3
@@ -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. |
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
51752
22
941
256