interfaceLanguage property

String interfaceLanguage
final

Sets the player's interface language. The parameter value is an ISO 639-1 two-letter language code or a fully specified locale.

For example, fr and fr-ca are both valid values. Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.

The interface language is used for tooltips in the player and also affects the default caption track. Note that YouTube might select a different caption track language for a particular user based on the user's individual language preferences and the availability of caption tracks.

Implementation

final String interfaceLanguage;