diff --git a/react/features/base/i18n/functions.tsx b/react/features/base/i18n/functions.tsx index 224ab6c2d..2a722693b 100644 --- a/react/features/base/i18n/functions.tsx +++ b/react/features/base/i18n/functions.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { withTranslation } from 'react-i18next'; +import { WithTranslation, withTranslation } from 'react-i18next'; import i18next from './i18next'; @@ -24,7 +24,7 @@ export async function changeLanguageBundle(language: string, url: string) { * @returns {Component} The React Component which wraps {@link component} and * enables translations in it. */ -export function translate(component: any) { +export function translate

(component: React.ComponentType

) { // Use the default list of namespaces. return withTranslation([ 'main', 'languages', 'countries' ])(component); }