Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Localization } from "expo-localization";
Localization.getLocalizationAsync().then(localization => localization.locale);
Localization.locale;
detect: callback => {
return /*'en'; */ Localization.getLocalizationAsync().then(({ locale }) => {
callback(locale);
});
},
init: () => {},