ankitects/anki

Webview forms don't follow Anki's language preference

Fermée

#4 823 ouverte le 12 mai 2026

 (1 commentaire) (0 réaction) (1 personne assignée)Rust (2 965 forks)batch import
good first issue

Métriques du dépôt

Stars
 (27 973 étoiles)
Métriques de merge PR
 (Merge moyen 4j) (68 PRs mergées en 30 j)

Description

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

Guide contributeur