I have differents embedded HTML files in different languages.
I’d like to load the correct files in a webview based on the current langage.
Is there a way to do that as easily as NSLocalizableString?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you use “localized resources”, for example
then many resource functions will automatically select the correct version (based on the user’s language setting), e.g.:
To create a localized resource “index.html” in Xcode:
Now you have one file for each language, for example “index.html (English)” and “index.html (French)”, which are copied to the appropriate folder when you install the app.