Interface: I18n<Messages, DateTimeFormats, NumberFormats, OptionLocale>
Vue I18n General
I18n instance
Remarks
The instance required for installation as the Vue plugin
Type Parameters
| Type Parameter | Default type |
|---|---|
Messages extends Record<string, unknown> | object |
DateTimeFormats extends Record<string, unknown> | object |
NumberFormats extends Record<string, unknown> | object |
OptionLocale | Locale |
Methods
dispose()
ts
dispose(): void;Release global scope resource
Returns
void
install()
ts
install(app, ...options): void;Install entry point
Parameters
| Parameter | Type | Description |
|---|---|---|
app | App | A target Vue app instance |
...options | unknown[] | An install options |
Returns
void
Properties
global
ts
readonly global: Composer<Messages, DateTimeFormats, NumberFormats, OptionLocale>;The property accessible to the global Composer instance
An instance of this property is global scope*.