humanize-duration
Advanced tools
Comparing version 3.21.0 to 3.22.0
@@ -0,1 +1,6 @@ | ||
3.22.0 / 2020-02-28 | ||
=================== | ||
* new: Hebrew support | ||
3.21.0 / 2019-09-26 | ||
@@ -2,0 +7,0 @@ =================== |
@@ -168,2 +168,13 @@ // HumanizeDuration.js - https://git.io/j0HgmQ | ||
gr: greek, | ||
he: { | ||
y: function (c) { return c === 1 ? 'שנה' : 'שנים' }, | ||
mo: function (c) { return c === 1 ? 'חודש' : 'חודשים' }, | ||
w: function (c) { return c === 1 ? 'שבוע' : 'שבועות' }, | ||
d: function (c) { return c === 1 ? 'יום' : 'ימים' }, | ||
h: function (c) { return c === 1 ? 'שעה' : 'שעות' }, | ||
m: function (c) { return c === 1 ? 'דקה' : 'דקות' }, | ||
s: function (c) { return c === 1 ? 'שניה' : 'שניות' }, | ||
ms: function (c) { return c === 1 ? 'מילישנייה' : 'מילישניות' }, | ||
decimal: '.' | ||
}, | ||
hr: { | ||
@@ -170,0 +181,0 @@ y: function (c) { |
@@ -31,3 +31,3 @@ { | ||
], | ||
"version": "3.21.0", | ||
"version": "3.22.0", | ||
"description": "Convert millisecond durations to English and many other languages.", | ||
@@ -34,0 +34,0 @@ "homepage": "https://github.com/EvanHahn/HumanizeDuration.js", |
@@ -11,7 +11,14 @@ Humanize Duration | ||
Installation | ||
------------ | ||
This package is available as *humanize-duration* on [npm](https://www.npmjs.com/package/humanize-duration) and Bower. You can also include the JavaScript file in the browser. | ||
```sh | ||
npm install humanize-duration | ||
``` | ||
Basic usage | ||
----------- | ||
This package is available as *humanize-duration* on [npm](https://www.npmjs.com/package/humanize-duration) and Bower. You can also include the JavaScript file in the browser. | ||
With `require` (like in Node or with common build systems): | ||
@@ -244,2 +251,3 @@ | ||
| Greek | `el` | | ||
| Hebrew | `he` | | ||
| Hungarian | `hu` | | ||
@@ -320,2 +328,1 @@ | Icelandic | `is` | | ||
* [aurelia-time](https://github.com/shahabganji/aurelia-time) | ||
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
48599
755
326