humanize-duration
Advanced tools
Comparing version 3.14.0 to 3.15.0
@@ -0,1 +1,7 @@ | ||
3.15.0 / 2018-06-12 | ||
=================== | ||
* new: Croatian support | ||
* new: Lao support | ||
3.14.0 / 2018-03-23 | ||
@@ -2,0 +8,0 @@ =================== |
@@ -1,2 +0,2 @@ | ||
// HumanizeDuration.js - http://git.io/j0HgmQ | ||
// HumanizeDuration.js - https://git.io/j0HgmQ | ||
@@ -137,2 +137,58 @@ ;(function () { | ||
}, | ||
hr: { | ||
y: function (c) { | ||
if (c % 10 === 2 || c % 10 === 3 || c % 10 === 4) { | ||
return 'godine' | ||
} | ||
return 'godina' | ||
}, | ||
mo: function (c) { | ||
if (c === 1) { | ||
return 'mjesec' | ||
} else if (c === 2 || c === 3 || c === 4) { | ||
return 'mjeseca' | ||
} | ||
return 'mjeseci' | ||
}, | ||
w: function (c) { | ||
if (c % 10 === 1 && c !== 11) { | ||
return 'tjedan' | ||
} | ||
return 'tjedna' | ||
}, | ||
d: function (c) { return c === 1 ? 'dan' : 'dana' }, | ||
h: function (c) { | ||
if (c === 1) { | ||
return 'sat' | ||
} else if (c === 2 || c === 3 || c === 4) { | ||
return 'sata' | ||
} | ||
return 'sati' | ||
}, | ||
m: function (c) { | ||
if (c === 12 || c === 13 || c === 14) { | ||
return 'minuta' | ||
} else if (c % 10 === 2 || c % 10 === 3 || c % 10 === 4) { | ||
return 'minute' | ||
} | ||
return 'minuta' | ||
}, | ||
s: function (c) { | ||
if (c === 1) { | ||
return 'sekunda' | ||
} else if (c % 10 === 2 || c % 10 === 3 || c % 10 === 4) { | ||
return 'sekunde' | ||
} | ||
return 'sekundi' | ||
}, | ||
ms: function (c) { | ||
if (c === 1) { | ||
return 'milisekunda' | ||
} else if (c % 10 === 2 || c % 10 === 3 || c % 10 === 4) { | ||
return 'milisekunde' | ||
} | ||
return 'milisekundi' | ||
}, | ||
decimal: ',' | ||
}, | ||
hu: { | ||
@@ -204,2 +260,13 @@ y: 'év', | ||
}, | ||
lo: { | ||
y: 'ປີ', | ||
mo: 'ເດືອນ', | ||
w: 'ອາທິດ', | ||
d: 'ມື້', | ||
h: 'ຊົ່ວໂມງ', | ||
m: 'ນາທີ', | ||
s: 'ວິນາທີ', | ||
ms: 'ມິນລິວິນາທີ', | ||
decimal: ',' | ||
}, | ||
lt: { | ||
@@ -554,3 +621,3 @@ y: function (c) { return ((c % 10 === 0) || (c % 100 >= 10 && c % 100 <= 20)) ? 'metų' : 'metai' }, | ||
// Internal helper function for Slovak language. | ||
// Internal helper function for Slovak language. | ||
function getCzechOrSlovakForm (c) { | ||
@@ -600,2 +667,2 @@ if (c === 1) { | ||
} | ||
})(); // eslint-disable-line semi | ||
})(); // eslint-disable-line semi |
@@ -25,5 +25,6 @@ { | ||
"Matej Kolesár (https://github.com/rasel-sk)", | ||
"Abdul Jalil (https://github.com/abduljalilm94)" | ||
"Abdul Jalil (https://github.com/abduljalilm94)", | ||
"Alex Sam (https://github.com/sam-lex)" | ||
], | ||
"version": "3.14.0", | ||
"version": "3.15.0", | ||
"description": "Convert millisecond durations to English and many other languages.", | ||
@@ -37,6 +38,7 @@ "homepage": "https://github.com/EvanHahn/HumanizeDuration.js", | ||
"devDependencies": { | ||
"check-ecmascript-version-compatibility": "^0.1.1", | ||
"csv-parse": "^1.1.7", | ||
"mocha": "^3.2.0", | ||
"mocha": "^5.2.0", | ||
"ms": "^0.7.2", | ||
"standard": "^8.6.0" | ||
"standard": "^11.0.1" | ||
}, | ||
@@ -43,0 +45,0 @@ "keywords": [ |
@@ -210,2 +210,3 @@ Humanize Duration | ||
| Chinese, traditional | `zh_TW` | | ||
| Croatian | `hr` | | ||
| Czech | `cs` | | ||
@@ -226,2 +227,3 @@ | Danish | `da` | | ||
| Korean | `ko` | | ||
| Lao | `lo` | | ||
| Lithuanian | `lt` | | ||
@@ -276,2 +278,3 @@ | Malay | `ms` | | ||
* [Abdul Jalil](https://github.com/abduljalilm94) for Urdu support | ||
* Malikoun for Lao support | ||
@@ -278,0 +281,0 @@ Licensed under the permissive [Unlicense](https://unlicense.org/). Enjoy! |
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
40933
632
288
5