I have a Xamarin.IOS application and try to localize some images. As a guideline I took this article: https://developer.xamarin.com/guides/ios/advanced_topics/localization_and_internationalization/
I try to display the image "ImageInstructionStep1"
Here is a screenshot of my Ressources Folder:
All images have the build action "BundleResource". I assign the image in the code with this line:
imageInstructionStep.Image = UIImage.FromBundle("ImageInstructionStep1");
And I registered the localizations in my Info.Plist:
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleLocalizations</key>
<array>
<string>de</string>
<string>fr</string>
<string>it</string>
</array>
But it always displays the english version.
I checked the locale the app has when I start it with this:
NSLocale.CurrentLocale.LocaleIdentifier;
NSLocale.AutoUpdatingCurrentLocale.LocaleIdentifier;
and both give as a result "de_US". My expectations would have been that this would load the german localization.
Also I tried clean and rebuild the app to the simulator, including remove it from the simulator before without success.
Maybe interessting as a sidenote: all my textes who are localized in resx file are shown in german as expected.
What do I miss?