UNPKG

2.14 kBPlain TextView Raw
1interface AccordionLocale {
2 collapse: string;
3 expand: string;
4}
5
6interface BreadcrumbLocale {
7 ariaLabel: string;
8}
9
10interface DatepickerLocale {
11 ariaLabel: string;
12 ariaLabelRange: string;
13 ariaLabelCalendar: string;
14 ariaRoleDescriptionCalendarMonth: string;
15 nextMonth: string;
16 previousMonth: string;
17 pastWeek: string;
18 pastMonth: string;
19 pastThreeMonths: string;
20 pastSixMonths: string;
21 pastYear: string;
22 pastTwoYears: string;
23 screenReaderMessageInput: string;
24 selectedDate: string;
25 selectedDateRange: string;
26 selectSecondDatePrompt: string;
27 quickSelectLabel: string;
28 quickSelectAriaLabel: string;
29 quickSelectPlaceholder: string;
30 timeSelectEndLabel: string;
31 timeSelectStartLabel: string;
32 timePickerAriaLabel?: string;
33 timePickerAriaLabel12Hour: string;
34 timePickerAriaLabel24Hour: string;
35 timezonePickerAriaLabel: string;
36 selectedStartDateLabel: string;
37 selectedEndDateLabel: string;
38 dateNotAvailableLabel: string;
39 dateAvailableLabel: string;
40 selectedLabel: string;
41 chooseLabel: string;
42}
43
44interface DataTableLocale {
45 emptyState: string;
46 loadingState: string;
47}
48
49interface ButtonGroupLocale {
50 ariaLabel: string;
51}
52
53interface FileUploaderLocale {
54 dropFilesToUpload: string;
55 or: string;
56 browseFiles: string;
57 retry: string;
58 cancel: string;
59}
60
61interface MenuLocale {
62 noResultsMsg: string;
63 parentMenuItemAriaLabel: string;
64}
65
66interface ModalLocale {
67 close: string;
68}
69
70interface DrawerLocale {
71 close: string;
72}
73
74interface PaginationLocale {
75 prev: string;
76 next: string;
77 preposition: string;
78}
79
80interface SelectLocale {
81 // Remove noResultsMsg prop in the next major version
82 noResultsMsg: string;
83 placeholder: string;
84 create: string;
85}
86
87interface ToastLocale {
88 close: string;
89}
90
91export interface Locale {
92 accordion: AccordionLocale;
93 breadcrumbs: BreadcrumbLocale;
94 datepicker: DatepickerLocale;
95 datatable: DataTableLocale;
96 buttongroup: ButtonGroupLocale;
97 fileuploader: FileUploaderLocale;
98 menu: MenuLocale;
99 modal: ModalLocale;
100 drawer: DrawerLocale;
101 pagination: PaginationLocale;
102 select: SelectLocale;
103 toast: ToastLocale;
104}