Skip to content

Interface: I18n<Messages, DateTimeFormats, NumberFormats, OptionLocale> ​

I18n instance

Signature ​

ts
export interface I18n<
  Messages extends Record<string, unknown> = {},
  DateTimeFormats extends Record<string, unknown> = {},
  NumberFormats extends Record<string, unknown> = {},
  OptionLocale = Locale
>

Type Parameters ​

Name
Messages extends Record<string, unknown> = {}
DateTimeFormats extends Record<string, unknown> = {}
NumberFormats extends Record<string, unknown> = {}
OptionLocale = Locale

Properties ​

NameTypeDescription
global (readonly)Composer<Messages, DateTimeFormats, NumberFormats, OptionLocale>The property accessible to the global Composer instance An instance of this property is global scope*.

Methods ​

dispose() ​

ts
dispose(): void;

Release global scope resource

Returns ​

void


install() ​

ts
install(app: App, ...options: unknown[]): void;

Install entry point

Parameters ​

NameTypeDescription
appAppA target Vue app instance
optionsunknown[]An install options

Returns ​

void

Tags ​

  • @VueI18nGeneral
  • @remarks — The instance required for installation as the Vue plugin

Released under the MIT License.