正在加载视频...
视频加载失败
Internationalization (i18n) in Next.js 13
9 条评论

Good introduction. But in the real world you also need translated slugs in the corresponding language. So you need redirects and rewrites. Also important to add the right canonical links.

don't forget this

It would be also nice to have /en/hello and /es/hola but quite nice 👌🏽

Nice. We have a similar solution implemented. Not exactly the same since all countries have different host name. One thing I would do for the default one is rewrite instead of redirect, but I guess that is a matter of use case and requirement.

These animations are siiiiilk 😍

It works perfectly for server components, but then you have a client component. It's really hard to maintain. Next-translate package handles both.

what is the hello page is for /en but for /es you call it ola, how would this work ?

olha que foda @frontfabii @ducaswtf

Keep m coming ❤️
