Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sambhavgupta0705 committed Apr 26, 2024
1 parent 8193c7b commit 62be6bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from "react-i18next";

import nextI18nextStaticSiteConfig from "../next-i18next-static-site.config";
import HeadComponent from "../components/Head";

var defaultConfig = {
allowHydration: true,
Expand Down Expand Up @@ -166,7 +167,7 @@ var I18nProvider = (props) => {
}
}, [options.allowHydration]);
console.log(props.children);
return hydration ? props.children : null;
return hydration ? props.children : <HeadComponent/>;
};

/**
Expand Down

0 comments on commit 62be6bf

Please sign in to comment.