Skip to content

Commit

Permalink
[F] Rockman pop up uses site language
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mason authored and blnkt committed Nov 21, 2023
1 parent db16767 commit 30a0978
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ const PLAUSIBLE_DOMAIN = process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN;
const SURVEY_SPARROW = process.env.NEXT_PUBLIC_SURVEY_SPARROW;

function Client({ Component, pageProps }) {
const lang = pageProps?.data?.language || "en-US";

const authData = useAuthentication({
typeHandle: pageProps?.data?.typeHandle || "",
language: pageProps?.data?.language || "en-US",
language: lang,
localized: pageProps?.data?.localized || [],
});

Expand Down Expand Up @@ -85,7 +87,7 @@ function Client({ Component, pageProps }) {
rm.parentNode.removeChild(rm);
}
}
sparrowLaunch({/*add custom params here*/});
sparrowLaunch({sparrowLang: "${lang}"});
`,
}}
/>
Expand Down

0 comments on commit 30a0978

Please sign in to comment.