Skip to content

docs(i18n): add Devanagari CSS, Hindi README base, and initial website translations - #3547

Closed
uyg7x wants to merge 1 commit into
morluto:mainfrom
uyg7x:hindi-website-clean
Closed

uyg7x wants to merge 1 commit into
morluto:mainfrom
uyg7x:hindi-website-clean

Conversation

@uyg7x

@uyg7x uyg7x commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Completes the remaining work for Hindi (हिन्दी) localization discussed in #2937, building on top of #2862.

Changes

  • website/public/assets/styles.css: Added a Devanagari font stack and letter-spacing: normal for :lang(hi), matching the existing rules for CJK, Thai, and RTL scripts.
  • docs/readme/README_hi.md: Added the base Hindi README file.
  • website/locales/languages.json: Registered the hi locale.
  • website/locales/hi/messages.po: Generated the Hindi catalog (1,594 source messages) and translated 19 core UI strings shared across all pages:
    • Navigation: REA home, Main navigation, Showcases, Blog, Get started, Guides
    • Actions: Copy, Copied, Selected, Code copied to clipboard
    • Accessibility: Skip to content, Back to top
    • Theme: Switch to light mode, Switch to dark mode
    • Footer: MIT license, Join the community, Follow us on X
    • Notice: Translation is being updated message
    • Content: Source

Validation

  • python scripts/website.py sync → 0 pages changed ✅
  • python scripts/website.py translations extract → 1594 messages, 19 catalogs ✅
  • python scripts/website.py check → pass ✅
    • hi: 18 English fallback pages, marked noindex (expected for partial catalog)

Notes

  • The remaining ~1,575 strings fall back to English and are marked noindex, so nothing breaks in production.
  • I plan to continue translating more strings in follow-up PRs.

Related: #2937, #2862

Author readiness

Human owner: @uyg7x

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5 Tier: plus

[Low impact] Adds Hindi translations and documentation.

Update the saved shared HTML before merging; otherwise the website check rejects the new Hindi registration.

Findings

  1. P1 Website check rejects stale headers ▶
  2. P2 README links point nowhere ▶
  3. P2 Local build outputs are committed ▶
Fix with agent prompt
### Issue 1
website/locales/languages.json:118-121
Adding `hi` changes the picker returned by `language_markup()`, but none of the checked-in English pages include it. `website.py check` calls `sync_pages(check=True)` before building and rejects these stale headers, so the website check will fail. Run `python3 scripts/website.py sync` and commit the updated pages with this registration.

### Issue 2
docs/readme/README_hi.md:89-90
The new nested README keeps paths copied from the root README. On GitHub, `docs/installation.md` resolves to `docs/readme/docs/installation.md`, so the setup links are broken. Images, language links and root-file links have the same problem. Adjust all relative paths for `docs/readme/`, following the sibling READMEs: use `../installation.md`, `../assets/...`, sibling README filenames and `../../LICENSE`.

### Issue 3
tests/fixtures/nativeaot/obj/NativeAotFixture.csproj.nuget.g.props:6-8
The ten new files under `tests/fixtures/nativeaot/obj/` are local build outputs, not fixture inputs. They include absolute Windows paths, NuGet caches and generated assembly data. The fixture build writes its own intermediate files elsewhere, so these snapshots only add stale state and future generated-file churn. Remove the whole directory from this PR and ignore the fixture's local `obj/` directory so another build cannot add it again.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Registers Hindi, adds an English README base and starts a Hindi website catalog.

  • Website visitors can now choose Hindi for shared interface text.
  • The repository now has a README file named for Hindi.
  • Generated NativeAOT build and restore files are now present.

Intentional scope acknowledged by uyg7x: the README is a base, roughly 1,575 messages remain untranslated, and 18 English fallback pages marked noindex are expected. Further translations are deferred to follow-up PRs.

Validation: source paths and checks were traced. A local sync check stopped at an unchanged Python-version incompatibility, so no website build or visual capture completed. The supersession check could not read GitHub PRs because GitHub authentication was unavailable. No superseding PR was established.

Reviews (1) · Last reviewed commit: "docs(i18n): add Devanagari CSS, Hindi RE..." · Reviewed by Greptile

Comment thread website/locales/languages.json Resolved
Comment thread docs/readme/README_hi.md Resolved
@IvenKooLab

Copy link
Copy Markdown
Contributor

This branch has a small merge conflict against main that is easy to resolve, plus one hygiene note.

Conflict — website/locales/languages.json: main added a Malayalam (ml) entry at the same array position where this PR adds Hindi (hi). Keep both: take main's ml entry and append the hi entry after it (watch the comma between the two objects; the PR side also carries trailing spaces that oxfmt removes). After the union the registry holds 22 locales and the file parses.

Hygiene — the branch also commits tests/fixtures/nativeaot/obj/* build artifacts (project.nuget.cache, AssemblyInfo.cs, .assets.cache, the nuget.g.props/nuget.dgspec.json files). Those are generated outputs and will fight the fixture regeneration checks; dropping them (git rm -r --cached tests/fixtures/nativeaot/obj) keeps the diff to the actual Hindi content.

Verification of the resolved merge: tests/conformance/readmeConsistency.test.ts 9/9 passed (the languages registry and the new README_hi.md stay consistent), tsc --noEmit clean, oxfmt clean on the registry file.

@morluto

morluto commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Thanks for extending the Hindi translation. #2862 is also open for the Hindi README, and this branch adds a partial website catalog. Please coordinate on the shared README and locale ownership, and remove the generated NativeAOT obj files identified in the earlier review before requesting integration. Both proposals remain open.

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thanks. This re-adds the Hindi README and hi locale that #2862 already carries (the description says it builds on #2862), and it also commits build output under tests/fixtures/nativeaot/obj/. Closing in favour of #2862. The Devanagari :lang(hi) CSS would be welcome as a small follow-up once that lands.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added documentation Improvements or additions to documentation area: bridge Hopper bridge (Python) related changes labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: bridge Hopper bridge (Python) related changes documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants