fix: UI localization on load + update all namespaced locales

This commit is contained in:
Nick
2019-06-22 12:44:32 -04:00
parent c82b7066bb
commit d0b73c5a9b
6 changed files with 54 additions and 43 deletions

View File

@@ -141,8 +141,6 @@ import Prism from '@/libs/prism/prism.js'
import { get } from 'vuex-pathify'
import _ from 'lodash'
/* global siteLangs */
export default {
components: {
StatusIndicator
@@ -261,10 +259,6 @@ export default {
this.$store.commit('page/SET_UPDATED_AT', this.updatedAt)
this.$store.commit('page/SET_MODE', 'view')
if (siteLangs.length > 0) {
this.$i18n.i18next.changeLanguage(this.locale)
}
},
mounted () {
Prism.highlightAllUnder(this.$refs.container)