docs(hi): translate the Features pages

Merged
SA
5d ago
+1474-1

What and why

  • Hindi translations of the 6 Features pages, the next group after the minimum set in #1890: cache, explore, visual-testing, authentication, bug-bash, and agents.

  • 12 new rows in the docs/hi/README.md glossary for terms these pages introduce: cache miss, stale, recording and cache entry (one row), test id, finding, exploration, defect, secret fill, redaction, value, character, and checkout.

    • "Stale" is पुरानी पड़ चुकी, not पुरानी, which means only "older". cache.mdx uses both meanings.
  • The Security card at the end of visual-testing.mdx translates the reworded English card from #1988, not the card on main. The main card promises that secrets stay out of screenshots, but screenshots mask only secure fields.

  • cache.mdx links Next.js the way the English page has since #1952, which landed after this branch was cut. I merged main into the branch for it.

Merge order

Merge #1988 first. Until #1988 lands, the Hindi Security card says what the English card will say, not what it says on main.

Issue

Part of #1890.

Verified

Ran it locally: yes

  • pnpm docs:check on the head, merged with main: 202 of 206 translated pages match their English outline and code, 290 pages compile, and 4194 anchor links resolve. The 12 warnings are on pages this PR does not touch (web.mdx and navigation.json in hi, cs, es, and pt) and come from #1952 on main.
  • pnpm --filter e2e exec vitest run tests/unit/skill.test.ts: 9 of 9 pass.
  • A second model (GPT-6.2 Sol) translated each Hindi page back to English without seeing the English page, then compared the two. I applied 46 of its 52 findings. I left out the other 6:
    • 1 was already handled: agents.mdx:181 already names models.
    • 1 would have changed the meaning: the Hindi on cache.mdx:189 already says what the English says about app.identity.
    • 3 only marked plurals that Hindi leaves implicit, and made the sentences heavier.
    • 1 replaced अक्षर (character) with कैरेक्टर on one page only. The native-speaker review below chose कैरेक्टर for every page.
  • samanyudas, the hi assignee and a native speaker, reviewed 7 word choices. Changed after that review: रेडैक्शन for the noun "redaction", कैरेक्टर for "character", and दोष for "defect". Kept: पुरानी पड़ चुकी for "stale" and फ़ाइंडिंग for "finding". A later review chose चेकआउट for a git checkout, the word explore.mdx and the merged ci.mdx already use, so cache.mdx and the merged web.mdx:77 move from वर्किंग कॉपी to चेकआउट here. The 4 uses of मान for "value" on the merged web and ci pages move to वैल्यू in a separate PR.
  • I checked the security statements on authentication.mdx and cache.mdx against the English sentence by sentence. Examples: redaction starts at the first fill, plain inputs are not masked, and entries never hold secret values.
  • The rendered pages are not checked: the site is private, so a maintainer needs to preview them.

For maintainers

  • pnpm docs:check misses several kinds of mistakes in a translation. All of these pass it:

    • a snippet import at the wrong depth (./snippets/video.jsx)
    • a changed inline code span or number
    • a deleted negation
    • an em dash
    • a link changed to another anchor that exists

    I checked these pages for each of them by hand and with scripts.

  • docs/explore.mdx:137-138 in English breaks the inline code span Explore what this change affects and find bugs in it across two lines. The Hindi page keeps it on one line.

🤖 Generated with Claude Code