Skip to content

Commit

Permalink
refactor: cease forwarding initialLocale from serverSideTranslations
Browse files Browse the repository at this point in the history
  • Loading branch information
skrivanos committed Sep 13, 2021
1 parent ffb9879 commit 181a43a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/serverSideTranslations.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const DummyApp = appWithTranslation(() => (
const props = {
pageProps: {
_nextI18Next: {
initialLocale: 'en',
userConfig: {
i18n: {
defaultLocale: 'en',
Expand Down Expand Up @@ -185,7 +184,6 @@ describe('serverSideTranslations', () => {
initialI18nStore: {
'en-US': {},
},
initialLocale: 'en-US',
userConfig: {
i18n: {
defaultLocale: 'en-US',
Expand Down
1 change: 0 additions & 1 deletion src/serverSideTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export const serverSideTranslations = async (
return {
_nextI18Next: {
initialI18nStore,
initialLocale,
userConfig: config.serializeConfig ? userConfig : null,
},
}
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export type CreateClientReturn = {
export type SSRConfig = {
_nextI18Next: {
initialI18nStore: any
initialLocale: string
userConfig: UserConfig | null
}
}
Expand Down

0 comments on commit 181a43a

Please sign in to comment.