Scoped GlideSession - getLanguage()

Returns the session's language code.

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

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

Output:

en