Skip to content

extend version switcher to include language switching #507

@drammock

Description

@drammock

After #436 is merged, it would be nice if the theme also supported switching languages. The JSON file used for versions could naturally be extended to encode the info, e.g., each version entry could gain a new key like

"languages": {
    "en": "English",
    "fr": "français",
    "zh": "中文" 
}

to list which language(s) are available for that version of the docs (i.e., languages nested within versions). Alternatively the JSON could be restructured so that versions are nested within languages. Either way, the switcher dropdown will need to be adjusted to accommodate the new JSON structure and to display the version choices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: discussionNeeds discussion before an implementation can be madetag: i18NItems related to internationalization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions