Skip to content

Collection of handy online tools for developers, with great UX.

feat(i18n): 404 page (#679)

莫颓35563b8457e0
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' });
</span>
<h1 m-0 mt-3>
- 404 Not Found
+ {{ $t('404.notFound') }}
</h1>
<div mt-4 op-60>
- Sorry, this page does not seem to exist
+ {{ $t('404.sorry') }}
</div>
<div mb-8 op-60>
- Maybe the cache is doing tricky things, try force-refreshing?
+ {{ $t('404.maybe') }}
</div>
<c-button to="/">
- Back home
+ {{ $t('404.backHome') }}
</c-button>
</div>
</template>