| 1 |
|
| 2 |
nctions |
| 3 |
|
| 4 |
|
| 5 |
( function ( $ ) { |
| 6 |
'use strict'; |
| 7 |
|
| 8 |
$.i18n.languages.hy = $.extend( {}, $.i18n.languages[ 'default' ], { |
| 9 |
convertGrammar: function ( word, form ) { |
| 10 |
if ( form === 'genitive' ) { ն հոլով |
| 11 |
if ( word.slice( -1 ) === 'ա' ) { |
| 12 |
word = word.slice( 0, -1 ) + 'այի'; |
| 13 |
} else if ( word.slice( -1 ) === 'ո' ) { |
| 14 |
word = word.slice( 0, -1 ) + 'ոյի'; |
| 15 |
} else if ( word.slice( -4 ) === 'գիրք' ) { |
| 16 |
word = word.slice( 0, -4 ) + 'գրքի'; |
| 17 |
} else { |
| 18 |
word = word + 'ի'; |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
return word; |
| 23 |
} |
| 24 |
} ); |
| 25 |
}( jQuery ) ); |