aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2020-06-09 09:31:33 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2020-06-09 09:31:33 +0000
commitaa125072b329a7e2f3ce645d0f2666c9875bc484 (patch)
tree6fd9bc179a41d0d6b822d6d1175955444226c020 /src/App.js
parent951f25707a3e38d0585a55a4d18135c8b64c0d2a (diff)
parent44db3af0db55454c537a26bf9ea3fc8e121c7e43 (diff)
Merge branch 'async-language-loading' into 'develop'
Messages: Load languages asynchronously. See merge request pleroma/pleroma-fe!1136
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index 6445335a..040138c9 100644
--- a/src/App.js
+++ b/src/App.js
@@ -47,7 +47,8 @@ export default {
}),
created () {
// Load the locale from the storage
- this.$i18n.locale = this.$store.getters.mergedConfig.interfaceLanguage
+ const val = this.$store.getters.mergedConfig.interfaceLanguage
+ this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: val })
window.addEventListener('resize', this.updateMobileState)
},
destroyed () {