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;
getLocale() {
return Localization.locale;
}
detect: () => Localization.locale,
init: Function.prototype,
export const getLocaleDashed = () => Localization.locale;
getCurrentLocaleAsync() {
warnDeprecated('getCurrentLocaleAsync()', 'locale');
return Localization.locale.replace('-', '_');
},
getCurrentTimeZoneAsync() {