123456789101112131415161718192021222324 |
- import { Ref } from 'vue';
- interface LocaleMessages {
- [key: string]: LocaleMessages | string;
- }
- interface LocaleOptions {
- messages?: LocaleMessages;
- locale?: string;
- fallback?: string;
- adapter?: LocaleInstance;
- }
- interface LocaleInstance {
- name: string;
- messages: Ref<LocaleMessages>;
- current: Ref<string>;
- fallback: Ref<string>;
- t: (key: string, ...params: unknown[]) => string;
- n: (value: number) => string;
- provide: (props: LocaleOptions) => LocaleInstance;
- }
- declare function createVuetifyAdapter(options?: LocaleOptions): LocaleInstance;
- export { createVuetifyAdapter };
|