Open hprobotic opened 6 years ago
For someone who get stuck with this package. Here is the solution
type I18nType = {
setLanguage: (language: string) => void,
getLanguage: () => string,
getInterfaceLanguage: () => string,
formatString: (str: string, ...values: any[]) => string,
getAvailableLanguages: () => string[],
getString: (key: string, language: string) => string,
setContent: (props: any) => void,
[_: string]: string | { [_: string]: string | number }
}
Hi guys
We working applied both react-localization and flow type in our project. But we faced some error between flow-type. Please check below
So is react-localization supported flow-type yet?