Skip to content

[MRTCore] Add Microsoft.Windows.Globalization.ApplicationLanguages class - #4523

Merged
Keith Mahoney (kmahone) merged 13 commits into
mainfrom
user/kmahone/add_primary_language_override
Jun 28, 2024
Merged

[MRTCore] Add Microsoft.Windows.Globalization.ApplicationLanguages class#4523
Keith Mahoney (kmahone) merged 13 commits into
mainfrom
user/kmahone/add_primary_language_override

Conversation

@kmahone

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

/azp run

@kmahone

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

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

1 similar comment
@azure-pipelines

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

@kmahone

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@kmahone

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

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

@kmahone

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@ghost1372

Copy link
Copy Markdown
Contributor

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

@codendone Mike Crider (codendone) added this to the 1.6 milestone Jul 1, 2024
@codendone

Copy link
Copy Markdown
Collaborator

Mahdi Hosseini (@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