Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(i18n) Fix translate Typescript (#11949)
Robert Pintilii22a52dafcaf6
diff --git a/react/features/base/i18n/functions.tsx b/react/features/base/i18n/functions.tsxindex 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<P extends WithTranslation>(component: React.ComponentType<P>) {// Use the default list of namespaces.return withTranslation([ 'main', 'languages', 'countries' ])(component);}