react-i18next 11.2.3 → 11.2.4
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/index.d.ts +7 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -79,6 +79,12 @@ export interface WithTranslation extends WithT {
|
|
|
79
79
|
i18n: i18n;
|
|
80
80
|
tReady: boolean;
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
export interface WithTranslationProps {
|
|
84
|
+
i18n?: i18n;
|
|
85
|
+
useSuspense?: boolean;
|
|
86
|
+
}
|
|
87
|
+
|
|
82
88
|
export function withTranslation(
|
|
83
89
|
ns?: Namespace,
|
|
84
90
|
options?: {
|
|
@@ -86,7 +92,7 @@ export function withTranslation(
|
|
|
86
92
|
},
|
|
87
93
|
): <P extends WithTranslation>(
|
|
88
94
|
component: React.ComponentType<P>,
|
|
89
|
-
) => React.ComponentType<Omit<P, keyof WithTranslation
|
|
95
|
+
) => React.ComponentType<Omit<P, keyof WithTranslation> & WithTranslationProps>;
|
|
90
96
|
|
|
91
97
|
export interface I18nextProviderProps {
|
|
92
98
|
i18n: i18n;
|