Skip to content

Commit

Permalink
chore: error page
Browse files Browse the repository at this point in the history
  • Loading branch information
plushdohn committed Dec 20, 2023
1 parent 584cc8d commit 04dc037
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions error.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script setup lang="ts">
const localePath = useLocalePath();
</script>

<template>
<main class="h-[100dvh] flex flex-col justify-center items-center">
<DescribedHeader :title="$t('error.title')">
{{ $t("error.description") }}
</DescribedHeader>
<UButton
:to="localePath('/')"
color="white"
size="lg"
leading-icon="i-tabler-chevron-left"
>
{{ $t("error.homeLink") }}
</UButton>
</main>
</template>
5 changes: 5 additions & 0 deletions translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,9 @@ export const de = {
seoTitle: "Regeln",
homeLink: "Zurück zur Startseite",
},
error: {
title: "Hoppla! Etwas ist schief gelaufen.",
description: "Anscheinend konnte diese Seite nicht geladen werden.",
homeLink: "Zurück zur Startseite",
},
} satisfies typeof en;
5 changes: 5 additions & 0 deletions translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ export const en = {
seoTitle: "Rules",
homeLink: "Back to home",
},
error: {
title: "Oops! Something went wrong.",
description: "Apparently this page could not be loaded.",
homeLink: "Back to home",
},
};
5 changes: 5 additions & 0 deletions translations/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,9 @@ export const es = {
seoTitle: "Reglas",
homeLink: "Página de inicio",
},
error: {
title: "¡Ups! Algo salió mal.",
description: "Aparentemente esta página no se pudo cargar.",
homeLink: "Página de inicio",
},
} satisfies typeof en;
5 changes: 5 additions & 0 deletions translations/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export const fr = {
seoTitle: "Règles",
homeLink: "Retour à l'accueil",
},
error: {
title: "Oups ! Quelque chose s'est mal passé.",
description: "Apparemment, cette page n'a pas pu être chargée.",
homeLink: "Retour à l'accueil",
},
} satisfies typeof en;
5 changes: 5 additions & 0 deletions translations/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export const it = {
seoTitle: "Regole",
homeLink: "Torna alla home",
},
error: {
title: "Oops! Qualcosa è andato storto.",
description: "Apparentemente questa pagina non può essere caricata.",
homeLink: "Torna alla home",
},
} satisfies typeof en;

0 comments on commit 04dc037

Please sign in to comment.