mlidal
mlidal

Reputation: 1153

IOS: VoiceOver changes to English in WebView

I'm adding VoiceOver support to an app which at the moment only supports Norwegian. For most of the app VoiceOver correctly reads the text as Norwegian.

However, one page contains a webview which shows the terms and conditions (downloaded from a URL). For this page VoiceOver switches to English voice, even though this text is still in Norwegian.

I've tried to set accessibilityLanguage to "nb-NO" for both the webview and the containing viewcontroller but the text is still read as English. Do anyone know how I can make the webview be read in Norwegian?

Upvotes: 1

Views: 584

Answers (2)

user2181162
user2181162

Reputation: 11

Trying adding HTML lang="" attribute in your page. you can refer below url http://www.iana.org/assignments/language-subtag-registry for more specific value for lang attribute. Hope this will help

Upvotes: 0

Justin
Justin

Reputation: 20609

Consider adopting the lang HTML attribute. This will trigger VoiceOver to generate speech in the appropriate language. Hat tip to Adrian Roselli for the suggestion.

Upvotes: 4

Related Questions