Skip to content

Commit

Permalink
fix: adds i18n token for error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar504 committed Dec 26, 2024
1 parent ee434d5 commit d9f4911
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/application/i18n/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/presentation/pages/Error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit d9f4911

Please sign in to comment.