Skip to content

Commit

Permalink
try to fix namespacesRequired in serverSideTranslations is not type-s…
Browse files Browse the repository at this point in the history
…afe anymore #2201
  • Loading branch information
adrai committed Sep 2, 2023
1 parent 24e0913 commit 1ccf494
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 14.0.1
## 14.0.2

- try to fix namespacesRequired in serverSideTranslations is not type-safe anymore [#2201](https://github.com/i18next/next-i18next/issues/2201)

Expand Down
8 changes: 4 additions & 4 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
"interface": "i18next-resources-for-ts interface -i ./public/locales/en -o ./@types/resources.d.ts"
},
"dependencies": {
"i18next": "23.4.1",
"i18next": "23.4.6",
"next": "^13.4.12",
"next-i18next": "^14.0.0",
"next-i18next": "^14.0.1",
"react": "^18.2.0",
"react-i18next": "^13.0.3",
"react-i18next": "^13.2.1",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20.4.8",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"eslint-config-next": "^13.4.12",
"i18next-resources-for-ts": "1.2.1",
"i18next-resources-for-ts": "1.3.0",
"rimraf": "^5.0.1",
"picocolors": "^1.0.0",
"typescript": "^5.1.6"
Expand Down
2 changes: 2 additions & 0 deletions src/serverSideTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const serverSideTranslations = async (
initialLocale: string,
namespacesRequired:
| ArrayElementOrSelf<Namespace>
| string
| string[]
| undefined = undefined,
configOverride: UserConfig | null = null,
extraLocales: string[] | false = false
Expand Down

0 comments on commit 1ccf494

Please sign in to comment.