mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Don't return undefined in ve.init.mw.Platform#getLanguageName"
This commit is contained in:
commit
1063342789
|
@ -88,7 +88,7 @@ ve.init.mw.Platform.prototype.getLanguageCodes = function () {
|
|||
ve.init.mw.Platform.prototype.getLanguageName = function ( code ) {
|
||||
var languageNames = mw.language.getData( mw.config.get( 'wgUserLanguage' ), 'languageNames' ) ||
|
||||
$.uls.data.getAutonyms();
|
||||
return languageNames[code];
|
||||
return languageNames[code] || '';
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue