From 22a52dafcaf6835b36e9322db4b2cb65a37e0c2f Mon Sep 17 00:00:00 2001 From: Robert Pintilii Date: Tue, 2 Aug 2022 14:41:12 +0300 Subject: [PATCH] fix(i18n) Fix translate Typescript (#11949) --- react/features/base/i18n/functions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/base/i18n/functions.tsx b/react/features/base/i18n/functions.tsx index 224ab6c2d6..2a722693b0 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); }