UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

35 lines (29 loc) 714 B
import i18n from 'i18next' import Backend from 'i18next-http-backend' import { initReactI18next } from 'react-i18next' import LanguageDetector from 'i18next-browser-languagedetector' i18n // Enables the i18next backend .use(Backend) // Enable automatic language detection .use(LanguageDetector) // Enables the hook initialization module .use(initReactI18next) .init({ lng: 'en', backend: { /* translation file path */ loadPath: '/locales/{{lng}}.json' }, fallbackLng: 'en', debug: false, keySeparator: false, react: { useSuspense: false }, interpolation: { escapeValue: false, formatSeparator: ',' } }) export default i18n