ankitects/anki

Webview forms don't follow Anki's language preference

Fechada

#4.823 aberto em 12 de mai. de 2026

 (1 comentário) (0 reação) (1 responsável)Rust (2.965 forks)batch import
good first issue

Métricas do repositório

Stars
 (27.973 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador