Skip to content

Specific title and keywords for non-english versions of a docusaurus website #9558

Closed Answered by slorber
chengtie asked this question in Q&A
Discussion options

You must be logged in to vote

A workaround is proposed here:

#4542 (comment)

function getSiteTitle() {
  switch(process.env.DOCUSAURUS_CURRENT_LOCALE) {
    case "fr": return "Mon site en Français";
    default: return "My English website";
  }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chengtie
Comment options

@slorber
Comment options

Answer selected by chengtie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants