In my case, my site has two languages, en and fr — the default language is en.
If I create an image file at the path content/image.fr.jpg, I would expect Hugo to copy it to public/fr/image.jpg, but instead is gets copied to public/fr/image.fr.jpg. Hugo correctly places it in the fr language directory, but doesn’t remove the language suffix from the file name.
Notice that the HTML files in public/fr/ have the .fr language suffix removed from the file name. This is not the case for images — for example, the image in public/fr/test/ is still named image.fr.jpg.
I’d like Hugo to output the image to public/fr/test/image.jpg.