ankitects/anki

Webview forms don't follow Anki's language preference

クローズ

#4,823 opened on 2026/05/12

 (1 件のコメント) (0 件のリアクション) (1 人の担当者)Rust (2,965 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (27,973 個のスター)
PR merge metrics
 (平均マージ 4d) (30d で 68 merged PRs)

説明

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

コントリビューターガイド