yqcloud-ui
Version:
An enterprise-class UI design language and React-based implementation
23 lines (22 loc) • 658 B
TypeScript
/// <reference types="react" />
import * as React from 'react';
import PropTypes from 'prop-types';
export interface LocaleReceiverProps {
componentName: string;
defaultLocale: object | Function;
children: (locale: object, localeCode?: string) => React.ReactNode;
}
export interface LocaleReceiverContext {
antLocale?: {
[key: string]: any;
};
}
export default class LocaleReceiver extends React.Component<LocaleReceiverProps> {
static contextTypes: {
antLocale: PropTypes.Requireable<object>;
};
context: LocaleReceiverContext;
getLocale(): any;
getLocaleCode(): any;
render(): React.ReactNode;
}