src/sap.ui.core/src/sap/ui/core/hyphenation/Hyphenation.js
function prepareConfig(sLanguage, oConfig) {
		//Creating default configuration
		var oConfigurationForLanguage = {
			"require": [sLanguage],
			"hyphen": "\u00AD",
			"leftmin": 3, // The minimum of chars to remain on the old line.
			"rightmin": 3,// The minimum of chars to go on the new line
			"compound": "all", // factory-made -> fac-tory-[ZWSP]made
			"path": jQuery.sap.getResourcePath("sap/ui/thirdparty/hyphenopoly")
		};

		// we are passing only 3 properties to hyphenopoly: hyphen, exceptions and minWordLength
		if (oConfig) {
			if ("hyphen" in oConfig) {
				oConfigurationForLanguage.hyphen = oConfig.hyphen;
			}

			if ("minWordLength" in oConfig) {
				oConfigurationForLanguage.minWordLength = oConfig.minWordLength;
			}

			if ("exceptions" in oConfig) {
				Log.info(
					"[UI5 Hyphenation] Add hyphenation exceptions '" + JSON.stringify(oConfig.exceptions) + "' for language " + getLanguageDisplayName(sLanguage),
					"sap.ui.core.hyphenation.Hyphenation"
				);

				// transform "exceptions: {word1: "w-o-r-d-1", word2: "w-o-r-d-2"}" to "exceptions: {en-us: 'w-o-r-d-1,w-o-r-d-2'}"
				var aWordsExceptions = [];
				Object.keys(oConfig.exceptions).forEach(function(sWord) {
					aWordsExceptions.push(oConfig.exceptions[sWord]);
				});

				if (aWordsExceptions.length > 0) {
					oConfigurationForLanguage.exceptions = {};
					oConfigurationForLanguage.exceptions[sLanguage] = aWordsExceptions.join(", ");
				}
			}
		}

		return oConfigurationForLanguage;
	}
function prepareConfig(sLanguage, oConfig) {
		//Creating default configuration
		var oConfigurationForLanguage = {
			"require": [sLanguage],
			"hyphen": "\u00AD",
			"leftmin": 3, // The minimum of chars to remain on the old line.
			"rightmin": 3,// The minimum of chars to go on the new line
			"compound": "all", // factory-made -> fac-tory-[ZWSP]made
			"path": jQuery.sap.getResourcePath("sap/ui/thirdparty/hyphenopoly")
		};

		// we are passing only 3 properties to hyphenopoly: hyphen, exceptions and minWordLength
		if (oConfig) {
			if ("hyphen" in oConfig) {
				oConfigurationForLanguage.hyphen = oConfig.hyphen;
			}

			if ("minWordLength" in oConfig) {
				oConfigurationForLanguage.minWordLength = oConfig.minWordLength;
			}

			if ("exceptions" in oConfig) {
				Log.info(
					"[UI5 Hyphenation] Add hyphenation exceptions '" + JSON.stringify(oConfig.exceptions) + "' for language " + getLanguageDisplayName(sLanguage),
					"sap.ui.core.hyphenation.Hyphenation"
				);

				// transform "exceptions: {word1: "w-o-r-d-1", word2: "w-o-r-d-2"}" to "exceptions: {en-us: 'w-o-r-d-1,w-o-r-d-2'}"
				var aWordsExceptions = [];
				Object.keys(oConfig.exceptions).forEach(function(sWord) {
					aWordsExceptions.push(oConfig.exceptions[sWord]);
				});

				if (aWordsExceptions.length > 0) {
					oConfigurationForLanguage.exceptions = {};
					oConfigurationForLanguage.exceptions[sLanguage] = aWordsExceptions.join(", ");
				}
			}
		}

		return oConfigurationForLanguage;
	}
function prepareConfig ( sLanguage , oConfig ) { //Creating default configuration var oConfigurationForLanguage = { "require" : [ sLanguage ] , "hyphen" : "\u00AD" , "leftmin" : 3 , // The minimum of chars to remain on the old line. "rightmin" : 3 , // The minimum of chars to go on the new line "compound" : "all" , // factory-made -> fac-tory-[ZWSP]made "path" : jQuery . sap . getResourcePath ( "sap/ui/thirdparty/hyphenopoly" ) } ; // we are passing only 3 properties to hyphenopoly: hyphen, exceptions and minWordLength if ( oConfig ) { if ( "hyphen" in oConfig ) { oConfigurationForLanguage . hyphen = oConfig . hyphen ; } if ( "minWordLength" in oConfig ) { oConfigurationForLanguage . minWordLength = oConfig . minWordLength ; } if ( "exceptions" in oConfig ) { Log . info ( "[UI5 Hyphenation] Add hyphenation exceptions '" + JSON . stringify ( oConfig . exceptions ) + "' for language " + getLanguageDisplayName ( sLanguage ) , "sap.ui.core.hyphenation.Hyphenation" ) ; // transform "exceptions: {word1: "w-o-r-d-1", word2: "w-o-r-d-2"}" to "exceptions: {en-us: 'w-o-r-d-1,w-o-r-d-2'}" var aWordsExceptions = [ ] ; Object . keys ( oConfig . exceptions ) . forEach ( function ( sWord ) { aWordsExceptions . push ( oConfig . exceptions [ sWord ] ) ; } ) ; if ( aWordsExceptions . length > 0 ) { oConfigurationForLanguage . exceptions = { } ; oConfigurationForLanguage . exceptions [ sLanguage ] = aWordsExceptions . join ( ", " ) ; } } } return oConfigurationForLanguage ; }
Transforms the given config so it can be sent to Hyphenopoly.

@param {string} sLanguage The language for which a config is prepared.
@param {map} oConfig Object map with configuration
@returns {Object} {{require: [*], hyphen: string, path: (string|*)}}
@private
Transforms the given config so it can be sent to Hyphenopoly .