@m6web/react-i18n
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -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. |
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
45665
20
898
248