1export type Localization = { 2 /** 3 * Three-character ISO 4217 currency code. Returns `null` on web. 4 * 5 * @example `USD`, `EUR`, `CNY`, null 6 */ 7 currency: string | null; 8 /** 9 * Decimal separator used for formatting numbers. 10 * 11 * @example `,`, '.' 12 */ 13 decimalSeparator: string; 14 /** 15 * Digit grouping separator used when formatting numbers larger than 1000. 16 * 17 * @example `.`, '', ',' 18 */ 19 digitGroupingSeparator: string; 20 /** 21 * List of all the supported language ISO codes. 22 */ 23 isoCurrencyCodes: string[]; 24 /** 25 * Boolean value that indicates whether the system uses the metric system. 26 * On Android and web, this is inferred from the current region. 27 */ 28 isMetric: boolean; 29 /** 30 * Returns if the system's language is written from Right-to-Left. 31 * This can be used to build features like [bidirectional icons](https://material.io/design/usability/bidirectionality.html). 32 * 33 * Returns `false` in SSR environments. 34 */ 35 isRTL: boolean; 36 /** 37 * An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag), 38 * consisting of a two-character language code and optional script, region and variant codes. 39 * 40 * @example `en`, `en-US`, `zh-Hans`, `zh-Hans-CN`, `en-emodeng` 41 */ 42 locale: string; 43 /** 44 * List of all the languages provided by the user settings. 45 * These are returned in the order the user defines in their device settings. 46 * 47 * @example [`en`, `en-US`, `zh-Hans`, `zh-Hans-CN`, `en-emodeng`] 48 */ 49 locales: string[]; 50 /** 51 * The region code for your device that comes from the Region setting under Language & Region on iOS. 52 * This value is always available on iOS, but might return `null` on Android or web. 53 * 54 * @example `US`, `NZ`, null 55 */ 56 region: string | null; 57 /** 58 * The current timezone in display format. 59 * On Web timezone is calculated with Intl.DateTimeFormat().resolvedOptions().timeZone. For a better estimation you could use the moment-timezone package but it will add significant bloat to your website's bundle size. 60 * 61 * @example `America/Los_Angeles` 62 */ 63 timezone: string; 64}; 65