c9d90ff0c23f853b755086fa80da48a0d4a83496.svn-base 414 B

123456789101112131415161718
  1. import Vue from 'vue'
  2. import VueI18n from 'vue-i18n'
  3. import EN from '@/lang/en'
  4. import CN from '@/lang/cn'
  5. import enLocale from 'element-ui/lib/locale/lang/en'
  6. import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
  7. Vue.use(VueI18n)
  8. const i18n = new VueI18n({
  9. locale: 'CN', // set locale
  10. messages: {
  11. EN: { ...EN, ...enLocale },
  12. CN: { ...CN, ...zhLocale }
  13. }
  14. })
  15. console.log(i18n)
  16. export default i18n