How to tell translated content which layout to use

Greetings!

I have a Hugo website with 2 languages, English and Slovenian. There are a few lists, each of whom has it’s own template for list and single page. The English content knows which layout to use because it has the same name, but Slovenian doesn’t. How do I set that? Content is connected with translationKey, I was hoping that would solve it, but it doesn’t.

This is a simplified structure:
content
- en
- - about-us
- - - _index.md
- - work
- - - _index.md
- - - some-project
- - - - _index.md
- sl
- - o-nas
- - - index.md
- - projekti
- - - index.md
- - - primer-projekta
- - - - _index.md
layouts
- about-us
- - list
- projects
- - list
- - single

thanks for your help!

Hi there,

You can have language-specific layouts: https://gohugo.io/templates/lookup-order/

Thanks for your answer. I’m not looking for language specific layouts, but for a way to tell Slovenian content pages that they should use layouts with English names.

I usually try and make my root directories’ names consistent across languages as those have a strong influence on my coding (types, layouts etc…).

Then I use Hugo’s various permalink mapping options to make my directory structure distinct from my permalink structure.