You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > i18nRedirectsUtil

i18nRedirectsUtil variable

Signature:

i18nRedirectsUtil: ({ path, defaultLocale, availableLocales, cookieLocale, acceptedLanguages, autoRedirectByLocale }: {
    path: string;
    defaultLocale: string;
    cookieLocale: string;
    availableLocales: string[];
    acceptedLanguages: string[];
    autoRedirectByLocale: boolean;
}) => {
    getRedirectPath: () => string;
    getTargetLocale: () => string;
}