From 59087353f0eb4ada12bb3e5ace5359791328ad90 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 20 Dec 2018 16:35:25 +0100 Subject: [PATCH 1/2] Fixed an i18n bug where switching back to en_US would fail --- front/src/components/Footer.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/front/src/components/Footer.vue b/front/src/components/Footer.vue index a0543e1e3..f62bc548b 100644 --- a/front/src/components/Footer.vue +++ b/front/src/components/Footer.vue @@ -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 }) } From 42a9c1f92201e43851b839eebed8b8ee59670716 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 20 Dec 2018 16:38:13 +0100 Subject: [PATCH 2/2] Disabled prefetching of showdown / translations --- front/vue.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/vue.config.js b/front/vue.config.js index ede81fd1a..f4d96898e 100644 --- a/front/vue.config.js +++ b/front/vue.config.js @@ -37,6 +37,9 @@ module.exports = { }, chainWebpack: config => { config.optimization.delete('splitChunks') + console.log(config.plugins) + config.plugins.delete('prefetch-embed') + config.plugins.delete('prefetch-index') }, configureWebpack: { plugins: plugins,