Created
October 8, 2020 08:37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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