Skip to content

Commit

Permalink
Update ru.js
Browse files Browse the repository at this point in the history
Added seconds counting and 'just now' in russian strings
  • Loading branch information
TriDvaRas authored Jun 25, 2021
1 parent 6048aec commit b943761
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/language-strings/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ function numpf(n: number, f: string, s: string, t: string): string {
const strings: L10nsStrings = {
prefixAgo: null,
prefixFromNow: 'через',
suffixAgo: 'назад',
suffixAgo: function suffixAgo(value) {
if (value === 0)
return ''
return 'назад'
},
suffixFromNow: null,
seconds: 'меньше минуты',
seconds: function seconds(value) {
if (value === 0)
return 'только что'
return numpf(value, '%d секунду', '%d секунды', '%d секунд');
},
minute: 'минуту',
minutes: function (value) {
return numpf(value, '%d минута', '%d минуты', '%d минут')
Expand Down

0 comments on commit b943761

Please sign in to comment.