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. 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.