github fuma-nama/fumadocs fumadocs@16.15.10

3 hours ago
  • @fumadocs/base-ui@16.15.10
  • fumadocs-core@16.15.10
  • fumadocs-ui@16.15.10

Fix language switching with hidden locale prefixes

Root Provider's i18n option now accepts defaultLanguage and hideLocale. The language switcher uses these options instead of guessing from the current URL, so switching from /zh/docs to the default language en with hideLocale: 'default-locale' navigates to /docs.

i18nProvider() and defineI18nUI() pass these options from your i18n config automatically.

Fix same-page anchors on Tanstack Start

Tanstack Router's Link takes a pathname in to and reads the hash from a separate hash prop, so a same-page anchor like [link](#installation) was rendered as a link to the current page with the hash dropped, clicking it did nothing. The Tanstack adapter now renders a native <a> for those hrefs:

Jump to [Installation](#installation).

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.