1 | import * as React from 'react';
|
2 | import type { ValidateMessages } from 'rc-field-form/lib/interface';
|
3 | import type { PickerLocale as DatePickerLocale } from '../date-picker/generatePicker';
|
4 | import type { TransferLocale as TransferLocaleForEmpty } from '../empty';
|
5 | import type { ModalLocale } from '../modal/locale';
|
6 | import type { PaginationLocale } from '../pagination/Pagination';
|
7 | import type { PopconfirmLocale } from '../popconfirm/PurePanel';
|
8 | import type { TableLocale } from '../table/interface';
|
9 | import type { TourLocale } from '../tour/interface';
|
10 | import type { TransferLocale } from '../transfer';
|
11 | import type { UploadLocale } from '../upload/interface';
|
12 | export { default as useLocale } from './useLocale';
|
13 | export declare const ANT_MARK = "internalMark";
|
14 | export 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 | }
|
56 | export interface LocaleProviderProps {
|
57 | locale: Locale;
|
58 | children?: React.ReactNode;
|
59 | }
|
60 | declare const LocaleProvider: React.FC<LocaleProviderProps>;
|
61 | export default LocaleProvider;
|