Fixed weird bugs with translations not updating

This commit is contained in:
Eliot Berriot 2018-07-27 19:49:41 +02:00
parent 75852e537a
commit f3b6bc1029
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ if (availableLanguages[store.state.ui.currentLanguage]) {
Vue.use(GetTextPlugin, {
availableLanguages: availableLanguages,
defaultLanguage: defaultLanguage,
// cf https://github.com/Polyconseil/vue-gettext#configuration
// not recommended but this is fixing weird bugs with translation nodes
// not being updated when in v-if/v-else clauses
autoAddKeyAttributes: true,
languageVmMixin: {
computed: {
currentKebabCase: function () {