Skip to content

[v2] Translations approach #2651

@yangshun

Description

@yangshun

💥 Proposal

An umbrella issue to track the translations work for v2 and guide the design and implementation on the feature in v2. Give suggestions and feedback on this issue.

Some initial thoughts:

  • Translations should be a core feature built into Docusaurus core, not implemented specifically by any plugins
  • We expose a current locale value in the context. Elements which need it can read from it
  • For performance reasons, each translated website should be its own website (can be done via adding a /<locale>/ to the baseUrl). This is basically sharding the website bundle so that the main bundle doesn't contain routes for each locale. If performance isn't a concern, then probably there's no need to do this

Follow this issue for updates.

Some tools to consider using:

Issues with v1 translations

Have you read the Contributing Guidelines on issues?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue is a proposal, usually non-trivial change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions