diff --git a/packages/client/src/config.ts b/packages/client/src/config.ts index 0b346d1dd..e77ee87e8 100644 --- a/packages/client/src/config.ts +++ b/packages/client/src/config.ts @@ -12,7 +12,7 @@ export const wsUrl = `${url .replace("https://", "wss://")}/streaming`; export const lang = localStorage.getItem("lang"); export const langs = _LANGS_; -export const locale = JSON.parse(localStorage.getItem("locale")); +export const locale = JSON.parse(localStorage.getItem("locale") || "en-US"); export const version = _VERSION_; export const instanceName = siteName === "Firefish" ? host : siteName; export const ui = localStorage.getItem("ui");