Multicountry + multilanguage

Hi all. I am trying to setup a website which should make it possible to generate content by country, and by language. Examples:

Select Portugal and Portuguese:
https://myite.com/pt/pt

Select Portugal and English:
https://myite.com/pt/en

Is this possible using “Standard” Hugo framework ?

Thanks and regards

Technically yes:

  • set the language code to pt_PT and pt_EN
  • set the link for the language code pt_PT to /pt/pt/

see Multilingual Mode | Hugo - you could set a baseURL to /pt/pt for pt_PT.

1 Like

An example of what @davidsneighbour implies: this project has different content for pt-br and pt-pt

2 Likes

Hi @davidsneighbour, @martignoni .

Thank you very much for your feedback. I already tried those approaches, and are working like a charm.

Best

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.