Skip to content

Commit

Permalink
Fixup release complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Apr 17, 2022
1 parent 26f4aef commit aaf50b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/locale/sr-cyrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ var translator = {
return wordKey[2];
},
translate: function (number, withoutSuffix, key, isFuture) {
var wordKey = translator.words[key];
var wordKey = translator.words[key],
word;

if (key.length === 1) {
// Nominativ
if (key === 'y' && withoutSuffix) return 'једна година';
return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
}

var word = translator.correctGrammaticalCase(number, wordKey);
word = translator.correctGrammaticalCase(number, wordKey);
// Nominativ
if (key === 'yy' && withoutSuffix && word === 'годину') {
return number + ' година';
Expand Down
5 changes: 3 additions & 2 deletions src/locale/sr.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ var translator = {
return wordKey[2];
},
translate: function (number, withoutSuffix, key, isFuture) {
var wordKey = translator.words[key];
var wordKey = translator.words[key],
word;

if (key.length === 1) {
// Nominativ
if (key === 'y' && withoutSuffix) return 'jedna godina';
return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
}

var word = translator.correctGrammaticalCase(number, wordKey);
word = translator.correctGrammaticalCase(number, wordKey);
// Nominativ
if (key === 'yy' && withoutSuffix && word === 'godinu') {
return number + ' godina';
Expand Down

0 comments on commit aaf50b6

Please sign in to comment.