You are here

setLocale

setLocale sets the locale for the current thread.

Parameters

localeString
A locale string in ISO format, ISOLanguageCode_ISOCountryCode, for example en_US.

Example

utils.setLocale("en_US");
      

The preceding code snippet would set the locale for the current thread to en_US.