UNPKG

vue3-tabor

Version:

Vue 3 routing tabs with keepAlive support, browser-like tab navigation for Vue applications

19 lines (18 loc) 587 B
export type Language = 'zh' | 'en'; declare const translations: { readonly zh: { readonly refresh: "刷新"; readonly close: "关闭"; readonly closeOthers: "关闭其他"; }; readonly en: { readonly refresh: "Refresh"; readonly close: "Close"; readonly closeOthers: "Close Others"; }; }; export type TranslationKey = keyof typeof translations.en; export declare function setLanguage(lang: Language): void; export declare function getLanguage(): Language; export declare function t(key: TranslationKey): string; export {};