1export type Localization = { 2 /** 3 * Native device language, returned in standard format. 4 * 5 * @example `en`, `en-US`, `es-US` 6 */ 7 locale: string; 8 /** 9 * List of all the native languages provided by the user settings. 10 * These are returned in the order the user defines in their native settings. 11 */ 12 locales: string[]; 13 /** 14 * The current timezone in display format. 15 * 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. 16 * 17 * @example `America/Los_Angeles` 18 */ 19 timezone: string; 20 /** 21 * A list of all the supported language ISO codes. 22 */ 23 isoCurrencyCodes?: string[]; 24 /** 25 * **Available on iOS and web**: Region code for your device which came from Region setting in Language & Region. 26 * 27 * @example `US`, `NZ` 28 */ 29 region: string | null; 30 /** 31 * Returns if the system's language is written from Right-to-Left. 32 * This can be used to build features like [bidirectional icons](https://material.io/design/usability/bidirectionality.html). 33 * 34 * Returns `false` in SSR environments. 35 */ 36 isRTL: boolean; 37}; 38