locale method
Simultaneous getter and setter for this instance's locale.
If no argument is specified, returns the current locale. If a valid locale is specified, sets the instance's locale and then returns the new value.
Implementation
ILocale locale([ILocale locale]) {
if (locale != null && locale is ILocale) _locale = locale;
return _getLocale();
}