leonardovilarinho/vue-multilanguage

Can't use capitals in language names

Closed this issue · 4 comments

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

Hi Leo,

I updated my original post.

The plugin accept only lowercase languages.