import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import { kr, en } from '@/shared/constants/locales';
export const defaultNS = 'common';
export const resources = {
  kr: kr,
  ex: en,
} as const;

i18n.use(initReactI18next).init({
  defaultNS,
  resources,
  fallbackLng: ['kr', 'en'],
  lng: 'kr',
  interpolation: {
    escapeValue: false,
  },
});

export default i18n;
