Merge "Remove incorrect timezone conversion from date parameters"
[lhc/web/wiklou.git] / resources / lib / jquery.i18n / src / languages / uk.js
1 /**
2 * Ukrainian (Українська) language functions
3 */
4
5 ( function ( $ ) {
6 'use strict';
7
8 $.i18n.languages.uk = $.extend( {}, $.i18n.languages[ 'default' ], {
9 convertGrammar: function ( word, form ) {
10 switch ( form ) {
11 case 'genitive': // родовий відмінок
12 if ( word.slice( -1 ) === 'ь' ) {
13 word = word.slice( 0, -1 ) + 'я';
14 } else if ( word.slice( -2 ) === 'ія' ) {
15 word = word.slice( 0, -2 ) + 'ії';
16 } else if ( word.slice( -2 ) === 'ка' ) {
17 word = word.slice( 0, -2 ) + 'ки';
18 } else if ( word.slice( -2 ) === 'ти' ) {
19 word = word.slice( 0, -2 ) + 'тей';
20 } else if ( word.slice( -2 ) === 'ды' ) {
21 word = word.slice( 0, -2 ) + 'дов';
22 } else if ( word.slice( -3 ) === 'ник' ) {
23 word = word.slice( 0, -3 ) + 'ника';
24 }
25
26 break;
27 case 'accusative': // знахідний відмінок
28 if ( word.slice( -2 ) === 'ія' ) {
29 word = word.slice( 0, -2 ) + 'ію';
30 }
31
32 break;
33 }
34
35 return word;
36 }
37 } );
38
39 }( jQuery ) );