I'm doing some major spring cleaning by re-designing/implementing all template handling in Hugo (with goals of making it more powerful but also much easier to understand). We have lots of integration tests, which in this case is both a curse and a blessing.
One of my now failing tests is basically this, in a site with 1 language (en):
content/doc1.en.md
content/doc1.fr.md
content/doc1.sv.md
By just looking at the above, it is obvious that these 3 are translations of the same document, but since we only have English defined, we get 3 pages (all with language set to en) with the following paths:
Which is obviously wrong. In my new setup, the last two will be thrown out as duplicates.
Note that there may be some examples in the wild somehow broken by this (e.g. /dot.net.md vs /dot.foo.md), but I'm not sure I'm prepared to go the extra mile to complicate this further. Those who think this is a considerable problem needs to raise an convincing argument in this issue..