next-i18next 16.0.4 → 16.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -676,7 +676,8 @@ If you were using i18next and react-i18next directly (as recommended in v15):
676
676
 
677
677
  1. Update imports from `next-i18next` to `next-i18next/pages`
678
678
  2. Update `serverSideTranslations` import to `next-i18next/pages/serverSideTranslations`
679
- 3. Everything else works the same
679
+ 3. Update type imports: `import type { TFunction, WithTranslation, I18n } from 'next-i18next/pages'`
680
+ 4. Everything else works the same
680
681
 
681
682
  ---
682
683
 
@@ -1,4 +1,4 @@
1
- import { SSRConfig, UserConfig } from "./types.cjs";
1
+ import { I18n, SSRConfig, TFunction, UseTranslation, UserConfig, WithTranslation, WithTranslationHocType } from "./types.cjs";
2
2
  import { appWithTranslation, globalI18n } from "./appWithTranslation.cjs";
3
3
  import { I18nContext, Trans, Translation, useTranslation, withTranslation } from "react-i18next";
4
- export { I18nContext, type SSRConfig, Trans, Translation, type UserConfig, appWithTranslation, globalI18n as i18n, useTranslation, withTranslation };
4
+ export { type I18n, I18nContext, type SSRConfig, type TFunction, Trans, Translation, type UseTranslation, type UserConfig, type WithTranslation, type WithTranslationHocType, appWithTranslation, globalI18n as i18n, useTranslation, withTranslation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-i18next",
3
- "version": "16.0.4",
3
+ "version": "16.0.5",
4
4
  "repository": "git@github.com:i18next/next-i18next.git",
5
5
  "author": "i18next",
6
6
  "funding": [