Reputation: 279
I have localized LaunchScreen.xib
, through which the LaunchScreen is divided in two parts.
i.e. LaunchScreen.xib(English) and LaunchScreen.xib(Portugese), but when I change device language to Portuguese then LaunchScreen.xib(English)
is also loaded.
Upvotes: 27
Views: 14024
Reputation: 178
As per Apple we can't localise splash screen here is the link:-
https://developer.apple.com/design/human-interface-guidelines/patterns/launching#launch-screens/
Upvotes: 0
Reputation: 2398
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.
Upvotes: 8
Reputation: 5876
Add multiple "LaunchScreen.storyboard" for each language from "Add New File" menu in project. (Lets say for spanish - Launch Screen_sp)
Localize your "Info.plist" from identity inspector menu as InfoPlist.strings (Base) , InfoPlist.strings(Spanish) for each language you want to use.
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.
Upvotes: 48
Reputation: 27363
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.
Upvotes: 31