Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

386 B
Raw Blame
/**
 * On desktop, `navigator.language` reports English regardless of the OS setting
 * because packaging prunes the locales Chromium resolves its app locale from.
 * The main process reads the OS language directly and hands it to the preload.
 */
export const getSystemLanguage = (): string =>
  (typeof window !== 'undefined' && window.lobeEnv?.systemLanguage) || navigator.language;