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