Browse Source

fix: remove unnecessary options passed to language detector (#5336)

pull/5344/head
Aakansha Doshi 4 years ago committed by GitHub
parent
commit
de95c68d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/excalidraw-app/index.tsx

8
src/excalidraw-app/index.tsx

@ -18,7 +18,7 @@ import { @@ -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( @@ -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: {

Loading…
Cancel
Save