Skip to content

fix: use Win32 API for reliable system language detection#17

Open
SeoFood wants to merge 1 commit intomainfrom
issue-15
Open

fix: use Win32 API for reliable system language detection#17
SeoFood wants to merge 1 commit intomainfrom
issue-15

Conversation

@SeoFood
Copy link
Copy Markdown
Contributor

@SeoFood SeoFood commented Apr 3, 2026

Summary

  • Replace CultureInfo.CurrentUICulture with Win32 GetUserDefaultUILanguage() API for system language detection, which reads the Windows registry directly and is unaffected by parent-process culture inheritance from the Velopack installer
  • Centralize detection logic in Loc.DetectSystemLanguage() and update App.xaml.cs startup and PluginLocalization to use it
  • Add debug logging for language detection to aid future diagnostics

Fixes #15

Replace CultureInfo.CurrentUICulture with GetUserDefaultUILanguage()
which reads the Windows registry directly and is not affected by
parent-process culture inheritance from the Velopack installer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto detect system language not working

1 participant