From e1b0645685850ca3ac5fa4e9120460ca612bcd0d Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Fri, 16 Sep 2022 11:28:51 +0530 Subject: [PATCH] remove stuff from translations --- .../components/VPDocAsideOutline.vue | 8 ++- .../theme-default/components/VPDocFooter.vue | 4 +- .../components/VPDocFooterLastUpdated.vue | 2 +- .../theme-default/composables/outline.ts | 7 +- types/default-theme.d.ts | 71 +++++++++++++------ 5 files changed, 64 insertions(+), 28 deletions(-) diff --git a/src/client/theme-default/components/VPDocAsideOutline.vue b/src/client/theme-default/components/VPDocAsideOutline.vue index cd8e8f91416a..2fbb7813dcdf 100644 --- a/src/client/theme-default/components/VPDocAsideOutline.vue +++ b/src/client/theme-default/components/VPDocAsideOutline.vue @@ -43,7 +43,13 @@ function handleClick({ target: el }: Event) {
- {{ theme.translations?.outlineTitle || 'On this page' }} + {{ + (typeof theme.outline === 'object' && + !Array.isArray(theme.outline) && + theme.outline.title) || + theme.outlineTitle || + 'On this page' + }}