How to use the expo-localization.Localization.locale function in expo-localization

To help you get started, we’ve selected a few expo-localization examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / expo-localization / expo-localization-tests.ts View on Github external
import { Localization } from "expo-localization";

Localization.getLocalizationAsync().then(localization => localization.locale);
Localization.locale;
github DECODEproject / decode-mobile-app / i18n.js View on Github external
  detect: () => Localization.locale,
  init: Function.prototype,
github expo / expo / packages / expo / src / Localization.ts View on Github external
getCurrentLocaleAsync() {
    warnDeprecated('getCurrentLocaleAsync()', 'locale');
    return Localization.locale.replace('-', '_');
  },
  getCurrentTimeZoneAsync() {