WebContext.setPreferredLanguages

Set the list of preferred languages.

Set the list of preferred languages, sorted from most desirable to least desirable. The list will be used in the following ways:

  • Determining how to build the Accept-Language HTTP header that will be included in the network requests started by the #WebKitWebContext.
  • Setting the values of navigator.language and navigator.languages.
  • The first item in the list sets the default locale for JavaScript Intl functions.
class WebContext
void
setPreferredLanguages
(
string[] languages = null
)

Parameters

languages string[]

a null-terminated list of language identifiers