rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.47k stars 785 forks source link

Error: Error building site: Failed to load translations in file "de.toml": unable to parse translation #1 because invalid plural category newerPosts #462

Open FoxMaccloud opened 10 months ago

FoxMaccloud commented 10 months ago

I'm getting an error when I try to start a server like so;

$ hugo server
Total in 803 ms
Error: Error building site: Failed to load translations in file "de.toml": unable to parse translation #1 because invalid plural category newerPosts
map[id:pagination translation:map[newerPosts:Neuere Beiträge olderPosts:Ältere Beiträge]]

The steps I did to reproduce this was to add the theme as a submodule in the themes folder and edit the config.toml in the root path. I'm attempting to start the server using WSL on windows10 and I have installed hugo via apt.

Pyr3z commented 9 months ago

I have the same exact problem, slightly different setup.

apt installed this Hugo version (today, default canonical repos):

Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: 2020-03-25T06:15:45Z

Which I suppose is pretty far behind upstream (v0.122.0)...

Seeing as I've already tried all the obvious bandaids like disabling all languages except english to no avail, suppose I'll try upgrading my Hugo version manually next.

Pyr3z commented 9 months ago

Confirmed: Upgrading to the latest version of Hugo (v0.122.0/extended linux/amd64) resolved the issue for me.

I would love to submit a PR that either fixes the issue or minimally updates the min_version property in theme.toml, but I also just learned this repo was archived last June 😞

P.S. alternative to manual installation, it seems you can get the latest version of hugo from the snap default repos. If you prefer to stick to package managers as much as possible.