The interface was translated in en/it/es/fr via @nuxtjs/i18n. Drop the module, the locale files, and the language switcher: the UI is now static Italian text, with translation for foreign visitors left to the Google Translate browser extension instead of the app.
26 lines
593 B
Vue
26 lines
593 B
Vue
<script setup lang="ts">
|
|
import type { NuxtError } from '#app'
|
|
|
|
const props = defineProps<{ error: NuxtError }>()
|
|
|
|
const isNotFound = computed(() => props.error.statusCode === 404)
|
|
|
|
useSeoMeta({ robots: 'noindex' })
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLayout>
|
|
<h1>{{ isNotFound ? 'Pagina non trovata' : 'Qualcosa è andato storto' }}</h1>
|
|
|
|
<p class="muted">
|
|
{{ isNotFound
|
|
? 'La pagina che cerchi non esiste o è stata spostata.'
|
|
: 'Riprova tra qualche istante.' }}
|
|
</p>
|
|
|
|
<p>
|
|
<NuxtLink to="/">Torna alla home</NuxtLink>
|
|
</p>
|
|
</NuxtLayout>
|
|
</template>
|