docusaurus-theme-search-typesense icon indicating copy to clipboard operation
docusaurus-theme-search-typesense copied to clipboard

i18n not working correctly

Open algotao opened this issue 1 year ago • 1 comments

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

algotao avatar Feb 17 '24 04:02 algotao

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

jandotde avatar Aug 27 '24 11:08 jandotde