element-pro-components
Version:
a component library for Vue 3 base on element-plus
9 lines (8 loc) • 337 B
TypeScript
import type { Ref } from 'vue';
import type { TranslatorOption } from 'element-plus';
import type { Language } from 'element-plus/es/locale';
export declare function useLocale(localeOverrides?: Ref<Language | undefined>): {
t: (path: string, option?: TranslatorOption) => string;
locale: Ref<Language>;
lang: Ref<string>;
};