Xamarin Forms localization iOS Native Library

jmot77 1 Reputation point
2022-05-18T13:10:19.873+00:00

0

I have an iOS library that uses localized string files. When used in a native iOS project in XCode, this library renders the proper text just fine.

However, when imported into a Xamarin Forms project, the library is not able to properly display the localized text. It seems to not find any of the string files at all. The method of localizing a Xamarin Forms project does not seem to be working for this library (ie the plist file, Base folder and other langs). Images referenced by the library work fine though.

Is there a different way for library projects to find localized files than normal Xamarin Forms projects?

Here is the link to the approach for localization in Xamarin.iOS. I realize this is not Xamarin Forms but it's the approach I used.

https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/localization/

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
{count} votes