Skip to content

Windows Electron 启动时序问题:LevelDB 在 initLocale() 执行时尚未完全加载,导致回退到英文 #2767

Closed

Description

@arieszengsky

平台:Windows 11
现象:语言设置 openwork.language = zh 已正确写入 LevelDB,但重启后 initLocale() 读取时返回 en
根因推测:Electron 的 LevelDB-backed localStorage 在 index.tsx 中 initLocale() 调用时尚未完成初始化,导致 getItem() 返回 null

Activity

  1. OmarMcAdam commented on Oct 28, 2026

    @OmarMcAdam
    Member

    closed due to age, please reopen and tag me if still valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions