registerLocaleManager(customLocaleUtilApis)
Registers the custom APIs that override the out of the box LocaleUtils APIs.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
customLocaleUtilApis | object | The APIs that will override the existing LocaleUtils APIs. | ✅ |
Usage example
In this example, the API registers the custom APIs that override the existing LocaleUtils APIs.
PCore.registerLocaleManager(customLocaleUtilApis);
customLocaleUtilApis = {
"setLocaleForRule" : function(){ //custom implementation},
"getLocaleForRule" : function(){ //custom implementation},
"resetLocaleStore" : function(){ //custom implementation},
"getLocaleValue" : function(){ //custom implementation},
"setTimezone" : function(){ //custom implementation},
"getTimeZoneInUse" : function(){ //custom implementation}
}
Previous topic registerComponentCreator(creator) Next topic setBehaviorOverride(overrideKey, overrideValue)