import { createI18n } from 'vue-i18n'
import pluralRules from "./rules/pluralization.js"
import numberFormats from "./rules/numbers.js"
import datetimeFormats from "./rules/datetime.js"
import en from './locales/en.json'
import ru from './locales/ru.json'

const i18n = createI18n({

    legacy: false,
    globalInjection: true,
    messages: {
      en,
      ru
    },
    pluralRules,
    numberFormats,
    datetimeFormats
  })
  export default i18n