ibihelpme_GetCurrentUILanguage
Signature | ibihelpme_GetCurrentUILanguage(): string |
---|---|
Description | Returns the currently selected UI language (including country code where applicable) |
Available from API version | 1.0.0 |
Parameter
No parameters required
Return value
| Current selected language as per ISO 639-1. May also contain a country code as per ISO 3166-1. For example 'de', 'de-CH' etc. |
---|
Example
JS
var language = window.external.ibihelpme_GetCurrentUILanguage();
if(language === 'de' || language === 'de-CH' || language === 'de-DE')
alert('German');