From bd945f6366aacf4ec71c8634414b23a34f89dd0d Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 12 Oct 2022 12:40:56 -0700 Subject: [PATCH] l10n: dynamic top matter --- src/components/Timeline.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index fdeae60d..ca64eba0 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -388,13 +388,13 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) { /** Get view name for dynamic top matter */ getViewName() { switch (this.$route.name) { - case 'timeline': return 'Your Photos'; - case 'favorites': return 'Favorites'; - case 'people': return 'People'; - case 'videos': return 'Videos'; - case 'archive': return 'Archive'; - case 'thisday': return 'On this day'; - case 'tags': return 'Tags'; + case 'timeline': return this.t('memories', 'Your Timeline'); + case 'favorites': return this.t('memories', 'Favorites'); + case 'people': return this.t('memories', 'People'); + case 'videos': return this.t('memories', 'Videos'); + case 'archive': return this.t('memories', 'Archive'); + case 'thisday': return this.t('memories', 'On this day'); + case 'tags': return this.t('memories', 'Tags'); default: return ''; } }