mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
26 lines
629 B
JavaScript
26 lines
629 B
JavaScript
|
/**
|
|||
|
* Armenian (Հայերեն) language functions
|
|||
|
*/
|
|||
|
|
|||
|
( function ( $ ) {
|
|||
|
'use strict';
|
|||
|
|
|||
|
$.i18n.languages.hy = $.extend( {}, $.i18n.languages[ 'default' ], {
|
|||
|
convertGrammar: function ( word, form ) {
|
|||
|
if ( form === 'genitive' ) { // սեռական հոլով
|
|||
|
if ( word.slice( -1 ) === 'ա' ) {
|
|||
|
word = word.slice( 0, -1 ) + 'այի';
|
|||
|
} else if ( word.slice( -1 ) === 'ո' ) {
|
|||
|
word = word.slice( 0, -1 ) + 'ոյի';
|
|||
|
} else if ( word.slice( -4 ) === 'գիրք' ) {
|
|||
|
word = word.slice( 0, -4 ) + 'գրքի';
|
|||
|
} else {
|
|||
|
word = word + 'ի';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
return word;
|
|||
|
}
|
|||
|
} );
|
|||
|
}( jQuery ) );
|