react-i18next 11.18.5 → 11.18.6
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 +2 -0
- package/package.json +1 -1
- package/ts4.1/index.d.ts +3 -0
package/CHANGELOG.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export interface UseTranslationOptions {
|
|
|
56
56
|
useSuspense?: boolean;
|
|
57
57
|
keyPrefix?: string;
|
|
58
58
|
bindI18n?: string | false;
|
|
59
|
+
nsMode?: 'fallback' | 'default';
|
|
59
60
|
// other of these options might also work: https://github.com/i18next/i18next/blob/master/index.d.ts#L127
|
|
60
61
|
}
|
|
61
62
|
export type UseTranslationResponse = [TFunction, i18n, boolean] & {
|
|
@@ -129,6 +130,7 @@ export interface TranslationProps {
|
|
|
129
130
|
ns?: Namespace;
|
|
130
131
|
i18n?: i18n;
|
|
131
132
|
useSuspense?: boolean;
|
|
133
|
+
nsMode?: 'fallback' | 'default';
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
export function Translation(props: TranslationProps): any;
|
package/package.json
CHANGED
package/ts4.1/index.d.ts
CHANGED
|
@@ -294,6 +294,8 @@ export interface UseTranslationOptions<TKPrefix = undefined> {
|
|
|
294
294
|
i18n?: i18n;
|
|
295
295
|
useSuspense?: boolean;
|
|
296
296
|
keyPrefix?: TKPrefix;
|
|
297
|
+
bindI18n?: string | false;
|
|
298
|
+
nsMode?: 'fallback' | 'default';
|
|
297
299
|
}
|
|
298
300
|
|
|
299
301
|
export type UseTranslationResponse<N extends Namespace, TKPrefix = undefined> = [
|
|
@@ -387,6 +389,7 @@ export interface TranslationProps<
|
|
|
387
389
|
i18n?: i18n;
|
|
388
390
|
useSuspense?: boolean;
|
|
389
391
|
keyPrefix?: TKPrefix;
|
|
392
|
+
nsMode?: 'fallback' | 'default';
|
|
390
393
|
}
|
|
391
394
|
|
|
392
395
|
export function Translation<
|