Localisation updates from https://translatewiki.net.
[mediawiki.git] / resources / lib / jquery.i18n / src / languages / he.js
blobc7be5cfee4fca89de0c805ed1acd0f700a890b28
1 /**
2  * Hebrew (עברית) language functions
3  */
5 ( function ( $ ) {
6         'use strict';
8         $.i18n.languages.he = $.extend( {}, $.i18n.languages[ 'default' ], {
9                 convertGrammar: function ( word, form ) {
10                         switch ( form ) {
11                                 case 'prefixed':
12                                 case 'תחילית': // the same word in Hebrew
13                                         // Duplicate prefixed "Waw", but only if it's not already double
14                                         if ( word.slice( 0, 1 ) === 'ו' && word.slice( 0, 2 ) !== 'וו' ) {
15                                                 word = 'ו' + word;
16                                         }
18                                         // Remove the "He" if prefixed
19                                         if ( word.slice( 0, 1 ) === 'ה' ) {
20                                                 word = word.slice( 1 );
21                                         }
23                                         // Add a hyphen (maqaf) before numbers and non-Hebrew letters
24                                         if ( word.slice( 0, 1 ) < 'א' || word.slice( 0, 1 ) > 'ת' ) {
25                                                 word = '־' + word;
26                                         }
27                         }
29                         return word;
30                 }
31         } );
32 }( jQuery ) );