Skip to content

Commit

Permalink
404 i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Carleslc committed Jan 18, 2022
1 parent 5a7cf71 commit 6a34946
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/i18n/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export default {
username: 'Username',
password: 'Password',
cancel: 'Cancel',
back: 'Go back',
notFound: 'Sorry, nothing here...',
error: 'Oops... an unexpected error has occurred 😣',
about: {
description: 'Watch your favourite animes with your usual provider, synchronized with {api}.',
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/es/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export default {
username: 'Nombre de usuario',
password: 'Contraseña',
cancel: 'Cancelar',
back: 'Volver',
notFound: 'Lo sentimos, no hay nada aquí...',
error: 'Vaya... ha ocurrido un error inesperado 😣',
about: {
description: 'Disfruta de tus animes favoritos con tu proveedor habitual, sincronizado con {api}.',
Expand Down
7 changes: 5 additions & 2 deletions src/pages/Error404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
<p class="text-center">
<img src="~assets/sad.svg" color="secondary" style="fill: red; width: 30vw; max-width: 150px;" />
</p>
<p class="text-center text-faded text-white">Sorry, nothing here... <strong>(404)</strong></p>
<q-btn color="secondary" style="width: 200px;" to="/" label="Go back" />
<p class="text-center text-faded text-white">
{{ $t('notFound') }}
(<strong>404</strong>)
</p>
<q-btn color="secondary" style="width: 200px;" to="/" :label="$t('back')" />
</div>
</template>

Expand Down

0 comments on commit 6a34946

Please sign in to comment.