feat(i18n): remove title in contact and i18nize the page titles
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -4,8 +4,9 @@ import type { InternalApi } from "nitropack/types";
|
||||
import { promiseTimeout, useElementSize } from "@vueuse/core";
|
||||
import gsap from "gsap";
|
||||
|
||||
const { t } = useI18n();
|
||||
useHead({
|
||||
title: "Gallery - Pihkaal",
|
||||
title: computed(() => `${t("screens.gallery")} - Pihkaal`),
|
||||
});
|
||||
|
||||
const { data: images } = await useAsyncData(
|
||||
|
||||
Reference in New Issue
Block a user