Filter by the current user's language

Problem

You want to create a filter in the ServiceNow UI that filters by the current user's language.

Solution

You can use scripted filters in combination with gs.getUser() API as follows:

javascript: gs.getUser().getLanguage();

It's interesting to note that gs.getSession().getLanguage() doesn't work as a scripted filter. Even though it does work in, say, a background script.