Issue
I'm currently experiementing the localization in Xamarin.IOS. I managed to get the localization work but only based on the system language. Here's my example:
someLabel.Text = NSBundle.MainBundle.GetLocalizedString ("Hello");
The question is how can I change the Localization within the App through code? Can anyone provide an example?
Solution
If you want to achieve localization, you can create the .lproj folder under the Resources file, and then select localization in Xcode to select the language, and the corresponding strings will be generated in Visual Studio accordingly. When using NSBundle.MainBundle.GetLocalizedString ("Yes"); please make sure that the Localizable.strings file exists in your .lproj folder.
Answered By - Wen xu Li - MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.