7
To do this, you must use Portuguese as a language in your project.
By default, the base language is English. To add another language, go to:
- Access your . xcodeproject;
- In the upper left corner, choose your project instead of your target;
- Under "Localizations", add the language in question.
By doing this, Xcode gives you the option to translate all documents from your project (applicable, usually . string, . xib and . storyboard).
If you add a file after configuring the new language and want to include it in Localizations also, you must access:
- Click on "Locate..."
- Add the missing language.
If you’re using Portuguese as the language on your device, this will cause iOS to "translate" system components into your app.
To learn more about Internationalization, here is a very good tutorial from Ray Wenderlich: https://www.raywenderlich.com/64401/internationalization-tutorial-for-ios-2014
https://www.raywenderlich.com/64401/internationalization-tutorial-for-ios-2014
– Leo Dabus