github aralroca/next-translate 0.12.0

4 years ago

Thanks to @BjoernRave for this release! 🎉

He introduced a new feature in the component next-translate/Link, adding the prop noLang to take the same behavior than next/link without adding the language at the beginning, for example, to call some API routes. This is useful for consistency to always use the same Link component for navigation.

import Link from 'next-translate/Link'

// if "en" is the current language...
<Link href="/example">link</Link> // -> navigate to /en/example
<Link href="/example" noLang>link</Link> // -> navigate to /example

CHANGES

  • Allow disable lang on Link #89
  • Update deps #90

Don't miss a new next-translate release

NewReleases is sending notifications on new releases.