import i18next from 'i18next';
import {initReactI18next} from 'react-i18next';
import tr from '../../locales/tr.json';
import en from '../../locales/en.json';
import de from '../../locales/de.json';

export const languageResources = {
  tr: {translation: tr},
  en: {translation: en},
  de: {translation: de},
};

i18next.use(initReactI18next).init({
  compatibilityJSON: 'v3',
  lng: 'en',
  fallbackLng: 'en',
  resources: languageResources,
});

export default i18next;
