2024-11-06intl 多语言国际化,自动补全locale,createNavigation ,createLocalizedPathnamesNavigation(已弃用) import{createNavigation}from'next-intl/navigation'exportconst{Link,redirect,usePathname,useRouter,getPathname}=createNavigation({locales,localePrefix,pathnames});页面的路由跳转和link 用这里导出的即可。 importcreateMiddlewaref