I am refactoring a theme to be multilingual with 2 languages.
Currently, on the homepage it reads out from a json file:
{{if .Site.Data.features}}
{{ range .Site.Data.features }}
<div>
<h2>{{ .title }}</h2>
<p>{{ .description }}</p>
</div>
{{end}}
{{end}}
the /data/features.json looks like this:
[
{
"title": "Example-Title 1",
"description": "topic1, topic2, topic3",
},
{
"title": "Example-Title 2",
"description": "topic1, topic2, topic3",
},
{
"title": "Example-Title 3",
"description": "topic1, topic2, topic3",
}
]
How can I refactor this to add content for the second language?