@inlang/paraglide-js
Version:
[](https://inlang.com)
10 lines • 416 B
TypeScript
/**
* 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 {string | undefined}
*/
export function extractLocaleFromCookie(): string | undefined;
//# sourceMappingURL=extract-locale-from-cookie.d.ts.map