From d0e73bd6b2453f2ce13afa164aa94793e83449a1 Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Sat, 20 May 2023 23:44:35 +0800 Subject: [PATCH] Revert "Not to detect user lang when running in Node" --- app/locales/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/locales/index.ts b/app/locales/index.ts index 7c88c0d..22c417d 100644 --- a/app/locales/index.ts +++ b/app/locales/index.ts @@ -66,9 +66,6 @@ function setItem(key: string, value: string) { } function getLanguage() { - if (typeof process === "object") { - return DEFAULT_LANG; - } try { return navigator.language.toLowerCase(); } catch {