From 35563b8457e06028746a09881164e0504838f59a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E9=A2=93?= Date: Sun, 22 Oct 2023 16:07:43 +0800 Subject: [PATCH] feat(i18n): 404 page (#679) --- locales/en.yml | 6 +++++- src/pages/404.page.vue | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 385e019b..489a1689 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -1,4 +1,8 @@ home: categories: newestTools: Newest tools - +404: + notFound: '404 Not Found' + sorry: 'Sorry, this page does not seem to exist' + maybe: 'Maybe the cache is doing tricky things, try force-refreshing?' + backHome: 'Back home' diff --git a/src/pages/404.page.vue b/src/pages/404.page.vue index 2bf49bcb..20f61c41 100644 --- a/src/pages/404.page.vue +++ b/src/pages/404.page.vue @@ -11,17 +11,17 @@ useHead({ title: 'Page not found - IT Tools' });

- 404 Not Found + {{ $t('404.notFound') }}

- Sorry, this page does not seem to exist + {{ $t('404.sorry') }}
- Maybe the cache is doing tricky things, try force-refreshing? + {{ $t('404.maybe') }}
- Back home + {{ $t('404.backHome') }}