UNPKG

@nolebase/ui

Version:

A collection of Vue components Nolebase uses.

11 lines (10 loc) 432 B
import type { InjectionKey } from 'vue'; export interface LocalesOptions { locales: Record<string, Record<string, any>>; } export declare function createI18n(injectionKey: InjectionKey<LocalesOptions>, defaultLocales: Record<string, Record<string, any>>, defaultEnLocale?: Record<string, any>): () => { t(key: string, translateOptions?: { props?: Record<string, any>; omitEmpty?: boolean; }): string; };