Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 19.0Version 18.0 (current version)Version 17.0Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0Version 2.0

On this page

You are viewing an incomplete pre-release version of this documentation. Click here to open the current version, 18.0.

getActiveLanguage


Summary

Get the language tag or name for the currently selected language for the active keyboard.

Syntax

keyman.getActiveLanguage(fullName)

Parameters

fullName
Type: boolean optional
If true, return the language name

Return Value

string
The active language's BCP 47 language tag or name.

Description

The BCP 47 language tag returned relates to the currently active registered keyboard. If no keyboard is active, the return value will be an empty string.

The language tag may be any well-formed BCP 47 language tag.

The language name is also derived from the keyboard registration, so may not match language names from Intl or other sources.