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
| Name | Type | Description |
|---|---|---|
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
| Name | Type | Description |
|---|---|---|
app | App | A target Vue app instance |
options | unknown[] | An install options |
Returns
void
Tags
@VueI18nGeneral@remarks— The instance required for installation as the Vue plugin