Skip to content

Support for Multilingual Documentation in dartdoc #3997

Open
@naghinezhad

Description

@naghinezhad

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:

  1. Adding support for localization files (such as .arb, .json, or other formats) to store translated strings.
  2. Providing an option in dartdoc_options.yaml to specify available languages.
  3. Generating language-specific documentation in separate folders (e.g., docs/en/, docs/fa/).
  4. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requesttype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions