UNPKG

@inlang/paraglide-js

Version:

[![NPM Downloads](https://img.shields.io/npm/dw/%40inlang%2Fparaglide-js?logo=npm&logoColor=red&label=npm%20downloads)](https://www.npmjs.com/package/@inlang/paraglide-js) [![GitHub Issues](https://img.shields.io/github/issues-closed/opral/paraglide-js?lo

14 lines 540 B
/** * Clears the cached locale from `document.cookie`. */ export declare function clearLocaleCookieCache(): void; /** * Extracts a cookie from the document. * * Will return undefined if the document is not available or if the cookie is not set. * The `document` object is not available in server-side rendering, so this function should not be called in that context. * * @returns {Locale | undefined} */ export declare function extractLocaleFromCookie(): Locale | undefined; //# sourceMappingURL=extract-locale-from-cookie.d.ts.map