File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,16 @@ var translator = {
31
31
return wordKey [ 2 ] ;
32
32
} ,
33
33
translate : function ( number , withoutSuffix , key , isFuture ) {
34
- var wordKey = translator . words [ key ] ;
34
+ var wordKey = translator . words [ key ] ,
35
+ word ;
35
36
36
37
if ( key . length === 1 ) {
37
38
// Nominativ
38
39
if ( key === 'y' && withoutSuffix ) return 'једна година' ;
39
40
return isFuture || withoutSuffix ? wordKey [ 0 ] : wordKey [ 1 ] ;
40
41
}
41
42
42
- var word = translator . correctGrammaticalCase ( number , wordKey ) ;
43
+ word = translator . correctGrammaticalCase ( number , wordKey ) ;
43
44
// Nominativ
44
45
if ( key === 'yy' && withoutSuffix && word === 'годину' ) {
45
46
return number + ' година' ;
Original file line number Diff line number Diff line change @@ -31,15 +31,16 @@ var translator = {
31
31
return wordKey [ 2 ] ;
32
32
} ,
33
33
translate : function ( number , withoutSuffix , key , isFuture ) {
34
- var wordKey = translator . words [ key ] ;
34
+ var wordKey = translator . words [ key ] ,
35
+ word ;
35
36
36
37
if ( key . length === 1 ) {
37
38
// Nominativ
38
39
if ( key === 'y' && withoutSuffix ) return 'jedna godina' ;
39
40
return isFuture || withoutSuffix ? wordKey [ 0 ] : wordKey [ 1 ] ;
40
41
}
41
42
42
- var word = translator . correctGrammaticalCase ( number , wordKey ) ;
43
+ word = translator . correctGrammaticalCase ( number , wordKey ) ;
43
44
// Nominativ
44
45
if ( key === 'yy' && withoutSuffix && word === 'godinu' ) {
45
46
return number + ' godina' ;
You can’t perform that action at this time.
0 commit comments