Translate Names of ClusterTopMatter for Tags

This fixes a bug, that the Name/Title of Tag detail sites like
/apps/memories/tags/Frog isn't translated, even though the
name of the Tag is translated in the tag overview page.

Signed-off-by: Christoph Wildhagen <git@christoph-wildhagen.de>
pull/839/head
Christoph Wildhagen 2023-09-29 22:26:27 +02:00
parent eacf64fce0
commit 22d24bc608
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { translate as t } from '@nextcloud/l10n';
import NcActions from '@nextcloud/vue/dist/Components/NcActions';
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
import * as strings from '../../services/strings';
@ -35,7 +36,7 @@ export default defineComponent({
name(): string | null {
switch (this.$route.name) {
case 'tags':
return this.$route.params.name;
return t('recognize',this.$route.params.name);
case 'places':
return this.$route.params.name?.split('-').slice(1).join('-');
default: