INNER CODE UNIT · TypeScript

setWorkspaceLanguage

evolution-foundation/evo-nexus · dashboard/frontend/src/i18n/index.ts:103

export function setWorkspaceLanguage(raw: string | null | undefined): void {
  const normalized = normalizeLocale(raw)
  if (i18n.language !== normalized) {
    i18n.changeLanguage(normalized)
  }
  try {
    localStorage.setItem('evo_lang', normalized)
  } catch {
    // private mode / storage disabled — not fatal
  }
}

export default i18n

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…