default language is not being picked up
mvanroon opened this issue · 2 comments
mvanroon commented
See code below. Language is always being set to 'nl' because my browser is Dutch.
I can't seem to force the default language.
also I've tried setting this.$language to 'en' in of my component, but this too does not seem to work
main.js:
import VueMultiLanguage from 'vue-multilanguage'
Vue.use(VueMultiLanguage, {
default: 'en',
en: {
title: 'Hello',
welcome: 'Welcome, {name}'
},
nl: {
title: 'Olá',
welcome: 'Bem-vindo, {name}'
}
})
Component.vue:
<template>
<div class="component">
<h1 v-lang.title></h1>
</div>
</template>
leonardovilarinho commented
This error also has not been reproduced here, when changing the default language works normally, check again if you can not show prints.
mvanroon commented
See #14 (comment)