SetLocale()
Sets the country/language locale for CFML processing and the page returned to the client.
The locale value determines the default format of date, time, number, and currency values, according to language and regional conventions.
SetLocale( new_locale=locale );
Returns: Locale
| Argument | Description |
|---|---|
|
new_locale
locale,
required
|
edit
The name of a locale; for example, "English (US)" Alias: locale |
Examples
editdump(getLocale());
setLocale("english (australian)");
dump(getLocale());
dump(Server.Coldfusion.SupportedLocales.listToArray().sort("text"));
See also
- Date and time
- Internationalization
- GetLocale()
- GetLocaleInfo()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)