Open
Description
Feature Request: Multilingual Documentation Support
I would like to request a feature that enables multilingual support for documentation generated by dartdoc. Currently, dartdoc generates documentation in a single language, but many developers work on projects that require support for multiple languages.
Use Case:
For example, I have a Dart project where the primary documentation is in English, but I want to provide translations in Persian (Farsi) and other languages for a broader audience.
Suggested Implementation:
- Adding support for localization files (such as
.arb
,.json
, or other formats) to store translated strings. - Providing an option in
dartdoc_options.yaml
to specify available languages. - Generating language-specific documentation in separate folders (e.g.,
docs/en/
,docs/fa/
). - Including a language switcher in the generated HTML output.
This feature would greatly enhance the usability of dartdoc for international projects.
Would this be possible to implement? I appreciate any feedback on this idea!