· IT Consultant

Getting locale

i'm trying to get the device locale in a custom code but: final locale = Intl.systemLocale; -> always return "en_US" final langCode = Intl.getCurrentLocale(); -> always return "en_US" which code can use to get the real locale of device where my app is running ?

2 replies