Skip to content

Commit

Permalink
types: nsMode #1554
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Sep 9, 2022
1 parent a04e1e6 commit 93c08e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### 11.18.6

- types: nsMode [1554](https://github.com/i18next/react-i18next/issues/1554)

### 11.18.5

- support unescaping forward slash [1548](https://github.com/i18next/react-i18next/pull/1548)
Expand Down
2 changes: 2 additions & 0 deletions index.d.ts
Expand Up @@ -56,6 +56,7 @@ export interface UseTranslationOptions {
useSuspense?: boolean;
keyPrefix?: string;
bindI18n?: string | false;
nsMode?: 'fallback' | 'default';
// other of these options might also work: https://github.com/i18next/i18next/blob/master/index.d.ts#L127
}
export type UseTranslationResponse = [TFunction, i18n, boolean] & {
Expand Down Expand Up @@ -129,6 +130,7 @@ export interface TranslationProps {
ns?: Namespace;
i18n?: i18n;
useSuspense?: boolean;
nsMode?: 'fallback' | 'default';
}

export function Translation(props: TranslationProps): any;
3 changes: 3 additions & 0 deletions ts4.1/index.d.ts
Expand Up @@ -294,6 +294,8 @@ export interface UseTranslationOptions<TKPrefix = undefined> {
i18n?: i18n;
useSuspense?: boolean;
keyPrefix?: TKPrefix;
bindI18n?: string | false;
nsMode?: 'fallback' | 'default';
}

export type UseTranslationResponse<N extends Namespace, TKPrefix = undefined> = [
Expand Down Expand Up @@ -387,6 +389,7 @@ export interface TranslationProps<
i18n?: i18n;
useSuspense?: boolean;
keyPrefix?: TKPrefix;
nsMode?: 'fallback' | 'default';
}

export function Translation<
Expand Down

0 comments on commit 93c08e0

Please sign in to comment.