Skip to content

Commit

Permalink
Merge pull request #829 from Swiip/expose-i18next-context
Browse files Browse the repository at this point in the history
export I18nextContext to allow users to get the context instance of i18next
  • Loading branch information
jamuhl authored Apr 17, 2019
2 parents 9a0722d + b898835 commit f9f7253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { withSSR } from './withSSR';
export { useSSR } from './useSSR';

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

0 comments on commit f9f7253

Please sign in to comment.