* Update rx-react/rx-api packages (16.3 compliant) * onChange & subject is optional * Cleanup translations * Clean up logging * Upgrades * Use yarn on Travis * install -> add * No lerna global install * Ignore engines * Update dev * Final dependency bumps * Simplify travis.yml more
20 lines
546 B
JavaScript
20 lines
546 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$ComponentType<*>) => React$StatelessFunctionalComponent<*>
|
|
}
|
|
}
|