only put all dictionary strings for app page
This commit is contained in:
parent
3cc4d569f1
commit
3e57bdc7c8
1 changed files with 1 additions and 1 deletions
|
@ -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>`)
|
||||
|
|
Loading…
Reference in a new issue