{"size": 596, "ext": "js", "max_stars_repo_path": "gatsby-ssr.js", "max_stars_repo_name": "e-paire/cedusport", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gatsby-ssr.js", "max_issues_repo_name": "e-paire/cedusport", "max_issues_repo_issues_event_min_datetime": "2020-02-14T09:18:39.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T09:54:46.000Z", "max_forks_repo_path": "gatsby-ssr.js", "max_forks_repo_name": "e-paire/cedinsport", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 10, "max_forks_count": null, "avg_line_length": 29.8, "max_line_length": 78, "alphanum_fraction": 0.6761744966}
const {renderToString} = require("react-dom/server")
const React = require("react")
const SyncFsBackend = require("i18next-sync-fs-backend")

global.XMLHttpRequest = require("xhr2").XMLHttpRequest

const i18n = require("./src/utils/i18n")

module.exports.replaceRenderer = ({bodyComponent, replaceBodyHTMLString}) => {
  i18n.use(SyncFsBackend).init({
    initImmediate: false,
    backend: {
      loadPath: "src/locales/{{lng}}/{{ns}}.json",
    },
  })
  // .loadNamespaces(["app", "index", "activity", "sidebar"], () => {
  //   replaceBodyHTMLString(renderToString(bodyComponent))
  // })
}
