1import ExpoLocalization from './ExpoLocalization';
2// @needsAudit
3/**
4 * Three-character ISO 4217 currency code. Returns `null` on web.
5 *
6 * @example `'USD'`, `'EUR'`, `'CNY'`, `null`
7 */
8export const currency = ExpoLocalization.currency;
9// @needsAudit
10/**
11 * Decimal separator used for formatting numbers.
12 *
13 * @example `','`, `'.'`
14 */
15export const decimalSeparator = ExpoLocalization.decimalSeparator;
16// @needsAudit
17/**
18 * Digit grouping separator used when formatting numbers larger than 1000.
19 *
20 * @example `'.'`, `''`, `','`
21 */
22export const digitGroupingSeparator = ExpoLocalization.digitGroupingSeparator;
23// @needsAudit
24/**
25 * A list of all the supported language ISO codes.
26 */
27export const isoCurrencyCodes = ExpoLocalization.isoCurrencyCodes;
28// @needsAudit
29/**
30 * Boolean value that indicates whether the system uses the metric system.
31 * On Android and web, this is inferred from the current region.
32 */
33export const isMetric = ExpoLocalization.isMetric;
34// @needsAudit
35/**
36 * Returns if the system's language is written from Right-to-Left.
37 * This can be used to build features like [bidirectional icons](https://material.io/design/usability/bidirectionality.html).
38 *
39 * Returns `false` in Server Side Rendering (SSR) environments.
40 */
41export const isRTL = ExpoLocalization.isRTL;
42// @needsAudit
43/**
44 * An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag),
45 * consisting of a two-character language code and optional script, region and variant codes.
46 *
47 * @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
48 */
49export const locale = ExpoLocalization.locale;
50// @needsAudit
51/**
52 * List of all the native languages provided by the user settings.
53 * These are returned in the order the user defines in their device settings.
54 */
55export const locales = ExpoLocalization.locales;
56// @needsAudit
57/**
58 * The current time zone in display format.
59 * On Web time zone is calculated with Intl.DateTimeFormat().resolvedOptions().timeZone. For a
60 * better estimation you could use the moment-timezone package but it will add significant bloat to
61 * your website's bundle size.
62 *
63 * @example `'America/Los_Angeles'`
64 */
65export const timezone = ExpoLocalization.timezone;
66// @needsAudit
67/**
68 * The region code for your device that comes from the Region setting under Language & Region on iOS.
69 * This value is always available on iOS, but might return `null` on Android or web.
70 *
71 * @example `'US'`, `'NZ'`, `null`
72 */
73export const region = ExpoLocalization.region;
74// @needsAudit
75/**
76 * Get the latest native values from the device. Locale can be changed on some Android devices
77 * without resetting the app.
78 * > On iOS, changing the locale will cause the device to reset meaning the constants will always be
79 * correct.
80 *
81 * # Example
82 * ```ts
83 * // When the app returns from the background on Android...
84 *
85 * const { locale } = await Localization.getLocalizationAsync();
86 * ```
87 */
88export async function getLocalizationAsync() {
89    return await ExpoLocalization.getLocalizationAsync();
90}
91//# sourceMappingURL=Localization.js.map