How to retrieve localized resources from Microsoft.UI.Xaml.Common.rc
#9049
Replies: 1 comment
-
The .rc extension would indicate a native Windows API resource type. If you look in the Windows App SDK package, you can see all of those directories with language names. Each of those directories then contain .mui files. Because these are native Windows API resources, this means that you would use the Windows API resource and MUI functions to get access to these resources. The learn link to the main MUI documentation is here. The learn link for the resources documentation is here.
So that is what makes the resources visible to the resource compiler. There are tools such as the Multilingual App Toolkit that allows you provide information and it then generates the required resources in a format that the resource compiler will accept. |
Beta Was this translation helpful? Give feedback.
-
We are trying to get resources which are defined in
microsoft-ui-xaml\dxaml\xcp\dxaml\dllsrv\winrt\Microsoft.UI.Xaml.Common.rc
, but this file only seems to contain english localization. However, in a running WinAppSDK app they are definitely localized. We tried queryingResourceManager
but theMicrosoft.WindowsAppRuntime.1.4
map does not contain these. Can you please help us understand how the localization happens and if there is some way to enumerate these resources for all supported cultures?Beta Was this translation helpful? Give feedback.
All reactions