Finding Non-localized Strings in xcode

If you have ever done some localization in xcode, you might already know how hard is it to track the non-localized strings used in the code and in storyboard. From xcode 7, there is an easy way to do that. Let me show you that.

https://stocksnao.io
  • In code by using NSLocalizedString("someStringToLocalize", tableName: nil, bundle: Bundle.main, value: "", comment: "") .
  • Use storyboard localizations.
Edit scheme
scheme editor
calculatorDisplay.text = NSLocalizedString(“Some localized string”, comment: “”)

Localizable strings in storyboard:

Storyboard strings file
error for storyboard objects
  • Copy GsZ-Y5–7R1 mentioned in the error and search for it throughout the project.
searching storyboard object
storyboard strings file
“GsZ-Y5–7R1.normalTitle" = "Localized title for button";

Conclusion:

How to localize the strings file and localizing the storyboard files are not covered in this article. This process is pretty easy. I am planning to create an article on localization and internationlization in the near future.

If you enjoyed reading this post, please share and recommend it so others can find it 💚💚💚💚💚💚 !!!!

You can follow me on Medium for fresh articles. Also, connect with me on LinkedIn.

--

--

iOS and tvOS developer, dreamer, photographer 🤨

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store