vuetify.d.mts 627 B

123456789101112131415161718192021222324
  1. import { Ref } from 'vue';
  2. interface LocaleMessages {
  3. [key: string]: LocaleMessages | string;
  4. }
  5. interface LocaleOptions {
  6. messages?: LocaleMessages;
  7. locale?: string;
  8. fallback?: string;
  9. adapter?: LocaleInstance;
  10. }
  11. interface LocaleInstance {
  12. name: string;
  13. messages: Ref<LocaleMessages>;
  14. current: Ref<string>;
  15. fallback: Ref<string>;
  16. t: (key: string, ...params: unknown[]) => string;
  17. n: (value: number) => string;
  18. provide: (props: LocaleOptions) => LocaleInstance;
  19. }
  20. declare function createVuetifyAdapter(options?: LocaleOptions): LocaleInstance;
  21. export { createVuetifyAdapter };