UNPKG

vue3-translate-select

Version:

🚀 The package offer vue3 library for @google-translate-select!

63 lines (62 loc) • 2 kB
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'; export declare const googleTranslateProps: { /** select dropdown option */ readonly languages: { readonly type: PropType<ILanguage[]>; readonly default: () => any; }; /** select input default language*/ readonly defaultLanguageCode: { readonly type: StringConstructor; readonly default: "en"; }; /** page(browser) content language */ readonly defaultPageLanguageCode: { readonly type: StringConstructor; readonly default: "en"; }; /** get browser default language */ readonly fetchBrowserLanguage: { readonly type: BooleanConstructor; readonly default: true; }; /** select dropdown animate */ readonly animateTimeout: { readonly type: NumberConstructor; readonly default: 150; }; readonly dropdownClassName: { readonly type: StringConstructor; readonly default: ""; }; readonly dropdownStyle: { readonly type: PropType<CSSProperties>; readonly default: () => {}; }; readonly showArrow: { readonly type: BooleanConstructor; readonly default: true; }; readonly trigger: { readonly type: PropType<"click" | "hover">; readonly default: "hover"; }; readonly googleScriptUrl: { readonly type: StringConstructor; readonly default: ""; }; readonly reload: { readonly type: PropType<() => void>; readonly default: () => void; }; readonly type: { readonly type: PropType<"dropdown" | "list" | "carousel">; readonly default: "dropdown"; }; readonly isCarouselListenerDisabled: { readonly type: BooleanConstructor; readonly default: false; }; }; export declare type GoogleTranslateProps = ExtractPropTypes<typeof googleTranslateProps>; export declare type Language = GoogleTranslateProps['languages'][number];