Localisation updates from https://translatewiki.net.
[mediawiki.git] / resources / src / mediawiki.language / languages / ga.js
blobb83f89813f83f4a49a78bac8b9f6c2a222bf3018
1 /*!
2  * Irish (Gaeilge) language functions
3  */
5 mw.language.convertGrammar = function ( word, form ) {
6         const grammarForms = mw.language.getData( 'ga', 'grammarForms' );
7         if ( grammarForms && grammarForms[ form ] ) {
8                 return grammarForms[ form ][ word ];
9         }
10         switch ( form ) {
11                 case 'ainmlae':
12                         switch ( word ) {
13                                 case 'an Domhnach':
14                                         word = 'Dé Domhnaigh';
15                                         break;
16                                 case 'an Luan':
17                                         word = 'Dé Luain';
18                                         break;
19                                 case 'an Mháirt':
20                                         word = 'Dé Mháirt';
21                                         break;
22                                 case 'an Chéadaoin':
23                                         word = 'Dé Chéadaoin';
24                                         break;
25                                 case 'an Déardaoin':
26                                         word = 'Déardaoin';
27                                         break;
28                                 case 'an Aoine':
29                                         word = 'Dé hAoine';
30                                         break;
31                                 case 'an Satharn':
32                                         word = 'Dé Sathairn';
33                                         break;
34                         }
35         }
36         return word;