Skip to content

LocalizationService does not set a culture in Windows (Unpackaged) Head #2133

@Seekuhnetz

Description

@Seekuhnetz

Current behavior

I created a new App with the UnoApp Template and Localization and Configuration enabled.
I added the ToggleLocalizationAsync() of this page.

The Current Culture gets updated in the (Packaged) but not in the (Unpackaged) Windows Head.

I also had to add .Section<LocalizationConfiguration>() under configBuilder in my App.cs else the SupportedCultures would be empty.
I guess the problem could be fixed if i was able to also add .Section<LocalizationSettings>(). But i can not because it is internal.

Expected behavior

The Current Culture should be updated in the (Unpackaged) Windows Head like in the (Packaged) Head.

How to reproduce it (as minimally and precisely as possible)

  • Create a new Uno App with the UnoApp Template and Localization and Configuration enabled.
  • Add the ToggleLocalizationAsync() of this page.
  • Run the Windows (Unpackaged) Head

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Windows

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Metadata

Metadata

Labels

kind/bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions