vue-i18n.d.ts 374 Bytes
/**
 * global type definitions
 * using the typescript interface, you can define the i18n resources that is type-safed!
 */

/**
 * you need to import the some interfaces
 */
import en from '@/plugins/i18n/locales/en.json';
import 'vue-i18n';

type LocaleMessage = typeof en

declare module 'vue-i18n' { 
  export interface DefineLocaleMessage extends LocaleMessage {
  }
}