While working with ColdFusion we are using Java based locale system. In some cases we may need to display the active locale on the system.
To be able to display the locale on code execution, we can use embedded getLocale() function.
Here is a sample code:
<!--- Displaying Current Locale --->
<cfoutput>#getLocale()#</cfoutput> <br />
<br />
<!--- Setting and displaying a specific locale --->
<cfscript>
/*
Setting required
locale
tr_TR used for
Turkish
*/
SetLocale("tr_TR");
</cfscript>
<cfoutput>#getLocale()#</cfoutput>
+