Search code examples
c#xamarinlocalizationmvvmcross

Localization in MVVM cross not working in xamarin iOS


I used the following URL to implement localization in my application. It is using [MVVMCross framework in xamarin.

https://mobileprogrammerblog.wordpress.com/2017/12/30/mvvm-cross-with-xamarin-platform-resx-localization/

However, the application is not working for iOS. I followed the exact approach. The code works fine for android part. It is able to read AppResources.en.resx in iOS however it isn't able to read AppResources.es.resx file. When i change my device language to Spanish, it is taking the string of AppResources.en.resx and also not taking AppResources.resx(The default one)! You can follow the steps given in the link to reproduce the issue.

Is there anything I am missing out or doing wrong. Please let me know!


Solution

  • It was because the language was set to english in the info.plist. That's why it couldn't take the other languages. Thank you!