Skip to content

Conversation

kmahone
Copy link
Member

@kmahone kmahone commented Jun 28, 2024

A port of PR #4181

It looks like there are issues running the validation pipeline from forks, so porting the commits to a branch in this repo.

Changing the application language using PrimaryLanguageOverride property from Windows.Globalization.ApplicationLanguages namespace is not supported for WindowsAppSDK unpackaged apps, only for packaged. To support language change for un-packaged applications Microsoft.Windows.Globalization.ApplicationLanguages.ApplicationLanguages type is introduced in MRTCore. Microsoft.Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride property is supported both for packaged and un-packaged WindowsAppSDK apps.

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

@kmahone
Copy link
Member Author

kmahone commented Jun 28, 2024

/azp run

@kmahone
Copy link
Member Author

kmahone commented Jun 28, 2024

/azp run

Copy link

Pipelines were unable to run due to time out waiting for the pull request to finish merging.

1 similar comment
Copy link

Pipelines were unable to run due to time out waiting for the pull request to finish merging.

@kmahone
Copy link
Member Author

kmahone commented Jun 28, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kmahone
Copy link
Member Author

kmahone commented Jun 28, 2024

/azp run

Copy link

Pipelines were unable to run due to time out waiting for the pull request to finish merging.

@kmahone
Copy link
Member Author

kmahone commented Jun 28, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kmahone kmahone merged commit 56b47ff into main Jun 28, 2024
@kmahone kmahone deleted the user/kmahone/add_primary_language_override branch June 28, 2024 21:13
@ghost1372
Copy link
Contributor

@kmahone tnx for this great api, can we use it with next release? (v1.6-exp2 ?)

@codendone codendone added this to the 1.6 milestone Jul 1, 2024
@codendone
Copy link
Collaborator

@ghost1372 Yes, this API is in the 1.6.240701003-experimental2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants