vuetify
Version:
Vue Material Component Framework
20 lines (16 loc) • 438 B
TypeScript
export interface Lang {
locales: LangLocales
current: string
t: LangTranslator
}
export interface LangOptions {
locales?: LangLocales
current?: string
t?: LangTranslator
}
// TODO: complete list of keys?
export interface VuetifyLocale {
[key: string]: VuetifyLocale | string
}
export type LangLocales = Record<string, VuetifyLocale>
export type LangTranslator = (key: string, ...params: Array<string | number>) => string