Skip to main content
Version: 10.1

getLanguage()

note

This article covers the getLanguage() function as part of the UI Library. The UI Library is a mixed bag of Javascript extensions for programming UI controls in USoft web pages. Do not confuse with the structured UDB object model for data exchange between USoft web pages and a Rules Engine.

The getLanguage() function returns the current language. This is the language that is sent to the Rules Service on every request.

Syntax

$.udb.ui.getLanguage()

Example

var l = $.udb.ui.getLanguage();

A possible output of this example is:

"en"

See also setLanguage() and transform().