Support the language override for unpackaged distribution (ZIP, Portable) #22760

Closed
opened 2026-01-31 08:22:40 +00:00 by claunia · 2 comments
Owner

Originally created by @denis-komarov on GitHub (Jan 9, 2025).

Description of the new feature

Language setting for unpackaged distribution (ZIP, Portable) that allow you to set the language explicitly.

Proposed technical implementation details

The specified issues 16018, 18336 related to support for language settings in unpackaged distributions were closed due to limitations of the Windows platform. These limitations seem to have already been addressed in the Windows platform as of Windows App SDK version 1.6.240701003. This is discussed in [MRTCore] Add Microsoft.Windows.Globalization.ApplicationLanguages ​​class #4523 :

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.

Originally created by @denis-komarov on GitHub (Jan 9, 2025). ### Description of the new feature Language setting for unpackaged distribution (ZIP, Portable) that allow you to set the language explicitly. ### Proposed technical implementation details The specified issues [16018](https://github.com/microsoft/terminal/issues/16018), [18336](https://github.com/microsoft/terminal/issues/18336) related to support for language settings in unpackaged distributions were closed due to **limitations of the Windows platform**. These limitations seem to have already been addressed in the Windows platform as of **Windows App SDK version 1.6.240701003**. This is discussed in [[MRTCore] Add Microsoft.Windows.Globalization.ApplicationLanguages ​​class #4523](https://github.com/microsoft/WindowsAppSDK/pull/4523) : > 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**.
Author
Owner

@DHowett commented on GitHub (Jan 9, 2025):

Thanks!

Terminal does not currently use any version of WinAppSDK, and there is a cost (in performance, in disk space, and in memory usage) to switching. I'll mark this task up and stick it on the backlog.

@DHowett commented on GitHub (Jan 9, 2025): Thanks! Terminal does not currently use any version of WinAppSDK, and there is a cost (in performance, in disk space, and in memory usage) to switching. I'll mark this task up and stick it on the backlog.
Author
Owner

@mdnchauhan commented on GitHub (Feb 19, 2025):

Hi,

Thread #1687 is closed. But I am facing same issue in setting the default language in unpackaged application.
As my app tries to set the default lang by - winrt::Windows::Globalization::ApplicationLanguages::PrimaryLanguageOverride
this property throws exception message "The process has no package identity".

Application type- WinUI3 XAML based C++WinRT, Unpackaged App
Microsoft.WindowsAppSDK version 1.6.250205002

Is there any way to fix it or any other property that I can use in unpackaged application for setting the default Lang?

Thanks.

@mdnchauhan commented on GitHub (Feb 19, 2025): Hi, Thread [#1687](https://github.com/microsoft/WindowsAppSDK/issues/1687) is closed. But I am facing same issue in setting the default language in unpackaged application. As my app tries to set the default lang by - **winrt::Windows::Globalization::ApplicationLanguages::PrimaryLanguageOverride** this property throws exception message "The process has no package identity". Application type- WinUI3 XAML based C++WinRT, Unpackaged App Microsoft.WindowsAppSDK version 1.6.250205002 Is there any way to fix it or any other property that I can use in unpackaged application for setting the default Lang? Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22760