diff --git a/CHANGELOG.md b/CHANGELOG.md index 6572b0d6..504351e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/examples/simple/package.json b/examples/simple/package.json index 1d0fcd93..54ae15d3 100644 --- a/examples/simple/package.json +++ b/examples/simple/package.json @@ -15,11 +15,11 @@ "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": { @@ -27,7 +27,7 @@ "@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" diff --git a/src/serverSideTranslations.ts b/src/serverSideTranslations.ts index d3533c94..9af30914 100644 --- a/src/serverSideTranslations.ts +++ b/src/serverSideTranslations.ts @@ -28,6 +28,8 @@ export const serverSideTranslations = async ( initialLocale: string, namespacesRequired: | ArrayElementOrSelf + | string + | string[] | undefined = undefined, configOverride: UserConfig | null = null, extraLocales: string[] | false = false