Referencei18n
I18nController
Reactive controller for consuming translator and locale values from an HTML i18n context
Import
Usage
Create the controller with a reactive host and an i18n context. i18nContext is the default context that <media-i18n> provides; its I18nContextValue holds the active translator and locale. Read the Translator from value and the active locale from locale.
The controller requests a host update when its context changes. Without a provider, it falls back to the default English locale and updates when registered translations change.