currentLocale function

String currentLocale()

The locale of the current request, job or command: the one set with setCurrentLocale in this scope, else the application's (APP_LOCALE). Translations and validation messages follow it.

Implementation

String currentLocale() =>
    _scope()?.get<_ActiveLocale>()?.value ?? _application.value;