Added support for callables as default locale