updated to check language selector cookie and pref language
This commit is contained in:
+3
-3
@@ -24,9 +24,9 @@ class MyDocument extends Document {
|
||||
const cookieObj = ctx.req.cookies.CookiePolicy || {};
|
||||
|
||||
console.log("useGATracking: ", useGATracking);
|
||||
setCookie(ctx, "pedw_locale", ctx.locale, {
|
||||
path: "/",
|
||||
});
|
||||
// setCookie(ctx, "pedw_locale", ctx.locale, {
|
||||
// path: "/",
|
||||
// });
|
||||
|
||||
const headers = ctx.req?.headers;
|
||||
const generatedNonce = headers?.["x-nonce"];
|
||||
|
||||
Reference in New Issue
Block a user