-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multihost: Console displays wrong language key when running hugo server #12564
Comments
I think this mostly comes from a time where we needed the value of But the above slice also defines the default sort order of languages (as seen in |
This isn't anything recent... the problem has been present since v0.119.0.
Background
In a multihost configuration, when you run
hugo server
, the console displays something like:We added the language key to the end of each line in v0.119.0 via #11442.
Problem
If the default content language does not correspond to the first site by weight (or language key fallback), the wrong language key is displayed at the end of each line.
Example
When I run
hugo server
I see this in the console:But
http:https://localhost:1314/
is serving the DE site, whilehttp:https://localhost:1313/
is serving the EN site.Commentary
It seems like this, and similar areas of the code base, would be a lot simpler if the default content language were hardcoded to the the lightest weighted/sorted language. I guess I've never understood the use case for the configuration above.
The text was updated successfully, but these errors were encountered: