Can language switching be supported?
Can language switching be supported?
Sorry, could you please provide a bit more detail? What do you mean by “language switching”?
Sorry, could you please provide a bit more detail? What do you mean by “language switching”?
I mean choosing the language of the generated documentation, such as Japanese. Using --instructions still leaves some content in English, and requesting translated filenames also causes “Module docs not found” warnings. Is there a recommended way to set the output language consistently?
Thanks for the details. I've added a dedicated option for this in #124:
codewiki generate --language ja or: Japanese, vi, zh, ko, fr, ...
codewiki config agent --language ja make it your default
What it does:
- All page text, headings, tables and Mermaid diagram labels are written in the chosen language. Code, identifiers and file paths stay as they are.
- Filenames and module names are intentionally not translated. They link the pages, the module tree, the HTML viewer and --update together. Translating them is what caused the "Module docs not found" warnings you saw. The GitHub Pages viewer shows each page's translated title in the navigation instead, so the sidebar still reads in Japanese.
- The language is saved in metadata.json. codewiki generate --update keeps using it automatically, so updated pages stay in Japanese. To switch language, regenerate without --update.