globalLocale method
Simultaneous getter and setter for the global locale.
If no argument is specified, returns the current global locale. If a valid locale is specified, sets the global locale and then returns the new value.
Implementation
static ILocale globalLocale([ILocale locale = null]) {
if (locale != null) _globalLocale = locale;
return _globalLocale;
}