Sign in

徐烜 / bsth-ebus-h5_editor · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • bsth-ebus-h5_editor
  • front-end
  • h5
  • src
  • mixins
  • i18n.js
  • feat(i18n) setup i18n config
    90d0b6a4
    ly525 authored
    2019-09-17 01:04:20 +0800  
    Browse Code »
i18n.js 261 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { mapState, mapActions } from 'vuex'

export default {
  computed: {
    ...mapState({
      currentLang: state => state.i18n.lang
    })
  },
  methods: {
    ...mapActions('i18n', ['SetLang']),
    setLang (lang) {
      this.SetLang(lang)
    }
  }
}