File

projects/openvidu-angular/src/lib/directives/api/videoconference.directive.ts

Description

The langOptions directive allows to set the application language options. It will override the application languages provided by default. This propety is an array of objects which must comply with the LangOption interface.

It is only available for VideoconferenceComponent.

Default: [ { name: 'English', lang: 'en' }, { name: 'Español', lang: 'es' }, { name: 'Deutsch', lang: 'de' }, { name: 'Français', lang: 'fr' }, { name: '中国', lang: 'cn' }, { name: 'हिन्दी', lang: 'hi' }, { name: 'Italiano', lang: 'it' }, { name: '日本語', lang: 'ja' }, { name: 'Dutch', lang: 'nl' }, { name: 'Português', lang: 'pt' } ]

Note: If you want to add a new language, you must add a new object with the name and the language code (e.g. { name: 'Custom', lang: 'cus' }) and then add the language file in the assets/lang folder with the name cus.json.

<ov-videoconference [langOptions]="[{name:'Spanish', lang: 'es'}]"></ov-videoconference>

Implements

OnDestroy

Metadata

results matching ""

    No results matching ""