Skip to content

Commit

Permalink
only put all dictionary strings for app page
Browse files Browse the repository at this point in the history
  • Loading branch information
vcoppe committed Sep 12, 2024
1 parent 3cc4d56 commit 3e57bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function handle({ event, resolve }) {
`;
}

let stringsHTML = stringsToHTML(strings);
let stringsHTML = page === 'app' ? stringsToHTML(strings) : '';

const response = await resolve(event, {
transformPageChunk: ({ html }) => html.replace('<html>', htmlTag).replace('<head>', headTag).replace('<body data-sveltekit-preload-data="hover">', `<body data-sveltekit-preload-data="hover"><div class="hidden">${stringsHTML}</div>`)
Expand Down

0 comments on commit 3e57bdc

Please sign in to comment.