-
Notifications
You must be signed in to change notification settings - Fork 774
Description
Describe the bug
My application is - WinUI3 XAML based C++WinRT, Unpackaged App
for handling MultiLanguages strings, I am implementing .resw files.
[Microsoft.Windows.CppWinRT version 2.0.240405.15]
There are two resw files
Englishtext
Strings/en-US/Resources.resw
Polish text
Strings\pl-PL\Resources.resw
Problem :- I get the text of the Lang which is set as Preferred Lang in settings.
If it is a Polish machine and user has changed the "Preferred Languages" to English instead of Polish. (Settings -> Time&Language -> Lang & Region -> Preferred Languages ), then it picks English string NOT the Polish one.
Is there any way to set the Language as per our need in c++ WinRT app in such a way that my app will pick Polish text only... irrespective of what is set as Default Preferred lang.
I tried to set DefaultLang by using winrt::Windows::Globalization::ApplicationLanguages::PrimaryLanguageOverride but it throws exception message "The process has no package identity".
Thanks,
MChauhan
Steps to reproduce the bug
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response