Using the blog below from the docusaurus official site helped me. By default using i18n feature handles this problem:
The i18n system should work with any language, including Right-to-Left languages.
https://docusaurus.io/blog/2021/03/09/releasing-docusaurus-i18n