UNPKG

nuxt-i18n-micro

Version:

Nuxt I18n Micro is a lightweight, high-performance internationalization module for Nuxt, designed to handle multi-language support with minimal overhead, fast build times, and efficient runtime performance.

64 lines (63 loc) 1.63 kB
interface MetaLink { [key: string]: string | undefined; rel: string; href: string; hreflang?: string; } interface MetaTag { [key: string]: string; property: string; content: string; } interface MetaObject { htmlAttrs: { lang?: string; dir?: 'ltr' | 'rtl' | 'auto'; }; link: MetaLink[]; meta: MetaTag[]; } interface UseLocaleHeadOptions { addDirAttribute?: boolean; identifierAttribute?: string; addSeoAttributes?: boolean; baseUrl?: string; autoUpdate?: boolean; } export declare const useLocaleHead: ({ addDirAttribute, identifierAttribute, addSeoAttributes, baseUrl, autoUpdate, }?: UseLocaleHeadOptions) => { metaObject: import("vue").Ref<{ htmlAttrs: { lang?: string | undefined; dir?: "ltr" | "rtl" | "auto" | undefined; }; link: { [x: string]: string | undefined; rel: string; href: string; hreflang?: string | undefined; }[]; meta: { [x: string]: string; property: string; content: string; }[]; }, MetaObject | { htmlAttrs: { lang?: string | undefined; dir?: "ltr" | "rtl" | "auto" | undefined; }; link: { [x: string]: string | undefined; rel: string; href: string; hreflang?: string | undefined; }[]; meta: { [x: string]: string; property: string; content: string; }[]; }>; updateMeta: () => void; }; export {};