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.
59 lines (58 loc) • 1.41 kB
TypeScript
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[];
}
export declare const useLocaleHead: ({ addDirAttribute, identifierAttribute, addSeoAttributes, baseUrl }?: {
addDirAttribute?: boolean | undefined;
identifierAttribute?: string | undefined;
addSeoAttributes?: boolean | undefined;
baseUrl?: string | undefined;
}) => 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;
}[];
}>;
export {};