Next.js Discord

Discord Forum

Should i use an i18n package for just one page

Unanswered
European pilchard posted this in #help-forum
Open in Discord
European pilchardOP
Should I use an i18n package if I only want to have one page in English?

We have an agency and we have recently started to offer international seo, we are often contacted by foreign agencies and asked if we can take over the German content. Our website content is 100% German but we want to make an English site where we can be found by English searchers.

How can i change the language tag of the html from a page?

7 Replies

You could stick to the default setup in Next.js
In my experience though maintaining translations on the same site can be super annoying, you may want to ponder the idea of having a totally separate english website
you definitely do not need a package here
@Eric Burel In my experience though maintaining translations on the same site can be super annoying, you may want to ponder the idea of having a totally separate english website
European pilchardOP
I will probably just create an english and a german page how can I change the lang attribute in the html of the english version to en
you need to use top level [lang] route parameter
so you can use [lang] within the root layout where you render html