gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.5k stars 7.51k forks source link

I18n not possible, config files for translations not loaded correctly #12826

Closed wehrend closed 1 month ago

wehrend commented 1 month ago

when adding i18n functionality for my website, I immediately got these errors with my docker image frokm klakegg as well as the version locally installed

sven@kali:~/development/hugo$ hugo --verboseLog Error: add site dependencies: load resources: loading translations: "/home/sven/development/hugo/i18n/de.yaml:1:1": failed to load translations: unsupported file format Total in 2 ms sven@kali:~/development/hugo$ make up docker run -it -v "/home/sven/development/hugo":/src -p 1313:1313 "klakegg/hugo:0.111.3-ext-asciidoctor" server --disableFastRender --renderToDisk --verbose Error: add site dependencies: load resources: loading translations: "/src/i18n/de.yaml:1:1": failed to load translations: unsupported file format int make: *** [Makefile:11: up] Fehler 255 sven@kali:~/development/hugo$ hugo --debug Error: add site dependencies: load resources: loading translations: "/home/sven/development/hugo/i18n/de.yaml:1:1": failed to load translations: unsupported file format Total in 3 ms sven@kali:~/development/hugo$ hugo --verbose Error: add site dependencies: load resources: loading translations: "/home/sven/development/hugo/i18n/de.yaml:1:1": failed to load translations: unsupported file format int Total in 2 ms

What version of Hugo are you using (hugo version)?

$ hugo version
hugo version
hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1

### Does this issue reproduce with the latest release?
no tested yet 

And this is what the file looks like:

params:
baseURL: "http://wehrend.uber.space/"
languageCode: "en-us"
title: "Bits & pieces - Sven Wehrend"
theme: "hugo-book"

menu:
  before:
  - name: "Web-Blog"
    url: "/posts/web/"
    weight: 10

menu:
  before:
  - name: "Synth-Blog"
    url: "/tags/synth/"
    weight: 20            
jmooring commented 1 month ago

Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. When you create a topic on the forum, make sure you provide a link to your project repository.

wehrend commented 1 month ago

Dear Joe, does that mean it is fixed in the current version? I am limited to those docker releases from klagegg, and I think 0.111.3 was the last version there. Should I update it...?

Best, Sven Wehrend

On Wed, Sep 4, 2024, 16:25 Joe Mooring @.***> wrote:

Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. When you create a topic on the forum, make sure you provide a link to your project repository.

— Reply to this email directly, view it on GitHub https://github.com/gohugoio/hugo/issues/12826#issuecomment-2329215544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMEREGQTE2OFHSI2UHS3WDZU4J7FAVCNFSM6AAAAABNUMB4SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGIYTKNJUGQ . You are receiving this because you authored the thread.Message ID: @.***>

jmooring commented 1 month ago

does that mean

What it means is, please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting.