i18next/react-i18next

View on GitHub
src/I18nextProvider.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { I18nContext, usedI18nextProvider } from './context';

export function I18nextProvider({ i18n, children }) {
  usedI18nextProvider(true);

  return React.createElement(
    I18nContext.Provider,
    {
      value: {
        i18n,
      },
    },
    children,
  );
}