react-i18next 11.15.0 → 11.15.1
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/index.d.ts +1 -0
- package/package.json +1 -1
- package/ts4.1/index.d.ts +2 -1
package/CHANGELOG.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface TransProps<E extends Element = HTMLDivElement>
|
|
|
43
43
|
parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null
|
|
44
44
|
tOptions?: {};
|
|
45
45
|
values?: {};
|
|
46
|
+
shouldUnescape?: boolean;
|
|
46
47
|
t?: TFunction;
|
|
47
48
|
}
|
|
48
49
|
export function Trans<E extends Element = HTMLDivElement>(props: TransProps<E>): React.ReactElement;
|
package/package.json
CHANGED
package/ts4.1/index.d.ts
CHANGED
|
@@ -250,6 +250,7 @@ export interface TransProps<
|
|
|
250
250
|
parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null
|
|
251
251
|
tOptions?: {};
|
|
252
252
|
values?: {};
|
|
253
|
+
shouldUnescape?: boolean;
|
|
253
254
|
t?: TFunction<N, TKPrefix>;
|
|
254
255
|
}
|
|
255
256
|
|
|
@@ -268,7 +269,7 @@ export interface UseTranslationOptions<TKPrefix = undefined> {
|
|
|
268
269
|
keyPrefix?: TKPrefix;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
|
-
type UseTranslationResponse<N extends Namespace, TKPrefix> = [
|
|
272
|
+
export type UseTranslationResponse<N extends Namespace, TKPrefix = undefined> = [
|
|
272
273
|
TFunction<N, TKPrefix>,
|
|
273
274
|
i18n,
|
|
274
275
|
boolean,
|