pingcap / website-docs

The next generation of PingCAP Docs. Powered by Gatsby ⚛️.
https://docs.pingcap.com/
MIT License
22 stars 34 forks source link

Change the language button #127

Closed CharLotteiu closed 3 years ago

CharLotteiu commented 3 years ago

Currently, the language button at the foot of our documentation website only supports to jump to the home page of the other language. We hope that by clicking this button, user can jump to the other language version of the current page . If the current page doesn't have a corresponding page in another language, we can prompt certain messages and then direct users to the home page. image

CharLotteiu commented 3 years ago

/cc @YiniXu9506, @lilin90

lilin90 commented 3 years ago

@CharLotteiu Thanks for following up!

YiniXu9506 commented 3 years ago

@lilin90 @CharLotteiu The feature almost done, please determine the tips to let user understand whether the doc exists on different languages or not.

YiniXu9506 commented 3 years ago

From @CharLotteiu

中文文案:暂未提供本页面对应的中文页面 英文文案:The English version of this page is temporarily not available.

TiDB Cloud 文档特殊的中文文案:暂不提供 TiDB Cloud 中文文档