humanize-duration
Advanced tools
Comparing version 3.15.2 to 3.15.3
@@ -0,1 +1,6 @@ | ||
3.15.3 / 2018-09-18 | ||
=================== | ||
* fix: Greek should be `el`, not `gr` | ||
3.15.2 / 2018-09-12 | ||
@@ -2,0 +7,0 @@ =================== |
// HumanizeDuration.js - https://git.io/j0HgmQ | ||
;(function () { | ||
// This has to be defined separately because of a bug: we want to alias | ||
// `gr` and `el` for backwards-compatiblity. In a breaking change, we can | ||
// remove `gr` entirely. | ||
// See https://github.com/EvanHahn/HumanizeDuration.js/issues/143 for more. | ||
var greek = { | ||
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: ',' | ||
} | ||
var languages = { | ||
@@ -73,2 +89,3 @@ ar: { | ||
}, | ||
el: greek, | ||
en: { | ||
@@ -129,13 +146,3 @@ y: function (c) { return 'year' + (c === 1 ? '' : 's') }, | ||
}, | ||
gr: { | ||
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: ',' | ||
}, | ||
gr: greek, | ||
hr: { | ||
@@ -658,3 +665,3 @@ y: function (c) { | ||
for (var language in languages) { | ||
if (languages.hasOwnProperty(language)) { | ||
if (languages.hasOwnProperty(language) && language !== 'gr') { | ||
result.push(language) | ||
@@ -661,0 +668,0 @@ } |
@@ -28,3 +28,3 @@ { | ||
], | ||
"version": "3.15.2", | ||
"version": "3.15.3", | ||
"description": "Convert millisecond durations to English and many other languages.", | ||
@@ -31,0 +31,0 @@ "homepage": "https://github.com/EvanHahn/HumanizeDuration.js", |
@@ -219,3 +219,3 @@ Humanize Duration | ||
| German | `de` | | ||
| Greek | `gr` | | ||
| Greek | `el` | | ||
| Hungarian | `hu` | | ||
@@ -222,0 +222,0 @@ | Icelandic | `is` | |
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
41459
647