I'm working on a project in swift 2.0. The App is for two languages chinese and english.
I'm using the SFSafariViewController to open the url. Now the problem is when i choose the english language the url load successfully. But I convert the language to chinese then the SFSafariViewController load the same url again in english.
I have sent a new parameter with url to set the language in the browser but this do not works. Any Suggestion regarding this? Thanks in advance.
Edit : Code
let language = (Localize.currentLanguage() != "zh-Hans" ? "en" : "zh")
if language == "zh"{
let externalURL = ApiURLs.webViewPath + "/?source=ios&lang=zh-CN"
let safariVC = SFSafariViewController(URL: NSURL(string: externalURL)!)
self.presentViewController(safariVC, animated: true, completion: nil)
}
else
{
let externalURL = ApiURLs.webViewPath + "/?source=ios&lang=en-US"
let safariVC = SFSafariViewController(URL: NSURL(string: externalURL)!)
self.presentViewController(safariVC, animated: true, completion: nil)
}