From 7a582f7146289cbb487d78b1e5ddc765c6bc0cae Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 31 Aug 2019 17:49:54 -0400 Subject: [PATCH] fix: incorrect default lang selected in page-selector component (#1005) --- client/components/common/nav-header.vue | 2 +- client/components/common/page-selector.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/common/nav-header.vue b/client/components/common/nav-header.vue index 353ad02f..577ab3a7 100644 --- a/client/components/common/nav-header.vue +++ b/client/components/common/nav-header.vue @@ -193,7 +193,7 @@ v-icon(color='grey') mdi-account-circle span {{$t('common:header.login')}} - page-selector(mode='create', v-model='newPageModal', :open-handler='pageNewCreate') + page-selector(mode='create', v-model='newPageModal', :open-handler='pageNewCreate', :locale='locale') page-delete(v-model='deletePageModal', v-if='path && path.length') diff --git a/client/components/common/page-selector.vue b/client/components/common/page-selector.vue index 74919da2..8ab5be7f 100644 --- a/client/components/common/page-selector.vue +++ b/client/components/common/page-selector.vue @@ -108,7 +108,7 @@ export default { data() { return { searchLoading: false, - currentLocale: 'en', + currentLocale: siteConfig.lang, currentPath: 'new-page', tree: [], treeChildren: [],