Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Language Options

Hi!

I would love to have the option for the user to change language in the Fun Facts app. Any ideas on how to do that our tutorials for doing that?

All the best!

Would you be typing all the translations or are you expecting a system to do that for you?

4 Answers

I'm not sure how to display the options, but essentially, you'd have them choose the language and then use an if statement to see which string to display in your model. Start with a button where when you tap it it changes between two languages.

What is most easy? :)

See, I've never done either, so I don't know of any system that would do it for you and if thats what you're looking for, but I know how you could do it if you'd do all the translations yourself.

Cool! Thanks Nick Janes Do you have a link or some code you can provide?

thanks!