diff --git a/src/server/ssr/IndexHTMLComponent.jsx b/src/server/ssr/IndexHTMLComponent.jsx index fc867f7d..e4896af3 100644 --- a/src/server/ssr/IndexHTMLComponent.jsx +++ b/src/server/ssr/IndexHTMLComponent.jsx @@ -4,7 +4,8 @@ type args = { App: string, initialState: Object, assets: Object, - faviconsAssets: Object + faviconsAssets: Object, + translation: Object } // renderToString const DLLScripts = @@ -20,16 +21,18 @@ const IndexHTMLComponent = ({ App, initialState, assets, - faviconsAssets + faviconsAssets, + translation }: args) => { const stringifiedState: string = JSON.stringify(initialState) + const stringifiedTranslation: string = JSON.stringify(translation) const safeStringifiedState: string = stringifiedState.replace(/ { const html = `
${App}
- + ${DLLScripts} ${Object.keys(assets) .filter(bundleName => assets[bundleName].js)