You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The web isn't flat. Different regions need different domains, not just different paths. When serving content globally, we often need example.com for international users and example.com.cn for China. This isn't just about translation - it's about complying with local laws and serving region-specific content.
Nextra 2 handles this elegantly. It lets us configure different locales based on deployment targets:
V3 and V4 moved to path-based localization only. While we could use CI scripts to achieve similar results, it adds complexity where none is needed. Nextra 2's approach is simpler: one project, clean architecture, no extra build steps.
Proposed Solution
Rather than letting Nextra 2 fade away, I propose maintaining it as a parallel version that preserves this crucial functionality while bringing in modern improvements. I'm willing to contribute by:
Backporting key features from Nextra 4:
React 19 support
MDX 4 integration
Other relevant new features
Fixing existing issues, starting with React 19 compatibility:
Attempted import error: '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED'
is not exported from 'react'
This isn't about resisting change - it's about preserving a valuable approach to internationalization while keeping the codebase modern and maintained.
Would anyone be interested in collaborating on this effort?
The text was updated successfully, but these errors were encountered:
Rather than letting Nextra 2 fade away, I propose maintaining it as a parallel version that preserves this crucial functionality while bringing in modern improvements. I'm willing to contribute by:
I disagree about the possibility of maintaining Nextra 2 and 3. Only last stable Nextra is maintained
I understand the focus on maintaining only the latest stable version. However, this raises an important question: Is domain-based i18n support completely off the roadmap for future Nextra versions?
If there are no plans to restore this functionality in newer versions, I'd be happy to maintain a community fork of V2 with modern features backported. This could serve projects that depend on domain-based i18n while reducing the maintenance burden on the core team.
What are your thoughts on either of these approaches?
The Power of Domain-based i18n
The web isn't flat. Different regions need different domains, not just different paths. When serving content globally, we often need
example.com
for international users andexample.com.cn
for China. This isn't just about translation - it's about complying with local laws and serving region-specific content.Nextra 2 handles this elegantly. It lets us configure different locales based on deployment targets:
V3 and V4 moved to path-based localization only. While we could use CI scripts to achieve similar results, it adds complexity where none is needed. Nextra 2's approach is simpler: one project, clean architecture, no extra build steps.
Proposed Solution
Rather than letting Nextra 2 fade away, I propose maintaining it as a parallel version that preserves this crucial functionality while bringing in modern improvements. I'm willing to contribute by:
Backporting key features from Nextra 4:
Fixing existing issues, starting with React 19 compatibility:
This isn't about resisting change - it's about preserving a valuable approach to internationalization while keeping the codebase modern and maintained.
Would anyone be interested in collaborating on this effort?
The text was updated successfully, but these errors were encountered: