1 | export declare const enum DATA_FIELD {
|
2 | second = "second",
|
3 | secondShort = "second-short",
|
4 | secondNarrow = "second-narrow",
|
5 | minute = "minute",
|
6 | minuteShort = "minute-short",
|
7 | minuteNarrow = "minute-narrow",
|
8 | hour = "hour",
|
9 | hourShort = "hour-short",
|
10 | hourNarrow = "hour-narrow",
|
11 | day = "day",
|
12 | dayShort = "day-short",
|
13 | dayNarrow = "day-narrow",
|
14 | week = "week",
|
15 | weekShort = "week-short",
|
16 | weekNarrow = "week-narrow",
|
17 | month = "month",
|
18 | monthShort = "month-short",
|
19 | monthNarrow = "month-narrow",
|
20 | quarter = "quarter",
|
21 | quarterShort = "quarter-short",
|
22 | quarterNarrow = "quarter-narrow",
|
23 | year = "year",
|
24 | yearShort = "year-short",
|
25 | yearNarrow = "year-narrow"
|
26 | }
|
27 | export declare const enum SUPPORTED_FIELD {
|
28 | second = "second",
|
29 | secondShort = "second-short",
|
30 | secondNarrow = "second-narrow",
|
31 | minute = "minute",
|
32 | minuteShort = "minute-short",
|
33 | minuteNarrow = "minute-narrow",
|
34 | hour = "hour",
|
35 | hourShort = "hour-short",
|
36 | hourNarrow = "hour-narrow",
|
37 | day = "day",
|
38 | dayShort = "day-short",
|
39 | dayNarrow = "day-narrow",
|
40 | week = "week",
|
41 | weekShort = "week-short",
|
42 | weekNarrow = "week-narrow",
|
43 | month = "month",
|
44 | monthShort = "month-short",
|
45 | monthNarrow = "month-narrow",
|
46 | year = "year",
|
47 | yearShort = "year-short",
|
48 | yearNarrow = "year-narrow"
|
49 | }
|
50 | export declare const enum STYLE {
|
51 | bestFit = "best fit",
|
52 | numeric = "numeric"
|
53 | }
|
54 | export interface LocaleData {
|
55 | locale: string;
|
56 | parentLocale?: string;
|
57 | fields?: {
|
58 | [f in DATA_FIELD]: {
|
59 | displayName: string;
|
60 | relative: Record<string, string>;
|
61 | relativePeriod?: string;
|
62 | relativeTime: {
|
63 | future: Record<string, string>;
|
64 | past: Record<string, string>;
|
65 | };
|
66 | };
|
67 | };
|
68 | }
|