siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
13 lines (9 loc) • 316 B
JavaScript
import Vue from 'vue'
// add translations directly to the application
Vue.i18n.add('br', require('./pt_br.json'))
Vue.i18n.add('en', require('./en.json'))
Vue.i18n.add('es', require('./es.json'))
// set the start locale to use
Vue.i18n.set('en')
// set fallback for non-translated strings
Vue.i18n.fallback('en')