getLocaleInfo

Retrieves the list of locales for which translations are available.

Required System Actions

None

Usage

BPMTranslationServiceConfig.getLocaleInfo(callback)

Parameters

Parameter Type Description
callback Array<LocaleInfoModel> A callback handler whose localeInfo(Array<LocaleInfoModel>) method is invoked with the array of LocaleInfo objects.

An array of locales is returned on the callback object.

Sample Usage

BPMTranslationServiceConfig.getLocaleInfo({
	localeInfo: function(localeInfo) {
		localeInfo.forEach(function(lang) {
			// retrieve lang.language, lang.locale or lang.country from the available list
		});
	}
});