API Reference - WebPortal.getLanguage()
WebPortal.getLanguage()
WebPortal.getLanguage()
Description | Gets the language currently being used. |
Response | String The language in the following format: “en-GB”. |
Parameter | Void |
Example
1
2
3
4
5
var userLanguage = WebPortal.getLanguage()
// userLanguage = "fr-FR"
if (userLanguage === "fr-FR") {
ContentInFrench()
}