Skip to content

Commit

Permalink
Update moment.js
Browse files Browse the repository at this point in the history
Fixes: #12 Not working anymore?
  • Loading branch information
matopeto committed Apr 18, 2022
1 parent 7a44270 commit 17571a7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions vendor/moment/moment-with-locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -5629,7 +5629,7 @@

//! moment.js

hooks.version = '2.29.2';
hooks.version = '2.29.3';

setHookCallback(createLocal);

Expand Down Expand Up @@ -15766,15 +15766,16 @@
return wordKey[2];
},
translate: function (number, withoutSuffix, key, isFuture) {
var wordKey = translator$1.words[key];
var wordKey = translator$1.words[key],
word;

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

const word = translator$1.correctGrammaticalCase(number, wordKey);
word = translator$1.correctGrammaticalCase(number, wordKey);
// Nominativ
if (key === 'yy' && withoutSuffix && word === 'годину') {
return number + ' година';
Expand Down Expand Up @@ -15888,15 +15889,16 @@
return wordKey[2];
},
translate: function (number, withoutSuffix, key, isFuture) {
var wordKey = translator$2.words[key];
var wordKey = translator$2.words[key],
word;

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

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

0 comments on commit 17571a7

Please sign in to comment.