only put all dictionary strings for app page

This commit is contained in:
vcoppe
2024-09-12 12:15:26 +02:00
parent 3cc4d569f1
commit 3e57bdc7c8

View File

@@ -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>`)