Skip to content

feat(404): add 404 page with i18n support#9

Open
ramistodev wants to merge 1 commit intomidudev:mainfrom
ramistodev:feature/add-404-page
Open

feat(404): add 404 page with i18n support#9
ramistodev wants to merge 1 commit intomidudev:mainfrom
ramistodev:feature/add-404-page

Conversation

@ramistodev
Copy link
Copy Markdown

This pull request adds a localized custom 404 error page and improves translation consistency in the codebase. The main changes include implementing a new 404.astro page with i18n support, introducing new translation keys for the 404 page in both English and Spanish, and standardizing translation object keys for better maintainability.

404 Page Implementation:

  • Added a new src/pages/404.astro component to render a user-friendly, localized 404 error page. The page displays translated titles, descriptions, and a "Back to home" button based on the user's locale.

Internationalization Enhancements:

  • Introduced new translation keys (notFoundTitle, notFoundDescription, backToHome) for both English and Spanish in src/i18n/translations.ts to support the 404 page. [1] [2] [3]
  • Standardized translation object keys by removing unnecessary quotes around keys (e.g., 'recursion'recursion) for improved code consistency and maintainability in both English and Spanish translations. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Minor Code Improvements:

  • Reformatted the getAlgorithmMetaTitle function signature for readability in src/i18n/translations.ts.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

@ramistodev is attempting to deploy a commit to the midudev pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant