From f3b6bc102916b2248d76ff597431fc4e7fed5d39 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 27 Jul 2018 19:49:41 +0200 Subject: [PATCH] Fixed weird bugs with translations not updating --- front/src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front/src/main.js b/front/src/main.js index fde332acc..eca2e6205 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -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 () {