This example gets the current three letter locale for the user and prints the value to the debug output window.
var CurrLocale = GetLocale();
Debug.trace( "Current locale is " + CurrLocale + "\n" );
This example gets the current two letter language and country locales in the standard format of xx-YY were xx is a two letter code for the language and YY is a two letter code for the country. For example; the locale string for the UK is "en-GB".
var CurrLocale = GetLocale(2) + "-" + GetLocale(1);
Debug.trace( "Current locale is " + CurrLocale + "\n" );