| 1 |
|
| 2 |
tions |
| 3 |
|
| 4 |
|
| 5 |
( function ( $ ) { |
| 6 |
'use strict'; |
| 7 |
|
| 8 |
$.i18n.languages.he = $.extend( {}, $.i18n.languages[ 'default' ], { |
| 9 |
convertGrammar: function ( word, form ) { |
| 10 |
switch ( form ) { |
| 11 |
case 'prefixed': |
| 12 |
case 'תחילHebrew |
| 13 |
|
| 14 |
if ( word.slice( 0, 1 ) === 'ו' && word.slice( 0, 2 ) !== 'וו' ) { |
| 15 |
word = 'ו' + word; |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
if ( word.slice( 0, 1 ) === 'ה' ) { |
| 20 |
word = word.slice( 1 ); |
| 21 |
} |
| 22 |
|
| 23 |
|
| 24 |
if ( word.slice( 0, 1 ) < 'א' || word.slice( 0, 1 ) > 'ת' ) { |
| 25 |
word = '־' + word; |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
return word; |
| 30 |
} |
| 31 |
} ); |
| 32 |
}( jQuery ) ); |