Fix titles of category, tag, tool pages (#905)

This commit is contained in:
Philipp Fischbeck 2022-01-07 22:08:05 +01:00 committed by GitHub
parent 1482f51fcd
commit 76d2eecd86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 29 deletions

View File

@ -67,10 +67,10 @@ export default defineComponent({
state.headline = i18n.t("tag.tags") as string; state.headline = i18n.t("tag.tags") as string;
break; break;
case ItemTypes.category: case ItemTypes.category:
state.headline = i18n.t("recipe.categories") as string; state.headline = i18n.t("category.categories") as string;
break; break;
case ItemTypes.tool: case ItemTypes.tool:
state.headline = "Tools"; state.headline = i18n.t("tool.tools") as string;
state.icon = $globals.icons.potSteam; state.icon = $globals.icons.potSteam;
break; break;
default: default:
@ -99,8 +99,10 @@ export default defineComponent({
itemsSorted, itemsSorted,
}; };
}, },
head: { head() {
title: "vbase-nuxt", return {
title: this.headline as string,
}
}, },
}); });
</script> </script>

View File

@ -33,6 +33,7 @@
"show-assets": "Show Assets" "show-assets": "Show Assets"
}, },
"category": { "category": {
"categories": "Categories",
"category-created": "Category created", "category-created": "Category created",
"category-creation-failed": "Category creation failed", "category-creation-failed": "Category creation failed",
"category-deleted": "Category Deleted", "category-deleted": "Category Deleted",
@ -436,6 +437,9 @@
"tags": "Tags", "tags": "Tags",
"untagged-count": "Untagged {count}" "untagged-count": "Untagged {count}"
}, },
"tool":{
"tools": "Tools"
},
"user": { "user": {
"admin": "Admin", "admin": "Admin",
"are-you-sure-you-want-to-delete-the-link": "Are you sure you want to delete the link <b>{link}<b/>?", "are-you-sure-you-want-to-delete-the-link": "Are you sure you want to delete the link <b>{link}<b/>?",

View File

@ -109,7 +109,7 @@ export default defineComponent({
}, },
head() { head() {
return { return {
title: this.$t("sidebar.categories") as string, title: this.$t("category.categories") as string,
}; };
}, },
methods: { methods: {
@ -122,4 +122,3 @@ export default defineComponent({
}, },
}); });
</script> </script>

View File

@ -27,9 +27,5 @@ export default defineComponent({
categories, categories,
}; };
}, },
// head: {
// // @ts-ignore
// title: this.$t("sidebar.categories") as string,
// },
}); });
</script> </script>

View File

@ -109,7 +109,7 @@ export default defineComponent({
}, },
head() { head() {
return { return {
title: this.$t("sidebar.categories") as string, title: this.$t("tag.tags") as string,
}; };
}, },
methods: { methods: {
@ -122,4 +122,3 @@ export default defineComponent({
}, },
}); });
</script> </script>

View File

@ -26,9 +26,5 @@ export default defineComponent({
tools, tools,
}; };
}, },
// head: {
// // @ts-ignore
// title: this.$t("sidebar.tags") as string,
// },
}); });
</script> </script>

View File

@ -103,7 +103,7 @@ export default defineComponent({
}, },
head() { head() {
return { return {
title: this.$t("sidebar.categories") as string, title: this.$t("tool.tools") as string,
}; };
}, },
methods: { methods: {
@ -116,4 +116,3 @@ export default defineComponent({
}, },
}); });
</script> </script>

View File

@ -26,8 +26,5 @@ export default defineComponent({
tools, tools,
}; };
}, },
head: {
title: "Tools",
},
}); });
</script> </script>