ghost-portal/flow-typed/react-i18next.js
Jaco Greeff 6631261ed9
Connecting overlay (#3)
* NotFound translatable

* Connecting overlay

* Update rx-react (proper state management)

* Use i18n-next everywhere

* @flow updates
2018-04-24 17:02:44 +02:00

20 lines
582 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<*>,
Trans: React$StatelessFunctionalComponent<*>,
reactI18nextModule: {},
translate: (context: string | Array<string>) => (component: React$Component<*> | React$StatelessFunctionalComponent<*>) => React$StatelessFunctionalComponent<*>
}
}