1 | import * as React from 'react';
|
2 | import * as PropTypes from 'prop-types';
|
3 | import { ModalLocale } from '../modal/locale';
|
4 | export declare const ANT_MARK = "internalMark";
|
5 | export interface Locale {
|
6 | locale: string;
|
7 | Pagination?: Object;
|
8 | DatePicker?: Object;
|
9 | TimePicker?: Object;
|
10 | Calendar?: Object;
|
11 | Table?: Object;
|
12 | Modal?: ModalLocale;
|
13 | Popconfirm?: Object;
|
14 | Transfer?: Object;
|
15 | Select?: Object;
|
16 | Upload?: Object;
|
17 | }
|
18 | export interface LocaleProviderProps {
|
19 | locale: Locale;
|
20 | children?: React.ReactNode;
|
21 | _ANT_MARK__?: string;
|
22 | }
|
23 | export default class LocaleProvider extends React.Component<LocaleProviderProps, any> {
|
24 | static propTypes: {
|
25 | locale: PropTypes.Requireable<object>;
|
26 | };
|
27 | static defaultProps: {
|
28 | locale: {};
|
29 | };
|
30 | static childContextTypes: {
|
31 | antLocale: PropTypes.Requireable<object>;
|
32 | };
|
33 | constructor(props: LocaleProviderProps);
|
34 | getChildContext(): {
|
35 | antLocale: {
|
36 | exist: boolean;
|
37 | locale: string;
|
38 | Pagination?: Object | undefined;
|
39 | DatePicker?: Object | undefined;
|
40 | TimePicker?: Object | undefined;
|
41 | Calendar?: Object | undefined;
|
42 | Table?: Object | undefined;
|
43 | Modal?: ModalLocale | undefined;
|
44 | Popconfirm?: Object | undefined;
|
45 | Transfer?: Object | undefined;
|
46 | Select?: Object | undefined;
|
47 | Upload?: Object | undefined;
|
48 | };
|
49 | };
|
50 | componentDidUpdate(prevProps: LocaleProviderProps): void;
|
51 | componentWillUnmount(): void;
|
52 | render(): React.ReactNode;
|
53 | }
|