src/sap.ui.core/src/sap/ui/core/hyphenation/Hyphenation.js
function getLanguage(sLang) {
		var oLocale;
		if (sLang) {
			oLocale = new Locale(sLang);
		} else {
			oLocale = sap.ui.getCore().getConfiguration().getLocale();
		}

		var sLanguage = oLocale.getLanguage().toLowerCase();

		// adjustment of the language to corresponds to Hyphenopoly pattern files (.hpb files)
		switch (sLanguage) {
			case "en":
				sLanguage = "en-us";
				break;
			case "nb":
				sLanguage = "nb-no";
				break;
			case "no":
				sLanguage = "nb-no";
				break;
			case "el":
				sLanguage = "el-monoton";
				break;
		}

		return sLanguage;
	}
function getLanguage(sLang) {
		var oLocale;
		if (sLang) {
			oLocale = new Locale(sLang);
		} else {
			oLocale = sap.ui.getCore().getConfiguration().getLocale();
		}

		var sLanguage = oLocale.getLanguage().toLowerCase();

		// adjustment of the language to corresponds to Hyphenopoly pattern files (.hpb files)
		switch (sLanguage) {
			case "en":
				sLanguage = "en-us";
				break;
			case "nb":
				sLanguage = "nb-no";
				break;
			case "no":
				sLanguage = "nb-no";
				break;
			case "el":
				sLanguage = "el-monoton";
				break;
		}

		return sLanguage;
	}
function getLanguage ( sLang ) { var oLocale ; if ( sLang ) { oLocale = new Locale ( sLang ) ; } else { oLocale = sap . ui . getCore ( ) . getConfiguration ( ) . getLocale ( ) ; } var sLanguage = oLocale . getLanguage ( ) . toLowerCase ( ) ; // adjustment of the language to corresponds to Hyphenopoly pattern files (.hpb files) switch ( sLanguage ) { case "en" : sLanguage = "en-us" ; break ; case "nb" : sLanguage = "nb-no" ; break ; case "no" : sLanguage = "nb-no" ; break ; case "el" : sLanguage = "el-monoton" ; break ; } return sLanguage ; }
Gets global language code or the given language code.

@param {string} [sLang] The language to get. If left empty - the global application language will be returned
@returns {string} The language code
@private
Gets global language code or the given language code .