ankitects/anki

Webview forms don't follow Anki's language preference

Geschlossen

#4.823 geöffnet am 12.05.2026

 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)Rust (2.965 Forks)batch import
good first issue

Repository-Metriken

Stars
 (27.973 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T) (68 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide