1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00

Refactor CJS require to ESM (#1841)

Resolves https://github.com/excalidraw/excalidraw/pull/1793#discussion_r447067827
This commit is contained in:
Minh Nguyen 2020-06-29 19:22:27 +01:00 committed by GitHub
parent 0a3fb70ec7
commit a679ef7876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,7 @@
import LanguageDetector from "i18next-browser-languagedetector";
import fallbackLanguageData from "./locales/en.json";
export const languages = [
{ lng: "en", label: "English", data: "en.json" },
{ lng: "bg-BG", label: "Български", data: "bg-BG.json" },
@ -30,7 +32,6 @@ export const languages = [
let currentLanguage = languages[0];
let currentLanguageData = {};
const fallbackLanguage = languages[0];
const fallbackLanguageData = require("./locales/en.json");
export const setLanguage = async (newLng: string | undefined) => {
currentLanguage =