UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

21 lines (20 loc) 580 B
import * as React from 'react'; export interface LocaleReceiverProps { componentName: string; defaultLocale: object | Function; children: (locale: object, localeCode?: string) => React.ReactElement<any>; } export interface LocaleReceiverContext { antLocale?: { [key: string]: any; }; } export default class LocaleReceiver extends React.Component<LocaleReceiverProps> { static contextTypes: { antLocale: any; }; context: LocaleReceiverContext; getLocale(): any; getLocaleCode(): any; render(): React.ReactElement<any>; }