Fixed weird bugs with translations not updating
This commit is contained in:
parent
75852e537a
commit
f3b6bc1029
|
@ -43,6 +43,10 @@ if (availableLanguages[store.state.ui.currentLanguage]) {
|
||||||
Vue.use(GetTextPlugin, {
|
Vue.use(GetTextPlugin, {
|
||||||
availableLanguages: availableLanguages,
|
availableLanguages: availableLanguages,
|
||||||
defaultLanguage: defaultLanguage,
|
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: {
|
languageVmMixin: {
|
||||||
computed: {
|
computed: {
|
||||||
currentKebabCase: function () {
|
currentKebabCase: function () {
|
||||||
|
|
Loading…
Reference in New Issue