Multi-lingual site with German as default lang, English as secondary one. A taxonomy
destination with four terms (“Afrika”, “Amerika”, “Asien”, “Europa”). In my hugo.toml, I set up translations for the taxonomy like so:
…
[languages.de.permalinks.taxonomy]
destination = '/region/'
[languages.de.permalinks.term]
destination = '/region/:slug/'
…
[languages.en.permalinks.taxonomy]
destination = '/destination/'
[languages.en.permalinks.term]
destination = '/destination/:slug/'
and in my content directory, I have destination like so
content/destination
├── _index.en.md
├── _index.md
├── Afrika
│ ├── _index.en.md
│ └── _index.md
├── Amerika
│ ├── _index.en.md
│ └── _index.md
├── Asien
│ ├── _index.en.md
│ └── _index.md
├── Europa
│ ├── _index.en.md
| └── _index.md
Afrika/_index.md contains
---
Title: Afrika
---
and Afrika/_index.en.md
---
Title: Africa
---
Similarly Asien/_index.md and Asien/_index.en.md contain the Title “Asien/Asia”, and so on for the other files. However, Hugo finds that en/destination/africa has no translation, whereas .IsTranslated is true for en/destination/asia (this is in fact the only English term for which it finds a translation). All German terms are found to be translated.
I’m probably overlooking something trivial and stupid here, but I have no idea, what that could be – to my eyes, there’s no obvious difference in the data for Asia and the other continents…
The _index.md and _index.en.md in destination set slug to “region” for the default language and to destination for English. I have no idea if that is needed or overkill or a problem, given the language-dependent permalinks settings in hugo.toml.
With all that: Would I always use the German term in the front matter of my content, i.e. destination: Europa for all posts, or only for the German ones and destination: Europe for the English ones?