From de95c68d7571df3c20ea6eb140f70721dcb2d939 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 22 Jun 2022 01:33:08 +0530 Subject: [PATCH] fix: remove unnecessary options passed to language detector (#5336) --- src/excalidraw-app/index.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx index a3f6ce1c..c67e48bc 100644 --- a/src/excalidraw-app/index.tsx +++ b/src/excalidraw-app/index.tsx @@ -18,7 +18,7 @@ import { NonDeletedExcalidrawElement, } from "../element/types"; import { useCallbackRefState } from "../hooks/useCallbackRefState"; -import { Language, t } from "../i18n"; +import { t } from "../i18n"; import { Excalidraw, defaultLang, @@ -80,11 +80,7 @@ const isExcalidrawPlusSignedUser = document.cookie.includes( const languageDetector = new LanguageDetector(); languageDetector.init({ - languageUtils: { - formatLanguageCode: (langCode: Language["code"]) => langCode, - isWhitelisted: () => true, - }, - checkWhitelist: false, + languageUtils: {}, }); const initializeScene = async (opts: {