bc0e419c31f201f7d2c64993468a7f764732aa57.svn-base 417 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