public/assets/moment/cs-03421141bc4c36302ba3ae64cf4266f0a31a04bc1579c15d2fa4edb4b984ad9e.js
Function translate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function translate(number, withoutSuffix, key, isFuture) {
var result = number + ' ';
switch (key) {
case 's': // a few seconds / in a few seconds / a few seconds ago
return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
Avoid too many return
statements within this function. Open
Open
return result + 'měsíci';
Avoid too many return
statements within this function. Open
Open
return result + (plural(number) ? 'dny' : 'dní');
Avoid too many return
statements within this function. Open
Open
return result + (plural(number) ? 'roky' : 'let');
Avoid too many return
statements within this function. Open
Open
return result + 'lety';
Avoid too many return
statements within this function. Open
Open
return result + 'dny';
Avoid too many return
statements within this function. Open
Open
return result + (plural(number) ? 'měsíce' : 'měsíců');