@dracul/customize-frontend

2.1.0 • Public • Published

##Documentation

Vuei18n Integration

On your main.js file

import store from './store'
import i18n from './i18n'

//1. Load from localstore
i18n.locale = store.state.customization.language
//2. Load from backend
store.dispatch('loadCustomizations')
     .then(r => {
         i18n.locale = r.language
     })

Package Sidebar

Install

npm i @dracul/customize-frontend

Weekly Downloads

14

Version

2.1.0

License

MIT

Unpacked Size

125 kB

Total Files

70

Last publish

Collaborators

  • cincarnato