1import ExpoLocalization from './ExpoLocalization';
2export * from './Localization.types';
3// @needsAudit
4/**
5 * @deprecated Use Localization.getLocales() instead.
6 * Three-character ISO 4217 currency code. Returns `null` on web.
7 *
8 * @example `'USD'`, `'EUR'`, `'CNY'`, `null`
9 */
10export const currency = ExpoLocalization.currency;
11// @needsAudit
12/**
13 * @deprecated Use Localization.getLocales() instead.
14 * Decimal separator used for formatting numbers.
15 *
16 * @example `','`, `'.'`
17 */
18export const decimalSeparator = ExpoLocalization.decimalSeparator;
19// @needsAudit
20/**
21 * @deprecated Use Localization.getLocales() instead.
22 * Digit grouping separator used when formatting numbers larger than 1000.
23 *
24 * @example `'.'`, `''`, `','`
25 */
26export const digitGroupingSeparator = ExpoLocalization.digitGroupingSeparator;
27// @needsAudit
28/**
29 * @deprecated Use Localization.getLocales() instead.
30 * A list of all the supported language ISO codes.
31 */
32export const isoCurrencyCodes = ExpoLocalization.isoCurrencyCodes;
33// @needsAudit
34/**
35 * @deprecated Use Localization.getLocales() instead.
36 * Boolean value that indicates whether the system uses the metric system.
37 * On Android and web, this is inferred from the current region.
38 */
39export const isMetric = ExpoLocalization.isMetric;
40// @needsAudit
41/**
42 * @deprecated Use Localization.getLocales() instead.
43 * Returns if the system's language is written from Right-to-Left.
44 * This can be used to build features like [bidirectional icons](https://material.io/design/usability/bidirectionality.html).
45 *
46 * Returns `false` in Server Side Rendering (SSR) environments.
47 */
48export const isRTL = ExpoLocalization.isRTL;
49// @needsAudit
50/**
51 * Consider using Localization.getLocales() for a list of user preferred locales instead.
52 * An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag),
53 * consisting of a two-character language code and optional script, region and variant codes.
54 *
55 * @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
56 */
57export const locale = ExpoLocalization.locale;
58// @needsAudit
59/**
60 * @deprecated Use Localization.getLocales() instead.
61 * List of all the native languages provided by the user settings.
62 * These are returned in the order the user defines in their device settings.
63 *
64 * @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
65 */
66export const locales = ExpoLocalization.locales;
67// @needsAudit
68/**
69 * @deprecated Use Localization.getLocales() instead.
70 * The current time zone in display format.
71 * On Web time zone is calculated with Intl.DateTimeFormat().resolvedOptions().timeZone. For a
72 * better estimation you could use the moment-timezone package but it will add significant bloat to
73 * your website's bundle size.
74 *
75 * @example `'America/Los_Angeles'`
76 */
77export const timezone = ExpoLocalization.timezone;
78// @needsAudit
79/**
80 * @deprecated Use Localization.getLocales() instead.
81 * The region code for your device that comes from the Region setting under Language & Region on iOS.
82 * This value is always available on iOS, but might return `null` on Android or web.
83 *
84 * @example `'US'`, `'NZ'`, `null`
85 */
86export const region = ExpoLocalization.region;
87/**
88 * List of user's locales, returned as an array of objects of type `Locale`.
89 * Guaranteed to contain at least 1 element.
90 * These are returned in the order the user defines in their device settings.
91 * On the web currency and measurements systems are not provided, instead returned as null.
92 * If needed, you can infer them from the current region using a lookup table.
93 * @example `[{
94    "languageTag": "pl-PL",
95    "languageCode": "pl",
96    "textDirection": "ltr",
97    "digitGroupingSeparator": " ",
98    "decimalSeparator": ",",
99    "measurementSystem": "metric",
100    "currencyCode": "PLN",
101    "currencySymbol": "zł",
102    "regionCode": "PL"
103  }]`
104 */
105export const getLocales = ExpoLocalization.getLocales;
106/**
107 * List of user's preferred calendars, returned as an array of objects of type `Calendar`.
108 * Guaranteed to contain at least 1 element.
109 * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
110 * @example `[
111    {
112      "calendar": "gregory",
113      "timeZone": "Europe/Warsaw",
114      "uses24hourClock": true,
115      "firstWeekday": 1
116    }
117  ]`
118 */
119export const getCalendars = ExpoLocalization.getCalendars;
120// @needsAudit
121/**
122 * Get the latest native values from the device. Locale can be changed on some Android devices
123 * without resetting the app.
124 * > On iOS, changing the locale will cause the device to reset meaning the constants will always be
125 * correct.
126 *
127 * @example
128 * ```ts
129 * // When the app returns from the background on Android...
130 *
131 * const { locale } = await Localization.getLocalizationAsync();
132 * ```
133 * @deprecated
134 * Use Localization.getLocales() or Localization.getCalendars() instead.
135 */
136export async function getLocalizationAsync() {
137    return await ExpoLocalization.getLocalizationAsync();
138}
139//# sourceMappingURL=Localization.js.map