create-t3-app
create-t3-app copied to clipboard
bug: docs - algolia searches english site in all languages
Provide environment information
.
Describe the bug
The search widget currently searches the English site, no matter which language is set.

To reproduce
- go to https://create.t3.gg/pt/introduction (or any other non english docs page)
- use the search
Additional information
No response
Do you know how to set this up in Algolia for it to index properly?
Astro docs have it so we could take a look at what they're doing. I'm still traveling rn but if this is still open a week or two from now I'll take it on :)
Was trying to tackle this issue, from what I could gather, though the astro docs have a nice abstraction over the translations for the modal itself, the magic happens here in this DocSearch.tsx file
Particularly this line here
searchParameters={{ facetFilters: [[`lang:${lang}`]] }}
Running it locally however only works if passing the en, thus was wondering, are the docs only being indexed in english?