shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.84k stars 1.28k forks source link

Localized links #3669

Open jonasschultheiss opened 6 days ago

jonasschultheiss commented 6 days ago

Describe the bug

Links in a localized documentation require manual editing when translating.

To Reproduce Steps to reproduce the behavior:

  1. Create a localized documentation with atleast two languages.
  2. Create two pages for one language.
  3. Link from one page to the other with md links
  4. The language code won't get added dynamically, you have to manually do this.

Expected behavior A clear and concise description of what you expected to happen.

I want that the language in a markdown link gets inferred by next, so that I don't have to keep this change in mind when translating.

dimaMachina commented 6 days ago

please share a visual example, I am not sure I get it

arno-fukuda commented 5 days ago

Taking a guess here.

Previously in v2:

In v3