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.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.