IPlatformSettings.PreferredApplicationLanguage API - #20108
Merged
Conversation
# Conflicts: # samples/ControlCatalog/MainView.xaml # src/Browser/Avalonia.Browser/BrowserPlatformSettings.cs # src/Windows/Avalonia.Win32/Win32Platform.cs # src/Windows/Avalonia.Win32/Win32PlatformSettings.cs
…ICulture for default PreferredApplicationLanguage implementation
…etUserDefaultLocaleName
maxkatz6
marked this pull request as ready for review
August 18, 2026 13:10
…erredUILanguages doesn't work as expected with Windows settigns
Member
Author
|
@MrJul I resurrected this PR. So far tested on Windows, Android and Browser. Linux should be no-op. Will check iOS tomorrow. |
|
You can test this PR using the following package version. |
rabbitism
reviewed
Aug 18, 2026
MrJul
reviewed
Aug 18, 2026
Member
|
Tested:
So everything works as expected on all OSes, as the change callbacks are platform limitations. |
# Conflicts: # src/Android/Avalonia.Android/Platform/AndroidPlatformSettings.cs # src/Avalonia.Native/NativePlatformSettings.cs # src/Browser/Avalonia.Browser/BrowserPlatformSettings.cs # src/Browser/Avalonia.Browser/BrowserTopLevelImpl.cs # src/Windows/Avalonia.Win32/Win32PlatformSettings.cs # src/iOS/Avalonia.iOS/PlatformSettings.cs
maxkatz6
force-pushed
the
preferred-language-api
branch
from
August 19, 2026 05:12
01dd3e1 to
f2af57c
Compare
|
You can test this PR using the following package version. |
MrJul
enabled auto-merge
August 19, 2026 06:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does the pull request do?
public interface IPlatformSettings { + /// <summary> + /// Gets the preferred application language as specified in the operating system settings. + /// </summary> + string PreferredApplicationLanguage { get; } + /// <summary> + /// Raises when the preferred application language is changed in the operating system settings. + /// </summary> + event EventHandler? PreferredApplicationLanguageChanged; }Status
Checklist
Fixed issues
Partially implements #19402