ApiSandbox: Visual separation of fields
[mediawiki.git] / resources / src / mediawiki.language / languages / hsb.js
blob8e9b1296d0879877bd533817108f4b8432fecb3e
1 /*!
2 * Upper Sorbian (Hornjoserbsce) language functions
3 */
5 mediaWiki.language.convertGrammar = function ( word, form ) {
6 var grammarForms = mediaWiki.language.getData( 'hsb', 'grammarForms' );
7 if ( grammarForms && grammarForms[ form ] ) {
8 return grammarForms[ form ][ word ];
10 switch ( form ) {
11 case 'instrumental': // instrumental
12 word = 'z ' + word;
13 break;
14 case 'lokatiw': // lokatiw
15 word = 'wo ' + word;
16 break;
18 return word;