react-i18next
Advanced tools
Comparing version 11.14.0 to 11.14.1
@@ -0,1 +1,5 @@ | ||
### 11.14.1 | ||
- Rollback [1402](https://github.com/i18next/react-i18next/pull/1402): Remove generics from Trans component to suppress warning issue [1400](https://github.com/i18next/react-i18next/pull/1400) | ||
### 11.14.0 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "react-i18next", | ||
"version": "11.14.0", | ||
"version": "11.14.1", | ||
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -217,2 +217,3 @@ import i18next, { | ||
export interface TransProps< | ||
K extends TFuncKey<N> extends infer A ? A : never, | ||
N extends Namespace = DefaultNamespace, | ||
@@ -226,3 +227,3 @@ E extends Element = HTMLDivElement | ||
i18n?: i18n; | ||
i18nKey?: I18nKeyType<N> | I18nKeyType<N>[]; | ||
i18nKey?: K | K[]; | ||
ns?: N; | ||
@@ -235,5 +236,7 @@ parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null | ||
export function Trans<N extends Namespace = DefaultNamespace, E extends Element = HTMLDivElement>( | ||
props: TransProps<N, E>, | ||
): React.ReactElement; | ||
export function Trans< | ||
K extends TFuncKey<N> extends infer A ? A : never, | ||
N extends Namespace = DefaultNamespace, | ||
E extends Element = HTMLDivElement | ||
>(props: TransProps<K, N, E>): React.ReactElement; | ||
@@ -240,0 +243,0 @@ export function useSSR(initialI18nStore: Resource, initialLanguage: string): void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
336621
5964