Skip to content

vue-i18n / general / I18nInjectionKey

Variable: I18nInjectionKey

ts
const I18nInjectionKey: InjectionKey<I18n> | string;

Vue I18n General

Injection key for useI18n

Remarks

The global injection key for I18n instances with useI18n. this injection key is used in Web Components. Specify the i18n instance created by createI18n together with provide function.

Released under the MIT License.