UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

8 lines (7 loc) 406 B
import { InitializedLocaleCookieConfig } from '../../routing/config'; /** * We have to keep the cookie value in sync as Next.js might * skip a request to the server due to its router cache. * See https://github.com/amannn/next-intl/issues/786. */ export default function syncLocaleCookie(localeCookie: InitializedLocaleCookieConfig, pathname: string | null, locale: string, nextLocale?: string): void;