Skip to content

Commit

Permalink
feat: Added error translations
Browse files Browse the repository at this point in the history
  • Loading branch information
data-miner00 committed May 27, 2023
1 parent 257a38e commit 9b6bbb1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ContentNotFound.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div class="py-20 md:py-0">
<h1 class="text-5xl font-semibold text-center mb-2 md:mb-20">
<span class="text-black dark:text-gray-50">404 Not Found</span>
<span class="text-black dark:text-gray-50">{{ $t("error.title") }}</span>
</h1>
<p class="text-lg text-gray-600 dark:text-gray-200 text-center">
The content does not exist. Please try another one.
{{ $t("error.description") }}
</p>
</div>
</template>
4 changes: 4 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@
"technologies": {
"title": "Technologies"
}
},
"error": {
"title": "404 Not Found",
"description": "The content does not exist. Please try another one. "
}
}
4 changes: 4 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@
"technologies": {
"title": "Les technologies"
}
},
"error": {
"title": "404 Non trouvé",
"description": "Le contenu n'existe pas. Veuillez en essayer un autre."
}
}

0 comments on commit 9b6bbb1

Please sign in to comment.