WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

[MRTCore] Add global PrimaryLanguageOverride switch

Open stefansjfw opened this issue 1 year ago • 6 comments

Changing the application language by setting Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride to a specific language is not supported for WASDK unpackaged app, only for packaged ones. To support the same behavior for unpackaged applications similar switch is introduced into WASDK MRTCore module.

Sample app used to verify the change: https://github.com/stefansjfw/testwasdk/blob/master/testlocalwinappsdk/App.xaml.cs#L36

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING: Comments made by azure-pipelines bot maybe inaccurate. Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR (https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary) and run the build against your PR branch with the default parameters.

stefansjfw avatar Feb 09 '24 13:02 stefansjfw

/azp run

stefansjfw avatar Feb 09 '24 13:02 stefansjfw

Commenter does not have sufficient privileges for PR 4181 in repo microsoft/WindowsAppSDK

azure-pipelines[bot] avatar Feb 09 '24 13:02 azure-pipelines[bot]

while doubtful /azp run

crutkas avatar Feb 10 '24 04:02 crutkas

/azp run

crutkas avatar Feb 10 '24 05:02 crutkas

Commenter does not have sufficient privileges for PR 4181 in repo microsoft/WindowsAppSDK

azure-pipelines[bot] avatar Feb 10 '24 05:02 azure-pipelines[bot]

This is needed for PowerToys to fully enable language override

crutkas avatar Apr 23 '24 21:04 crutkas

note: changing namespace to Microsoft.Windows.Globalization.ApplicationLanguages is in progress (as decided during API review)

stefansjfw avatar Jun 26 '24 16:06 stefansjfw

note: changing namespace to Microsoft.Windows.Globalization.ApplicationLanguages is in progress (as decided during API review)

change pushed

stefansjfw avatar Jun 27 '24 13:06 stefansjfw

/azp run

kmahone avatar Jun 28 '24 16:06 kmahone

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 28 '24 16:06 azure-pipelines[bot]

This has been merged as #4523

kmahone avatar Jun 28 '24 21:06 kmahone