Hi there,
I am building a website with Hugo with the use of .hmtl files instead of .md for content nodes. That’s because the site itself is not a blog, or other standard types of website, but rather a SAAS type web application. So far it works great for that purpose, I put my master templates and partial views in the /layouts folder, and page-specific HTML code in the /content folder.
An example of my content structure would look like this:
content/
├── section1/
│ └── _index.html
├── section2/
│ └──_index.html
└── _index.html
Now I would like to make this web app internationalized, but I don’t want to create a separate .md/.html file for each language, as it would result in my HTML code’s duplication.
My question is - is there a way of having the content as I had before (single language like), but inside of the content page detect the current language and pull the translated strings into my HTML from i18n? How would I handle the routing then?
Or should I move all HTML out of the /content to /layouts (as a sort of an extra layer of the master template), and create empty .md/.html files with just the front matter parameters for each language as described in the documentation?