UNPKG

4.34 kBTypeScriptView Raw
1export interface ComponentLocaleObject {
2 [key: string]: string | ComponentLocaleObject | undefined | boolean;
3}
4export interface LocaleConfig {
5 rtl?: boolean;
6 momentLocale?: string;
7 dateLocale?: string;
8}
9export interface Locale extends LocaleConfig {
10 Timeline: {
11 expand: string;
12 fold: string;
13 };
14 Balloon: {
15 close: string;
16 };
17 Card: {
18 expand: string;
19 fold: string;
20 };
21 Calendar: {
22 today: string;
23 now: string;
24 ok: string;
25 clear: string;
26 month: string;
27 year: string;
28 prevYear: string;
29 nextYear: string;
30 prevMonth: string;
31 nextMonth: string;
32 prevDecade: string;
33 nextDecade: string;
34 yearSelectAriaLabel: string;
35 monthSelectAriaLabel: string;
36 };
37 DatePicker: {
38 placeholder: string;
39 datetimePlaceholder: string;
40 monthPlaceholder: string;
41 weekPlaceholder: string;
42 yearPlaceholder: string;
43 now: string;
44 selectTime: string;
45 selectDate: string;
46 ok: string;
47 clear: string;
48 startPlaceholder: string;
49 endPlaceholder: string;
50 hour: string;
51 minute: string;
52 second: string;
53 };
54 Dialog: Partial<{
55 close: string;
56 ok: string;
57 cancel: string;
58 }>;
59 Drawer: {
60 close: string;
61 };
62 Message: {
63 closeAriaLabel: string;
64 };
65 Pagination: {
66 prev: string;
67 next: string;
68 goTo: string;
69 page: string;
70 go: string;
71 total: string;
72 labelPrev: string;
73 labelNext: string;
74 inputAriaLabel: string;
75 selectAriaLabel: string;
76 pageSize: string;
77 };
78 Input: {
79 clear: string;
80 };
81 TextArea: {
82 clear: string;
83 };
84 List: {
85 empty: string;
86 };
87 Select: {
88 selectPlaceholder: string;
89 autoCompletePlaceholder: string;
90 notFoundContent: string;
91 maxTagPlaceholder: string;
92 selectAll: string;
93 };
94 TreeSelect: {
95 maxTagPlaceholder: string;
96 shortMaxTagPlaceholder: string;
97 };
98 Table: {
99 empty: string;
100 ok: string;
101 reset: string;
102 asc: string;
103 desc: string;
104 expanded: string;
105 folded: string;
106 filter: string;
107 selectAll: string;
108 };
109 TimePicker: {
110 placeholder: string;
111 clear: string;
112 hour: string;
113 minute: string;
114 second: string;
115 ok: string;
116 };
117 Transfer: {
118 items: string;
119 item: string;
120 moveAll: string;
121 searchPlaceholder: string;
122 moveToLeft: string;
123 moveToRight: string;
124 };
125 Upload: {
126 card: {
127 cancel: string;
128 addPhoto: string;
129 download: string;
130 delete: string;
131 };
132 drag: {
133 text: string;
134 hint: string;
135 };
136 upload: {
137 delete: string;
138 };
139 };
140 Search: {
141 buttonText: string;
142 };
143 Tag: {
144 delete: string;
145 };
146 Rating: {
147 description: string;
148 };
149 Switch: {
150 on: string;
151 off: string;
152 };
153 Tab: {
154 closeAriaLabel: string;
155 };
156 Form: {
157 Validate: {
158 default: string;
159 required: string;
160 format: {
161 number: string;
162 email: string;
163 url: string;
164 tel: string;
165 };
166 number: {
167 length: string;
168 min: string;
169 max: string;
170 minLength: string;
171 maxLength: string;
172 };
173 string: {
174 length: string;
175 min: string;
176 max: string;
177 minLength: string;
178 maxLength: string;
179 };
180 array: {
181 length: string;
182 minLength: string;
183 maxLength: string;
184 };
185 pattern: string;
186 };
187 };
188 [key: string]: ComponentLocaleObject | boolean | string | undefined;
189}
190/**
191 * @deprecated type locale is deprecated, use Locale instead
192 */
193export type locale = Locale;