Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export I18nextContext to allow users to get the context instance of i18next #829

Merged
merged 1 commit into from Apr 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/index.d.ts
Expand Up @@ -87,6 +87,7 @@ export interface I18nextProviderProps {
}

export const I18nextProvider: React.FunctionComponent<I18nextProviderProps>;
export const I18nContext: React.Context<i18next.i18n>;

export interface TranslationProps {
children: (
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -7,6 +7,7 @@ export { withSSR } from './withSSR';
export { useSSR } from './useSSR';

export {
I18nContext,
initReactI18next,
setDefaults,
getDefaults,
Expand Down