-
Notifications
You must be signed in to change notification settings - Fork 712
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
Generate multilingual documents #2332
Comments
Currently, no, TypeDoc doesn't do this. There is typedoc-plugin-localization which does something somewhat similar. I suspect a more sustainable solution for this would be using tags suffixed with the language identifier (e.g. |
I maintain multiple versions of the d.ts file to get multiple versions of the d.ts output, and make it possible for users of different languages to get different language editor hints in exports (even though a new version of the npm package isn't currently available) With multiple versions of the d.ts file I can make multiple versions of the typedoc website The others seem to be working well so far |
I'm not sure a better solution than generating multiple versions of the docs is ever going to exist -- it's really hard to beat it without sacrificing other functionality... I think my recommendation here is going to be using a hook that injects a dropdown on either I put together an example of one way this could be done for the site you linked above, a plugin that uses the htmlLang option to determine what the current language is, and has a hardcoded set of other languages:
|
Search Terms
muti lang i18n multilingual
Problem
I have a project where the code comments are all in Chinese, but it has Japanese and English users.
So I was wondering if there was any way to generate pages with a language selection function like the documentation from the big companies, and then get a language cross-reference by maintaining multiple versions of the
d.ts
file or something, so we can have documentation in different languages?Suggested Solution
idk.
The text was updated successfully, but these errors were encountered: