Javascript Nextjs动态路由器将参数转换为```next-i18next```
使用Javascript Nextjs动态路由器将参数转换为```next-i18next```,javascript,reactjs,next.js,next-i18next,Javascript,Reactjs,Next.js,Next I18next,使用getstaticpath时是否有转换参数的方法 当使用router.push({pathname,query},asPath,{locale:nextLocale})时,您应该生成所有带有翻译的路径,还是有办法只翻译参数 例如,如果我在getStaticPaths中有路径:{params:{color:'white',size:'big}},这会导致/dogs/white/big,在切换到DE时有/dogs/weiss/gross,而不在路径数组中添加{params:{color:'wei
getstaticpath
时是否有转换参数的方法
当使用router.push({pathname,query},asPath,{locale:nextLocale})时,您应该生成所有带有翻译的路径,还是有办法只翻译参数
例如,如果我在getStaticPaths中有路径:{params:{color:'white',size:'big}}
,这会导致/dogs/white/big
,在切换到DE
时有/dogs/weiss/gross
,而不在路径数组中添加{params:{color:'weiss',size:'gross},locale:'DE}