Files
Zack TannerandGitHub 9c69c838d1 remove locale from app link (#73052)
This prop is a no-op in app router. This removes the code that handled
it for the App Router link, and adds a warning for apps that are
attempting to use it in an app router context.
2024-11-21 12:12:21 -05:00

15 lines
231 B
JavaScript

import Link from 'next/link'
export default function Page() {
return (
<>
<Link href="/about" locale="en">
Link 1
</Link>
<Link href="/about" locale="fr">
Link 2
</Link>
</>
)
}