ankitects/anki

Webview forms don't follow Anki's language preference

已关闭

#4,823 创建于 2026年5月12日

 (1 条评论) (0 个反应) (1 位负责人)Rust (2,965 个派生)batch import
good first issue

仓库指标

星标
 (27,973 个星标)
PR 合并指标
 (平均合并 4天) (30 天内合并 68 个 PR)

描述

Problem

Webview inputs such as date pickers don't follow the language set in Anki preferences.

Solution

  • Set the app locale using QLocale::setDefault.
  • Pass the user's language to Chromium using the --lang flag with the QTWEBENGINE_CHROMIUM_FLAGS environment variable.

Related: #4820

贡献者指南