feat: default locale with namespacing

This commit is contained in:
Nick
2019-06-21 23:39:04 -04:00
parent 28cf67cdaa
commit 1dfb55e803
7 changed files with 56 additions and 50 deletions

View File

@@ -185,6 +185,8 @@
import _ from 'lodash'
import { sync, get } from 'vuex-pathify'
/* global siteLangs, siteConfig */
export default {
props: {
value: {
@@ -197,7 +199,7 @@ export default {
isPublishStartShown: false,
isPublishEndShown: false,
pageSelectorShown: false,
namespaces: ['en'],
namespaces: siteLangs.length ? siteLangs.map(ns => ns.code) : [siteConfig.lang],
tourSteps: [
{
target: '.dialog-header',