You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a UnoLibrary to share resw text resources. It uses a MarkupExtension, which takes a value and returns the localized string via ResourceLoader.GetForViewIndependentUse("/UnoLibrary/Resources").GetString(TextID.ToString()).
This library works perfectly in a standalone WinUI project (a separate WinAppSDK project, not the WinUI platform of a Uno project). However, it fails on the Android platform of a Uno project, where GetString() silently returns an empty string ("") without throwing any exceptions.
UnoLibrary project structure:
A Strings folder at the root directory containing Resources.en.resw and Resources.zh.resw.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I created a UnoLibrary to share resw text resources. It uses a MarkupExtension, which takes a value and returns the localized string via ResourceLoader.GetForViewIndependentUse("/UnoLibrary/Resources").GetString(TextID.ToString()).
This library works perfectly in a standalone WinUI project (a separate WinAppSDK project, not the WinUI platform of a Uno project). However, it fails on the Android platform of a Uno project, where GetString() silently returns an empty string ("") without throwing any exceptions.
UnoLibrary project structure:
A Strings folder at the root directory containing Resources.en.resw and Resources.zh.resw.
What I have tried:
I followed the documentation at https://platform.uno/docs/articles/guides/how-to-create-control-libraries.html and added
<GenerateLibraryLayout>true</GenerateLibraryLayout>to include the resource files, but it still returns an empty string.Any help or insights would be greatly appreciated!
All reactions