Skip to content

Conversation

@liberaldev
Copy link
Contributor

@liberaldev liberaldev commented Dec 25, 2025

Previously, users needed to manually switch languages to view these pages. This became especially inconvenient with newly published content—users had to wait for translation PRs to be merged or manually change their language settings to access the information. Furthermore, attempting to switch a post's language to one without an existing translation triggered a 404 error.

This PR addresses these issues by introducing a fallback mechanism. Now, if a specific translation is unavailable, the English version of the page is displayed instead of returning an error. As a result, newly published content is immediately accessible to all users, regardless of their language settings.

Changes

  • Added logic to check for translation availability.
  • Configured the system to render the English page as a fallback when the target language content is missing.

Attribution
The code in this pull request was primarily generated using JetBrains Junie

@liberaldev liberaldev requested a review from a team as a code owner December 25, 2025 07:52
@liberaldev liberaldev changed the title Add fallback en page Implement English fallback for missing translations to prevent 404 errors Dec 25, 2025
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