Skip to content

[translation] is a reserved key #1126

@hl-fsfe

Description

@hl-fsfe

Issue description

On HUGO 0.152.0 when building an existing website that has translations with the [translation] key, I get

Error: error building site: "/site/i18n/en.toml:1:1": failed to load translations: reserved keys [translation] mixed with unreserved keys [a b c]: see the lang.Translate documentation for a list of reserved keys

I wonder if I should sort my keys differently, or if this might be an issue with the theme.

I see that this key is used in the theme

site/themes/congo/layouts/_partials/translations.html
31:            {{ $translation := . }}
33:              {{ if eq $translation.Lang .Lang }}
38:                      href="{{ cond hugo.IsMultihost $translation.Permalink $translation.Permalink }}"
47:                      href="{{ cond hugo.IsMultihost $translation.Permalink $translation.Permalink }}"

Theme version

2.12.2

Hugo version

0.152.0 extended linux musl

Which browser rendering engines are you seeing the problem on?

Firefox (Mozilla Firefox)

URL to sample repository or website

https://git.fsfe.org/DeviceNeutrality/website/src/branch/hugo-upgrade

Hugo output or build error messages

see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions