From d9f4911b60240c608d8af283d4801b4c448d22f4 Mon Sep 17 00:00:00 2001 From: Tushar Ahire Date: Thu, 26 Dec 2024 20:24:28 +0530 Subject: [PATCH] fix: adds i18n token for error pages --- src/application/i18n/messages/en.json | 4 ++++ src/presentation/pages/Error.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/application/i18n/messages/en.json b/src/application/i18n/messages/en.json index 5010264b..ed94a9fe 100644 --- a/src/application/i18n/messages/en.json +++ b/src/application/i18n/messages/en.json @@ -105,6 +105,10 @@ "title": "Recents", "authText": "You are not logged in, log in to see your recent notes" }, + "error": { + "404": "Not found", + "500": "Internal server error" + }, "errors": { "404": "Page not found", "500": "Unknown error happened", diff --git a/src/presentation/pages/Error.vue b/src/presentation/pages/Error.vue index e387719e..794ef100 100644 --- a/src/presentation/pages/Error.vue +++ b/src/presentation/pages/Error.vue @@ -56,7 +56,7 @@ useHead({ }); const openPageInfo = { - title: te(`errors.${props.code}`) ? t(`errors.${props.code}`) : t(`errors.default`), + title: te(`error.${props.code}`) ? t(`error.${props.code}`) : t(`pages.error`), url: route.path, };