-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Description
What is your Hugo Extended Version
hugo v0.147.9+extended+withdeploy linux/amd64 BuildDate=unknown
What is your Go Version
go version go1.24.4 linux/amd64
What is your Node.js Version
v22.11.0
What is your Operating System
Arch Linux
Check for Existing Issues
- I have searched and found no relevant issues.
Expected Behavior
In config/_default/languages.toml I added a new language, removed the the contentDir parameter and changed the content to match the Hugo "Multilingual mode" "Translation by file name" as described in the Hugo documentation .
The generated pages should match the structure of the content.
Steps to Reproduce
1, Install hugoplate as described in the README,md
2. Change config/_default/languages.toml like:
[en]
languageName = "En"
languageCode = "en-us"
weight = 1
[fr]
languageName = "Fr"
languageCode = "fr-fr"
weight = 2- Optionally create the file
i18n/fr.yaml - Rename
content/_index.mdtocontent/_index.en.md - Create the file
content/_index.fr.md - Reproduce steps 4 and 5 for the rest of the content
- Execute
pnpm dev
Code Reproduction URL
No response
Additional Information
These are the untouched language related setting in hugo.toml:
# disable language
disableLanguages = [
] # example: ["fr"] for disable french language. see https://gohugo.io/content-management/multilingual/
hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage
# default language
defaultContentLanguage = 'en'
# defaultContentLanguageInSubdir need to be true if you want to use the language code as a subdirectory and language specific 404 page
defaultContentLanguageInSubdir = falseMetadata
Metadata
Assignees
Labels
No labels