Xamarin iOS storyboard localization

后端 未结 2 1768
庸人自扰
庸人自扰 2021-01-28 09:47

I\'m developing an ios app with xamarin in Visual Studio. I\'m trying to add localization to my Main.storyboard file and to default LaunchScreen.xib file but I can\'t make it wo

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-28 10:24

    I know this is old question, but I want to tell my solution for problem.

    Here is my localization structure:

    In my solution i have renamed Main.strings -file to same name that my storyboard.

    Now change you ui item localization id to string. In my project that makes the different. Here is image to show what I mean.

    Open your storyboard in text mode and replace those id numbers to text.

    Now open your Main.strings and type your item there.

    More info from: https://developer.xamarin.com/guides/ios/advanced_topics/localization_and_internationalization/

提交回复
热议问题