src/sap.ui.core/src/sap/ui/core/hyphenation/Hyphenation.js
function onLanguageInitialized(sLanguage, resolve, hyphenateMethod) {
		oHyphenateMethods[sLanguage] = hyphenateMethod;
		oHyphenationInstance.bIsInitialized = true;
		if (aLanguagesQueue.length > 0) {
			aLanguagesQueue.forEach(function (oElement) {
				initializeLanguage(oElement.sLanguage, oElement.oConfig, oElement.resolve);
			});
			aLanguagesQueue = [];
		}
		oHyphenationInstance.bLoading = false;
		resolve(
			getLanguageFromPattern(sLanguage)
		);
	}
function onLanguageInitialized(sLanguage, resolve, hyphenateMethod) {
		oHyphenateMethods[sLanguage] = hyphenateMethod;
		oHyphenationInstance.bIsInitialized = true;
		if (aLanguagesQueue.length > 0) {
			aLanguagesQueue.forEach(function (oElement) {
				initializeLanguage(oElement.sLanguage, oElement.oConfig, oElement.resolve);
			});
			aLanguagesQueue = [];
		}
		oHyphenationInstance.bLoading = false;
		resolve(
			getLanguageFromPattern(sLanguage)
		);
	}
function onLanguageInitialized ( sLanguage , resolve , hyphenateMethod ) { oHyphenateMethods [ sLanguage ] = hyphenateMethod ; oHyphenationInstance . bIsInitialized = true ; if ( aLanguagesQueue . length > 0 ) { aLanguagesQueue . forEach ( function ( oElement ) { initializeLanguage ( oElement . sLanguage , oElement . oConfig , oElement . resolve ) ; } ) ; aLanguagesQueue = [ ] ; } oHyphenationInstance . bLoading = false ; resolve ( getLanguageFromPattern ( sLanguage ) ) ; }
A callback for when language initialization is ready.

@param {string} sLanguage What language was initialized
@param {function} resolve Callback to resolve the promise created on initialize
@param {string} hyphenateMethod Is it asm or wasm
@private
A callback for when language initialization is ready .