fix: rerender i18n in host components on lang change (#6224)

This commit is contained in:
David Luzar
2023-02-22 15:01:23 +01:00
committed by GitHub
parent e4506be3e8
commit 04a8c22f39
14 changed files with 88 additions and 72 deletions

View File

@@ -1,12 +1,13 @@
import React from "react";
import { PlusPromoIcon } from "../../components/icons";
import { t } from "../../i18n";
import { useI18n } from "../../i18n";
import { WelcomeScreen } from "../../packages/excalidraw/index";
import { isExcalidrawPlusSignedUser } from "../app_constants";
export const AppWelcomeScreen: React.FC<{
setCollabDialogShown: (toggle: boolean) => any;
}> = React.memo((props) => {
const { t } = useI18n();
let headingContent;
if (isExcalidrawPlusSignedUser) {