Skip to content

Interface: DefineLocaleMessage

The type definition of Locale Message

Extends

Signature

ts
export interface DefineLocaleMessage extends LocaleMessage<VueMessageType>

Examples

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
    }
  }
}

Tags

  • @VueI18nGeneral
  • @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.

Released under the MIT License.