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 合併指標
 (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

貢獻者指南