We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function formatToLongString (time, words) { let _time = time % 100; if (_time > 19) { _time = _time % 10; } switch ( _time ) { case 1: { return ` ${time} ${words[0]} назад`; } case 2: case 3: case 4: { return ` ${time} ${words[1]} назад`; } default: { return ` ${time} ${words[2]} назад`; } } } export default { short: { now: 'только что', sec:'с', min: 'м', hour: 'ч', day: 'дн', }, long: { now: 'только что', sec: time => formatToLongString(time, ['секунда', 'секунды', 'секунд']), min: time => formatToLongString(time, ['минута', 'минуты', 'минут']), hour: time => formatToLongString(time, ['час', 'часа', 'часов']), day: time => formatToLongString(time, ['день', 'дня', 'дней']), } }
The text was updated successfully, but these errors were encountered:
Release with version 1.2.6. Thank you for your help.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: