Skip to content

Instantly share code, notes, and snippets.

@dmitryelagin
Created October 8, 2020 08:37
class Intl {
// ...
static String getCurrentLocale() {
// Get locale from current zone
var zoneLocale = Zone.current[#Intl.locale];
return zoneLocale == null ? _defaultLocale : zoneLocale;
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment