@jiaozhiye/qm-design-vue
Version:
A Component Library for Vue3.0
15 lines (14 loc) • 462 B
TypeScript
import '../_utils/dayjs';
import 'dayjs/locale/zh-cn';
import 'dayjs/locale/en';
export type TranslatePair = {
[key: string]: string | string[] | TranslatePair;
};
export type Language = {
name: string;
qm: TranslatePair;
};
export declare const i18n: (fn: (...args: any[]) => string) => void;
export declare const t: (...args: any[]) => string;
export declare const use: (l: Language) => void;
export declare const setLocale: (l: Language) => void;