Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

registerLocaleManager(customLocaleUtilApis)

Updated on July 20, 2021

Registers the custom APIs that override the out of the box LocaleUtils APIs.

Returns

Not applicable.

Parameters

NameTypeDescriptionRequired
customLocaleUtilApisobjectThe 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}
}

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us