public/assets/moment/sk-556f815ee6d81f8a5d8f02fa656e1fbb078f0e3f037892bf67d36480b16361c5.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 sekúnd' : 'pár sekundami';
Avoid too many return
statements within this function. Open
Open
return result + (plural(number) ? 'roky' : 'rokov');
Avoid too many return
statements within this function. Open
Open
return result + 'dňami';
Avoid too many return
statements within this function. Open
Open
return result + 'mesiacmi';
Avoid too many return
statements within this function. Open
Open
return result + 'rokmi';
Avoid too many return
statements within this function. Open
Open
return result + (plural(number) ? 'mesiace' : 'mesiacov');
Avoid too many return
statements within this function. Open
Open
return result + (plural(number) ? 'dni' : 'dní');