reactjs / reactjs/react.dev

[Suggestion]: How to use local language search on a translation website

Open
#6,667 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: documentation
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Summary

Support use local language search on a translation website

Page

https://zh-hans.react.dev/, https://ja.react.dev/ etc..

Details

such as search フック on japen:

image

search 状态 on Chinese:
image

and use english search...:
image

i saw the search use algolia, and translate site use the same algolia-api-key for request in source code.So this is the reason?

how can i do for it?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the translation-site search implementation and the Algolia request configuration referenced in the issue. Compare searches on the Chinese, Japanese, and English sites, including the queries shown in the screenshots. Done means local-language queries return relevant results on translated sites while English search continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, localization, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.