Can't use capitals in language names
Closed this issue · 4 comments
Epro95Z28 commented
The following works fine
import MultiLanguage from 'vue-multilanguage'
import Vue from 'vue'
import en_us from '@/internationalization/en_US/en_US.json'
import fr_ca from '@/internationalization/ca_FR/ca_FR.json'
Vue.use(MultiLanguage, {
default: 'fr_ca',
en_us,
fr_ca
})
This does not work
import MultiLanguage from 'vue-multilanguage'
import Vue from 'vue'
import en_US from '@/internationalization/en_US/en_US.json'
import fr_ca from '@/internationalization/ca_FR/ca_FR.json'
Vue.use(MultiLanguage, {
default: 'en_US ',
en_US,
fr_ca
})
leonardovilarinho commented
Your default language no exists in scope inserted.
Epro95Z28 commented
Hi Leo,
I updated my original post.
leonardovilarinho commented
The plugin accept only lowercase languages.
leonardovilarinho commented
assa
Att, Leonardo Vilarinho
Analista de sistemas pelo Instituto Federal do Triângulo Mineiro