Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
9 lines
454 B
Plaintext
9 lines
454 B
Plaintext
import type { Locale } from 'use-intl';
|
|
import type { InitializedLocaleCookieConfig } from '../../routing/config.js';
|
|
/**
|
|
* 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: Locale, nextLocale?: Locale): void;
|