currentLocale top-level property

String currentLocale
getter/setter pair

Implementation

String currentLocale =
    PlatformDispatcher.instance.locale.toString().replaceAll('_', '-');