Skip to content

vue-i18n / general / DefineLocaleMessage

Interface: DefineLocaleMessage ​

The type definition of Locale Message

Remarks ​

The typealias is used to strictly define the type of the Locale message.

The type defined by this can be used in the global scope.

Example ​

ts
// type.d.ts (`.d.ts` file at your app)
import { DefineLocaleMessage } from 'vue-i18n'

declare module 'vue-i18n' {
  export interface DefineLocaleMessage {
    title: string
    menu: {
      login: string
    }
  }
}

Vue I18n General ​

Extends ​

Indexable ​

ts
[key: string]: LocaleMessageValue<VueMessageType>

Released under the MIT License.