UNPKG

1.96 kBTypeScriptView Raw
1import * as React from 'react';
2import type { ValidateMessages } from 'rc-field-form/lib/interface';
3import type { PickerLocale as DatePickerLocale } from '../date-picker/generatePicker';
4import type { TransferLocale as TransferLocaleForEmpty } from '../empty';
5import type { ModalLocale } from '../modal/locale';
6import type { PaginationLocale } from '../pagination/Pagination';
7import type { PopconfirmLocale } from '../popconfirm/PurePanel';
8import type { TableLocale } from '../table/interface';
9import type { TourLocale } from '../tour/interface';
10import type { TransferLocale } from '../transfer';
11import type { UploadLocale } from '../upload/interface';
12export { default as useLocale } from './useLocale';
13export declare const ANT_MARK = "internalMark";
14export interface Locale {
15 locale: string;
16 Pagination?: PaginationLocale;
17 DatePicker?: DatePickerLocale;
18 TimePicker?: Record<string, any>;
19 Calendar?: Record<string, any>;
20 Table?: TableLocale;
21 Modal?: ModalLocale;
22 Tour?: TourLocale;
23 Popconfirm?: PopconfirmLocale;
24 Transfer?: TransferLocale;
25 Select?: Record<string, any>;
26 Upload?: UploadLocale;
27 Empty?: TransferLocaleForEmpty;
28 global?: Record<string, any>;
29 Icon?: Record<string, any>;
30 Text?: {
31 edit?: any;
32 copy?: any;
33 copied?: any;
34 expand?: any;
35 collapse?: any;
36 };
37 Form?: {
38 optional?: string;
39 defaultValidateMessages: ValidateMessages;
40 };
41 Image?: {
42 preview: string;
43 };
44 QRCode?: {
45 expired?: string;
46 refresh?: string;
47 scanned?: string;
48 };
49 ColorPicker?: {
50 presetEmpty: string;
51 transparent: string;
52 singleColor: string;
53 gradientColor: string;
54 };
55}
56export interface LocaleProviderProps {
57 locale: Locale;
58 children?: React.ReactNode;
59}
60declare const LocaleProvider: React.FC<LocaleProviderProps>;
61export default LocaleProvider;