Hi, I’m trying to add a multilingual functionality to my website for French and Spanish (on top of English). However, I have 2 issues/questions:
How can I have the data folder to behave the same way as content by filename. I would like to have team.en.yml, team.fr.yml and team.es.yml but in the documentation, it only mentions the content folder.
In the content folder, I would like to show all blog posts irrelevant of the languages (at least for now, since I don’t have enough content for fr and es).
I’m basically only interested in translating the information part of the website (about us, services, team…) but not the blog part.
Thanks a lot for your help.
Thanks a lot, that was really helpful. I thought I made an error in the config files while I actually made a stupid error in the layout, I was putting {{ $mydata := (index .Site.Data .Site.Language.Lang) }} above and not below the safeHTML.
problem is fixed - i made a mistake in defining the variable…
Hi there
I have a similar problem, do not understand how I can apply the above solution to my project.
All page contents except the title are in /data/ - the creator of my template left the _index.md in Content quite empty.
i don’t really understand what exactly i have to enter, because unlike in the example, not only a block is fetched but part of the path has to be changed; data.en.homepage.banner for example - how can i fill only the en in it with the current language selection?