@dracul/customize-frontend

1.34.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
     })

/@dracul/customize-frontend/

    Package Sidebar

    Install

    npm i @dracul/customize-frontend

    Weekly Downloads

    23

    Version

    1.34.0

    License

    MIT

    Unpacked Size

    125 kB

    Total Files

    70

    Last publish

    Collaborators

    • cincarnato