Xamarin iOS storyboard localization

后端 未结 2 1770
庸人自扰
庸人自扰 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/

    0 讨论(0)
  • 2021-01-28 10:34

    You have to set a default value. For example, you want to localize a textField placeHolder, than hardcode a default value for the placeholder and the localization will work.

    0 讨论(0)
提交回复
热议问题