From b715e840734f3594fca74ac4f77c2e01512ac4ff Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 22 Nov 2022 13:28:42 -0800 Subject: [PATCH] Explain how to create multilingual content (#1912) Closes #1910 --- content/en/content-management/multilingual.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/content/en/content-management/multilingual.md b/content/en/content-management/multilingual.md index e2714c691..4e4eba46e 100644 --- a/content/en/content-management/multilingual.md +++ b/content/en/content-management/multilingual.md @@ -568,7 +568,19 @@ If there is more than one language defined, the `LanguagePrefix` variable will e ## Generate multilingual content with `hugo new` -Currently, `hugo new` is not ready to support generating multilingual content. But there is a [proposal topic](https://github.com/gohugoio/hugo/issues/7732) about this in GitHub issue to discuss how it should work. +If you organize content with translations in the same directory: + +```text +hugo new post/test.en.md +hugo new post/test.de.md +``` + +If you organize content with translations in different directories: + +```text +hugo new content/en/post/test.md +hugo new content/de/post/test.md +``` [abslangurl]: /functions/abslangurl [config]: /getting-started/configuration/