spiderbites / react-cosmos-i18next-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-cosmos-i18next-proxy

Wrap an react-i18next provider around your react-cosmos fixtures.

Installation

npm install -D react-cosmos-i18next-proxy

Usage

// cosmos.proxies.js
import createi18nextProxy from "react-cosmos-i18next-proxy";

// i18n instance options, see: https://react.i18next.com/components/i18next-instance
const i18nInstanceOptions = { fallbackLng: "en" };
export default [createi18nextProxy(i18nInstanceOptions)];

About


Languages

Language:JavaScript 100.0%