-
(* StackOverflow: https://stackoverflow.com/questions/77492814 *) I have a website made by docusaurus I'm improving SEO of the website. I learned that we can better write However, when I open the chinese version of the website, I see that these metadata also appear in the HTML. So my question is whether it's possible to set specific/different title and keywords for the Chinese version. Does anyone know? PS: (part of) docusaurus.config.js:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A workaround is proposed here: function getSiteTitle() {
switch(process.env.DOCUSAURUS_CURRENT_LOCALE) {
case "fr": return "Mon site en Français";
default: return "My English website";
}
} |
Beta Was this translation helpful? Give feedback.
A workaround is proposed here:
#4542 (comment)