ResX localisation issue (android, avalonia)

The ResX files on android don't seem to be loading on the android app, they work fine on linux and windows but android just only accepts the default culture and doesn't show anything else no matter what language I choose.

What I tried (none of these worked).


(Resources is the locale resource.)

1

Changing Thread Culture.
Resources.Culture = new CultureInfo(_language);
Thread.CurrentThread.CurrentCulture = Resources.Culture;
Thread.CurrentThread.CurrentUICulture = Resources.Culture;

2

Manual testing of my resource on button press.
[RelayCommand]
private void Test()
{
   _notificationService.SendNotification(Resources.Test);
}

3

Setting Custom Tool Namespace to VoiceCraft.Client.Locales

4

Setting build options on each ResX file to AvaloniaResource (this crashed the application)

5

Setting build options on each ResX file to EmbeddedResource (including ones dependent on the parent).
image.png
image.png
Was this page helpful?