feat(i18n): remove title in contact and i18nize the page titles

This commit is contained in:
2026-02-26 19:55:24 +01:00
parent c1711de7c0
commit 774d4dacb6
4 changed files with 23 additions and 5 deletions

View File

@@ -4,8 +4,7 @@ const { locale } = useI18n();
const app = useAppStore();
const pageTitle = computed(() => {
if (!app.booted) return "Pihkaal";
const name = app.screen.charAt(0).toUpperCase() + app.screen.slice(1);
return `${name} - Pihkaal`;
return `${$t(`screens.${app.screen}`)} - Pihkaal`;
});
useHead({