I have a Xamarin Forms application with a language selector that will be exposed to customers. When I switch language, I call a SetLocale() method to switch the current language.
public static void SetLocale(CultureInfo culture)
{
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
AppResources.Culture = culture;
}
All textes are updated well (they come from resx files) but the images remains the one from the default application language (selected in the application settings) that I defined in the info.plist.
I putted my images in the iOS project in Resources/.lproj following the xamarin documentation
I bind them in the xaml file as usually
<Image Source="{Binding Image}"></Image>
How can I do to make the translation work for the images as well?
Base.lproj
. Language-specific folders are named with the language or locale name . Make sure you named the area and language correctly . – Lucas Zhang - MSFT