Support for automated translation of posts for multilingual sites #1218
-
|
Hello, I want to use Hugo Stack for a multilingual blog. However, every time I publish a post, translating it into another language (especially when updating previously published posts) is quite cumbersome. Is there any existing tool, script, or workflow that can automate the translation of posts while preserving the Front Matter structure? Ideally, it would:
Any guidance or recommendations would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Unfortunately, I'm not aware of any existing tools that can do that. Perhaps you could try using an AI tool to generate a script for it. |
Beta Was this translation helpful? Give feedback.
Sorry for the late reply due to some reasons. I tried this way by using cursor and created a useful script (for my blog site) to autonomically translate index.md into index.[language].md under the content directory. This might be of reference value for others who has same need as mine.
https://github.com/KaigeZheng/KaigeZheng.github.io/blob/main/scripts/autotrans.py