Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n not working correctly #41

Open
algotao opened this issue Feb 17, 2024 · 0 comments
Open

i18n not working correctly #41

algotao opened this issue Feb 17, 2024 · 0 comments

Comments

@algotao
Copy link

algotao commented Feb 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant