How to localize launch screen

后端 未结 3 410
名媛妹妹
名媛妹妹 2020-12-15 05:06

I have localized LaunchScreen.xib, through which the LaunchScreen is divided in two parts.

i.e. LaunchScreen.xib(English) and

相关标签:
3条回答
  • 2020-12-15 05:29

    As user: Samewize pointed out, the User Interface Guidelines advise against localizing text on the Launch Screen.

    Avoid including text on your launch screen. Because launch screens are static, any displayed text won’t be localized.

    To add to that, as of September 2019, even with localization of asset catalogs (WWDC 2019 Video), I've been unable to localize images that appear on the Launch screen. I'm assuming the Launch screen is statically generated and does not take Localization into account.

    0 讨论(0)
  • 2020-12-15 05:39

    The answer is: you cannot localize launch screen

    In the Human Interface Guideline, they pointed out:

    Avoid including text on your launch screen. Because launch screens are static, any displayed text won’t be localized.

    Text cannot be localized.

    What about images?

    I have tried localising, and as of April 2017, I concluded that localization doesn't work. The localized storyboard will be ignored.

    0 讨论(0)
  • 2020-12-15 05:50
    1. Add multiple "LaunchScreen.storyboard" for each language from "Add New File" menu in project. (Lets say for spanish - Launch Screen_sp)

    2. Localize your "Info.plist" from identity inspector menu as InfoPlist.strings (Base) , InfoPlist.strings(Spanish) for each language you want to use.

    3. Now as example: in InfoPlist.strings (spanish) add following key :

      "UILaunchStoryboardName" = "LaunchScreen_sp";

    and you are done. Do not forget to set "LaunchScreen" as your Launch Screen File in "General" settings of your project.

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