forked from zoontek/react-native-localize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.js
More file actions
33 lines (29 loc) · 820 Bytes
/
types.js
File metadata and controls
33 lines (29 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// @flow
export type Option<T> = T | boolean;
export type Calendar = "gregorian" | "japanese" | "buddhist";
export type LocalizationEvent = "change";
export type TemperatureUnit = "celsius" | "fahrenheit";
export type Locale = {|
+languageCode: string,
+scriptCode?: string,
+countryCode: string,
+languageTag: string,
+isRTL: boolean,
|};
export type NumberFormatSettings = {|
+decimalSeparator: string,
+groupingSeparator: string,
|};
export type LocalizationConstants = {|
calendar: Calendar,
country: string,
currencies: string[],
locales: Locale[],
numberFormatSettings: NumberFormatSettings,
temperatureUnit: TemperatureUnit,
timeZone: string,
uses24HourClock: boolean,
usesMetricSystem: boolean,
usesAutoDateAndTime: Option<boolean>,
usesAutoTimeZone: Option<boolean>,
|};