Fixing language detector trying to run on node server.

This commit is contained in:
Dessalines 2023-06-21 19:44:32 -04:00
parent cb5d20a775
commit b3a54527ef

View file

@ -80,9 +80,10 @@ class LanguageDetector {
detect() { detect() {
const langs: string[] = []; const langs: string[] = [];
const myLang = const myLang = isBrowser()
UserService.Instance.myUserInfo?.local_user_view.local_user ? UserService.Instance.myUserInfo?.local_user_view.local_user
.interface_language ?? "browser"; .interface_language ?? "browser"
: "browser";
if (myLang !== "browser") langs.push(myLang); if (myLang !== "browser") langs.push(myLang);