The User Agent Library

The User Agent library provides access to information about the user agent string. The following functions are available:

The language Function

The useragent:language returns the natural language version of language.

The following is an example of useragent:language.

pre{
  naturalLanguage = useragent:language();
}