Update app translation in-app?

Hi,


I just discovered the localization(translation) feature in Swift today, and I managed to translate my app. However, how can I make the user select another language from a picker view inside my app? I have the picker view, with an array of the possible languages. I do also have a save button, however - how can I set the language so that it will immidiately change to the selected language?


Help would be appreciated, as I could not find any information regarding this on "Google".


Regards,

anska

Apple doesn't really support what you want to do. Localization is typically done on a systemwide basis, not on a per app basis. In order to implement per app localization, you would need to avoid any system dialogs and manually manage the localization of strings to a specific locale.

how can I make the user select another language from a picker view inside my app?

I recommend that you not do this. See this post for my rationale.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Update app translation in-app?
 
 
Q