typesense / docusaurus-theme-search-typesense

A fork of the awesome @docusaurus/theme-search-algolia library customized to work with Typesense
https://typesense.org/docs/guide/docsearch.html
MIT License
67 stars 15 forks source link

i18n not working correctly #41

Open algotao opened 9 months ago

algotao commented 9 months ago

Description

After installing docusaurus-theme-search-typesense 0.15.0-0 in docusaurus and setting i18n in docusaurus.config.js to "defaultLocale: 'zh-Hans', locales: ['zh-Hans ']" in docusaurus.config.js, the search box functions normally after publishing, but the search box UI still shows English.

If you add algolia node to the themeConfig (keep the typesense node), the search box UI can display the localized language normally, and the search is also using the typesense.

Expected Behavior

Following the locale configuration, the search box UI shows the corresponding language For example, "Search docs" is displayed as "Search" in Chinese.

image

Actual Behavior

image

Metadata

Typesense Version:0.25.2 docusaurus-theme-search-typesense: 0.15.0-0 OS:Ubuntu 22

jandotde commented 3 months ago

The Problem still persists for me with Docusaurus 3.4.0 and Theme Version 0.20.0