Skip to content

Function: registerI18n() ​

registerI18n(locale, translations): void

Defined in: ../node_modules/.pnpm/@videojs+core@10.0.1_@videojs+element@10.0.1_react@19.3.1/node_modules/@videojs/core/dist/dev/core/i18n/registry.d.ts:30

Register or merge translation strings for a BCP 47 locale tag.

Parameters ​

locale ​

Locale

BCP 47 tag (normalized to lowercase; unicode extensions stripped for the registry key).

translations ​

Partial<Translations>

Partial nested locale values; merges with any existing layer for the tag.

Returns ​

void