+1 (855) 920-2583
Login

How to retrieve locale of the currently logged in user from an APS2 application

Modified on: Fri, 17 Nov 2023 12:07 PM
Original Publishing Date:
2020-01-22

Question

I need to retrieve the language of the logged in user. How can I do this?

Answer

Locale is available as part of context and you can retrieve it from custom UI, for instance:

console.log('User locale: ' + aps.context.locale);

, it will return the user's locale in following form:

User locale: en_US

Internal content