Fixed an i18n bug where switching back to en_US would fail

This commit is contained in:
Eliot Berriot 2018-12-20 16:35:25 +01:00
parent e1f02ede35
commit 59087353f0
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ export default {
let self = this
import(`../translations/${value}.json`).then((response) =>{
Vue.$translations[value] = response.default[value]
}).finally(() => {
self.$language.current = value
})
}