-
Notifications
You must be signed in to change notification settings - Fork 802
Open
Labels
area-ToggleSwitchbugSomething isn't workingSomething isn't workinggroup-languageteam-ControlsIssue for the Controls teamIssue for the Controls team
Description
Describe the bug
As the title says. In unpackage apps, I try to set PrimaryLanguageOverride. Then the language in the application has changed, but the On/Off Content of ToggleSwitch is still the system language, not the corresponding language of PrimaryLanguageOverride. This will not happen in Package apps.
Steps to reproduce the bug
- Set your system language to non-English. Such as Chinese, French, Japanese, etc.
- In App.xaml.cs,
Microsoft.Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "en-us" - Run application as Unpackage
Expected behavior
You will see, ToggleSwitch's On/Off Content text will be your system language.If you run application as Package, the text will be displayed correctly in English.
Screenshots
Unpackage:
Package:
NuGet package version
WinUI 3 - Windows App SDK 1.6.6: 1.6.250228001
Windows version
Windows 11 (23H2): Build 22631
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-ToggleSwitchbugSomething isn't workingSomething isn't workinggroup-languageteam-ControlsIssue for the Controls teamIssue for the Controls team

