19 lines
532 B
JavaScript
19 lines
532 B
JavaScript
// @flow
|
|
|
|
declare type I18Next$Translate$Config = {
|
|
defaultValue: string,
|
|
replace?: {
|
|
[string]: string
|
|
}
|
|
};
|
|
|
|
declare type I18Next$Translate = (key: string, config: I18Next$Translate$Config) => string;
|
|
|
|
declare module 'react-i18next' {
|
|
declare module.exports: {
|
|
I18nextProvider: React$StatelessFunctionalComponent<*>,
|
|
reactI18nextModule: {},
|
|
translate: (context: string | Array<string>) => (component: React$Component<*> | React$StatelessFunctionalComponent<*>) => React$StatelessFunctionalComponent<*>
|
|
}
|
|
}
|