How does one access the currently selected language of the logged in user (in cases where you provide a selection of languages/locales for the user to select inside the Cuba application) from within a controller for example?
I want to be able to write logic like:
if (currentlySelectedLanguage == "English") {
.. do something...
} else if (currentlySelectedLanguage == "German") {
.. do something...
} else if (currentlySelectedLanguage == "Russian") {
.. do something...
} else if (...) {
.. etc...
}
I looked at the help documentation for localization, but I might be missing the obvious.
Thanks