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 app = useAppStore();
|
||||||
const pageTitle = computed(() => {
|
const pageTitle = computed(() => {
|
||||||
if (!app.booted) return "Pihkaal";
|
if (!app.booted) return "Pihkaal";
|
||||||
const name = app.screen.charAt(0).toUpperCase() + app.screen.slice(1);
|
return `${$t(`screens.${app.screen}`)} - Pihkaal`;
|
||||||
return `${name} - Pihkaal`;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
|
|||||||
@@ -4,8 +4,9 @@ import type { InternalApi } from "nitropack/types";
|
|||||||
import { promiseTimeout, useElementSize } from "@vueuse/core";
|
import { promiseTimeout, useElementSize } from "@vueuse/core";
|
||||||
import gsap from "gsap";
|
import gsap from "gsap";
|
||||||
|
|
||||||
|
const { t } = useI18n();
|
||||||
useHead({
|
useHead({
|
||||||
title: "Gallery - Pihkaal",
|
title: computed(() => `${t("screens.gallery")} - Pihkaal`),
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: images } = await useAsyncData(
|
const { data: images } = await useAsyncData(
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
{
|
{
|
||||||
|
"screens": {
|
||||||
|
"home": "Home",
|
||||||
|
"contact": "Contact",
|
||||||
|
"projects": "Projects",
|
||||||
|
"settings": "Settings",
|
||||||
|
"gallery": "Gallery",
|
||||||
|
"achievements": "Achievements",
|
||||||
|
"credits": "Credits"
|
||||||
|
},
|
||||||
"lagModal": {
|
"lagModal": {
|
||||||
"title": "Performance issues detected",
|
"title": "Performance issues detected",
|
||||||
"body": "Your device seems to be struggling with 3D rendering. Switch to 2D mode for a smoother experience.",
|
"body": "Your device seems to be struggling with 3D rendering. Switch to 2D mode for a smoother experience.",
|
||||||
@@ -180,7 +189,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"contact": {
|
"contact": {
|
||||||
"title": "Choose a Chat Room to join.",
|
"title": "",
|
||||||
"actions": {
|
"actions": {
|
||||||
"open": "Open",
|
"open": "Open",
|
||||||
"copy": "Copy",
|
"copy": "Copy",
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
{
|
{
|
||||||
|
"screens": {
|
||||||
|
"home": "Accueil",
|
||||||
|
"contact": "Contact",
|
||||||
|
"projects": "Projets",
|
||||||
|
"settings": "Paramètres",
|
||||||
|
"gallery": "Galerie",
|
||||||
|
"achievements": "Succès",
|
||||||
|
"credits": "Crédits"
|
||||||
|
},
|
||||||
"lagModal": {
|
"lagModal": {
|
||||||
"title": "Problèmes de performances détectés",
|
"title": "Problèmes de performances détectés",
|
||||||
"body": "Votre appareil semble avoir du mal avec le rendu 3D. Passez en mode 2D pour une expérience plus fluide.",
|
"body": "Votre appareil semble avoir du mal avec le rendu 3D. Passez en mode 2D pour une expérience plus fluide.",
|
||||||
@@ -180,7 +189,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"contact": {
|
"contact": {
|
||||||
"title": "Choisissez un salon de discussion.",
|
"title": "",
|
||||||
"actions": {
|
"actions": {
|
||||||
"open": "Ouvrir",
|
"open": "Ouvrir",
|
||||||
"copy": "Copier",
|
"copy": "Copier",
|
||||||
|
|||||||
Reference in New Issue
Block a user