UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

21 lines (20 loc) 498 B
import { i18nLanguagesT } from './types'; /** * 添加语言包 * @param locale 语言包 * @param opts 配置 */ export declare function addLocale(locale: i18nLanguagesT[], opts?: { overwrite?: boolean; }): void; /** * 使用语言包 * @param localeKey * @returns */ export declare function useLocale(localeKey: string): void; export declare function useI18n(): { locale: import('vue').ComputedRef<any>; t: (key: string, ...args: any[]) => string; }; export * from './types';