Skip to content

vue-i18n / general / I18n

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

I18n instance

Remarks ​

The instance required for installation as the Vue plugin

Vue I18n General ​

Type Parameters ​

Type ParameterDefault type
Messages extends Record<string, unknown>object
DateTimeFormats extends Record<string, unknown>object
NumberFormats extends Record<string, unknown>object
OptionLocaleLocale

Methods ​

dispose() ​

ts
dispose(): void;

Release global scope resource

Returns ​

void


install() ​

ts
install(app, ...options): void;

Install entry point

Parameters ​

ParameterTypeDescription
appAppA target Vue app instance
...optionsunknown[]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*.

Released under the MIT License.