function tryToLoadNextProperties(oBundle, bAsync) {

		// get the next fallback locale
		var sLocale = oBundle._aFallbackLocales.shift();

		if ( sLocale != null) {

			var oUrl = oBundle.oUrlInfo,
				sUrl, mHeaders;

			if ( oUrl.ext === '.hdbtextbundle' ) {
				if ( M_SUPPORTABILITY_TO_XS[sLocale] ) {
					// Add technical support languages also as URL parameter (as XS engine can't handle private extensions in Accept-Language header)
					sUrl = oUrl.prefix + oUrl.suffix + '?' + (oUrl.query ? oUrl.query + "&" : "") + "sap-language=" + M_SUPPORTABILITY_TO_XS[sLocale] + (oUrl.hash ? "#" + oUrl.hash : "");
				} else {
					sUrl = oUrl.url;
				}
				// Alternative: add locale as query:
				// url: oUrl.prefix + oUrl.suffix + '?' + (oUrl.query ? oUrl.query + "&" : "") + "locale=" + sLocale + (oUrl.hash ? "#" + oUrl.hash : ""),
				mHeaders = {
					"Accept-Language": convertLocaleToBCP47(sLocale) || ""
				};
			} else {
				sUrl = oUrl.prefix + (sLocale ? "_" + sLocale : "") + oUrl.suffix;
			}

			var vProperties = Properties.create({
				url: sUrl,
				headers: mHeaders,
				async: !!bAsync,
				returnNullIfMissing: true
			});

			var addProperties = function(oProps) {
				if ( oProps ) {
					oBundle.aPropertyFiles.push(oProps);
					oBundle.aPropertyOrigins.push(sUrl);
					oBundle.aLocales.push(sLocale);
				}
				return oProps;
			};

			return bAsync ? vProperties.then( addProperties ) : addProperties( vProperties );

		}

		return bAsync ? Promise.resolve(null) : null;
	}
/*
	 * Tries to load the properties file for the next fallback locale.
	 *
	 * If there is no further fallback locale or when requests for the next fallback locale are
	 * suppressed by configuration or when the file cannot be loaded, <code>null</code> is returned.
	 *
	 * @param {module:sap/base/i18n/ResourceBundle} oBundle ResourceBundle to extend
	 * @param {boolean} [bAsync=false] Whether the resource should be loaded asynchronously
	 * @returns The newly loaded properties (sync mode) or a Promise on the properties (async mode);
	 *         value / Promise fulfillment will be <code>null</code> when the properties for the
	 *         next fallback locale should not be loaded or when loading failed or when there
	 *         was no more fallback locale
	 * @private
	 */
Tries to load the properties file for the next fallback locale.
If there is no further fallback locale or when requests for the next fallback locale are
suppressed by configuration or when the file cannot be loaded, null is returned.

@param {module:sap/base/i18n/ResourceBundle} oBundle ResourceBundle to extend
@param {boolean} [bAsync=false] Whether the resource should be loaded asynchronously
@returns The newly loaded properties (sync mode) or a Promise on the properties (async mode);
value / Promise fulfillment will be null when the properties for the
next fallback locale should not be loaded or when loading failed or when there
was no more fallback locale
@private
Tries to load the properties file for the next fallback locale . If there is no further fallback locale or when requests for the next fallback locale are suppressed by configuration or when the file cannot be loaded null is returned . @param { module : sap / base / i18n / ResourceBundle } oBundle ResourceBundle to extend @param { boolean } [ bAsync = false ] Whether the resource should be loaded asynchronously @returns The newly loaded properties ( sync mode ) or a Promise on the properties ( async mode ) ; value / Promise fulfillment will be null when the properties for the next fallback locale should not be loaded or when loading failed or when there was no more fallback locale @private
function tryToLoadNextProperties(oBundle, bAsync) {
		var sLocale = oBundle._aFallbackLocales.shift();
		if ( sLocale != null) {
			var oUrl = oBundle.oUrlInfo,
				sUrl, mHeaders;
			if ( oUrl.ext === '.hdbtextbundle' ) {
				if ( M_SUPPORTABILITY_TO_XS[sLocale] ) {
					sUrl = oUrl.prefix + oUrl.suffix + '?' + (oUrl.query ? oUrl.query + "&" : "") + "sap-language=" + M_SUPPORTABILITY_TO_XS[sLocale] + (oUrl.hash ? "#" + oUrl.hash : "");
				} else {
					sUrl = oUrl.url;
				}
				mHeaders = {
					"Accept-Language": convertLocaleToBCP47(sLocale) || ""
				};
			} else {
				sUrl = oUrl.prefix + (sLocale ? "_" + sLocale : "") + oUrl.suffix;
			}
			var vProperties = Properties.create({
				url: sUrl,
				headers: mHeaders,
				async: !!bAsync,
				returnNullIfMissing: true
			});
			var addProperties = function(oProps) {
				if ( oProps ) {
					oBundle.aPropertyFiles.push(oProps);
					oBundle.aPropertyOrigins.push(sUrl);
					oBundle.aLocales.push(sLocale);
				}
				return oProps;
			};
			return bAsync ? vProperties.then( addProperties ) : addProperties( vProperties );
		}
		return bAsync ? Promise.resolve(null) : null;
	}
function tryToLoadNextProperties ( oBundle , bAsync ) { var sLocale = oBundle . _aFallbackLocales . shift ( ) ; if ( sLocale != null ) { var oUrl = oBundle . oUrlInfo , sUrl , mHeaders ; if ( oUrl . ext === '.hdbtextbundle' ) { if ( M_SUPPORTABILITY_TO_XS [ sLocale ] ) { sUrl = oUrl . prefix + oUrl . suffix + '?' + ( oUrl . query ? oUrl . query + "&" : "" ) + "sap-language=" + M_SUPPORTABILITY_TO_XS [ sLocale ] + ( oUrl . hash ? "#" + oUrl . hash : "" ) ; } else { sUrl = oUrl . url ; } mHeaders = { "Accept-Language" : convertLocaleToBCP47 ( sLocale ) || "" } ; } else { sUrl = oUrl . prefix + ( sLocale ? "_" + sLocale : "" ) + oUrl . suffix ; } var vProperties = Properties . create ( { url : sUrl , headers : mHeaders , async : ! ! bAsync , returnNullIfMissing : true } ) ; var addProperties = function ( oProps ) { if ( oProps ) { oBundle . aPropertyFiles . push ( oProps ) ; oBundle . aPropertyOrigins . push ( sUrl ) ; oBundle . aLocales . push ( sLocale ) ; } return oProps ; } ; return bAsync ? vProperties . then ( addProperties ) : addProperties ( vProperties ) ; } return bAsync ? Promise . resolve ( null ) : null ; }
Tries to load the properties file for the next fallback locale.
Tries to load the properties file for the next fallback locale .
// get the next fallback locale // Add technical support languages also as URL parameter (as XS engine can't handle private extensions in Accept-Language header) // Alternative: add locale as query: // url: oUrl.prefix + oUrl.suffix + '?' + (oUrl.query ? oUrl.query + "&" : "") + "locale=" + sLocale + (oUrl.hash ? "#" + oUrl.hash : ""),