Get Mendix Studio Pro 8.* s Language info from PluggableWidget

0
Hello everyone, I create a PluggableWidget DatePicker. In the widget, I want to do this: According to the language setting, change the calendar configuration. Example: 1<Project settings' language>:English ===>calendar's language:English ⇒if(proLang === "English"){ calendarLang = "English" } 2<Project settings' language>:Japanese ===>calendar's language:Japanese ⇒if(proLang === "Japanese"){ calendarLang = "Japanese" }   Mendix Studio Pro’s Language settings at the bottom right:   I have learned (Module: mendix/lang),but not find useful thing. Please help…
asked
1 answers
0

Hi Jian,

The locale language code is stored in the session.

mx.session.getConfig().locale.code

Cheers, Andries

answered