I’m thinking of using Hugo Generator to create offline documents.
I learned that Hugo supports multiple languages by adding an language code to files.
first-page.md
first-page.ja.md
In this case, it is troublesome because the layout must be written for each page.
My ideal is to put language data together in a json file and refer to it in the same .md file like this.
first-page.md
first-page.json
first-page.ja.json
[first-page.md]
—
title: “First Page”
—
# {{hello}}
[first-page.json]
{
“hello”: “Hello”
}
[first-page.ja.json]
{
“hello”: “こんにちは”
}
Of course, this is “ideal” and will not actually work. Is there a similar way to describe this in Hugo?