I am using Docusaurus to build a site with two language - en
and zh
.
What I want is a dynamic if-else
in JS:
if current_language is en:
title = "en title"
else:
title = "zh title"
How can I achieve this in Docusaurus pages? The default i18n is not handy to translate long HTML...