Skip to content

vue-i18n / general / I18nInjectionKey

Variable: I18nInjectionKey ​

ts
const I18nInjectionKey: InjectionKey<I18n> | string;

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.

Vue I18n General ​

Released under the MIT License.