fix: Flow, remove misused withTranslation on functional component

This commit is contained in:
Tom Moor
2021-07-30 00:52:42 -04:00
parent 37fd7ec97a
commit 63eb8aadaf
2 changed files with 5 additions and 11 deletions

View File

@ -6,7 +6,7 @@ export function detectLanguage() {
return `${ln}_${region}`;
}
export function changeLanguage(toLanguageString, i18n) {
export function changeLanguage(toLanguageString: ?string, i18n: any) {
if (toLanguageString && i18n.language !== toLanguageString) {
// Languages are stored in en_US format in the database, however the
// frontend translation framework (i18next) expects en-US