GlideSession - getLanguage()

Gets the session's language code.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The session's language code.

Scoped equivalent

To use the getLanguage() method in a scoped application, use the corresponding scoped method: Scoped GlideSession - getLanguage().

var session = gs.getSession();
var language = session.getLanguage();
gs.info(language);

Output:

en