Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Language Config & Update Navbar for future i18n support #11

Merged
merged 4 commits into from
Mar 5, 2025

Conversation

Metalhearf
Copy link
Contributor

@Metalhearf Metalhearf commented Mar 3, 2025

Pull Request: Refactor Language Configuration & Update Navbar

Changes:

  • Refactored language configuration to include 'root' (English) as the default locale and hid it from the URL. (And skip redirect added earlier)
  • Updated the left navbar links with a new order + sections, and added relevant emojis for each section.
  • Applied initial layout changes to accommodate upcoming i18n (internationalization) updates. Hopefully to pave the way for other languages to be translated.
  • Updated "WIP" message, call to actions buttons, etc.

These changes improve the structure of the language configuration and enhance user experience with this navigation. I'm up for changes/renames etc.


Personal Note:

It seems that in order to properly support i18n with Starlight, the default language (English/root) must be placed in src/docs/content/xxx, and other languages should be in separate folders like /fr/, /nl/ at the same level. I don't find this structure ideal, but it should work for now and it's invisible for users browsing the site.
See withastro/starlight#1008.

Screenshot (Before / After)

before-after

@kRHYME7 kRHYME7 requested review from rubiin and kRHYME7 March 5, 2025 00:47
Copy link
Contributor

@kRHYME7 kRHYME7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@kRHYME7 kRHYME7 merged commit b9cdccb into HyDE-Project:master Mar 5, 2025
@kRHYME7
Copy link
Contributor

kRHYME7 commented Mar 5, 2025

@Metalhearf Can you create a README on how they can do the translation ?

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.

2 participants