Skip to content

Commit

Permalink
feat: improve ssr parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Oct 25, 2024
1 parent 1c836d7 commit 1efc495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testapps/next-internal/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Home: NextPage = () => {
}, []);

return ready ? (
<TolgeeProvider tolgee={tolgee} ssr={{ language: router.locale! }}>
<TolgeeProvider tolgee={tolgee} ssr={{ language: router.locale }}>
<div className={styles.container}>
<Head>
<title>Create Next App</title>
Expand Down
2 changes: 1 addition & 1 deletion testapps/next/src/tolgeeNext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const TolgeeNextProvider = ({
options={{ useSuspense: true }}
ssr={{
staticData,
language: router.locale!,
language: router.locale,
}}
>
{children}
Expand Down

0 comments on commit 1efc495

Please sign in to comment.