Skip to content

feat(website): add maintained multilingual editions - #1779

Merged
N0zoM1z0 merged 5 commits into
mainfrom
feat/website-multilingual
Oct 11, 2026
Merged

N0zoM1z0 merged 5 commits into
mainfrom
feat/website-multilingual

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Readers can now use the REA website in all 19 README languages. The homepage, onboarding, guides, showcases, blog and interactive examples share one English layout and build into static language editions, with a selector that opens the equivalent page.

Fixes #1022. This supersedes the overlapping infrastructure in #1737. Its CJK font choices, original copy-button label restoration, accessibility wording and portions of the Traditional Chinese onboarding draft are incorporated, with contributor credit.

Problem and expected behavior

The website previously required English, even when readers entered from a translated README. Maintaining separate translated HTML trees would multiply layout work and make stale instructions difficult to identify.

English keeps its existing URLs. Other editions use language prefixes such as /zh-CN/, /ja/ and /pt-BR/. Arabic and Persian have RTL layouts; code and numeric demonstrations retain their reading direction.

Change and scope

  • Standard gettext PO catalogs hold complete sentences, figure labels, runtime messages and search metadata. Extraction preserves unchanged translations and review notes; changed text becomes pending.
  • Missing or fuzzy messages produce a labeled, nonindexable English fallback for the affected page. Completing the catalog restores the translation, sitemap entry and reciprocal hreflang links.
  • Commands, source excerpts, target fixtures, recorded values and literal filenames remain protected. Assets and downloadable examples are shared.
  • The existing manual publisher sends the same generated website/_site/ artifact to Cloudflare and GitHub Pages. Generated language HTML stays ignored.
  • Documentation fact checks compare matching localized README destinations while rejecting changed pages, wrong locales, fragments and query parameters.
  • Translated README links open the matching website language. Contributor docs explain editing, review, previews and drift checks. Builds use Python and polib, without a translation API or frontend framework.

Contract and boundary impact

  • Semantic owner: website extraction and static rendering in scripts/website_i18n.py.
  • CLI/MCP, providers, Evidence and process contracts: unchanged.
  • Generated product metadata, package installation and releases: unchanged.
  • Website publication: generated artifact path changes; the sole publisher remains manually dispatched.

Evidence and regression coverage

Integration checks cover source drift, obsolete/fuzzy translations, fallback and restoration, runtime extraction, invalid placeholders and markup, safe build failure, all language routes, reciprocal metadata, protected evidence, prefix hosting and fixture downloads.

Initial catalogs include machine-assisted drafts and editorial corrections. Further language review is welcome through the documented PO workflow. Layout and interaction checks ran in Linux Chromium; Windows and macOS rendering have not been exercised locally.

Validation performed

  • python scripts/website.py check — 11 regression tests and website verification.
  • python scripts/website.py translations check --strict — all 18 translation catalogs complete, with 1,477 source messages.
  • GNU msgfmt --check-format — all catalogs pass.
  • Focused CI scope tests — 59 pass; product-catalog/documentation regression tests — 11 pass.
  • npm run docs:check — all six artifact and documentation checks pass.
  • npm run check:fast — typecheck and lint pass.
  • Chromium: 646 page visits at 375px and 1440px; 31 interaction groups across root and /rea/ hosting, including copying, calculator, dinosaur, Aegis, FAQ anchors and navigation without JavaScript.
  • Localized SVG labels, RTL diagrams and translated README destinations checked.

Compatibility, safety, and release

Existing English routes and target inputs are preserved. No runtime package release is needed. Catalogs and documentation are authored inputs; generated assets and temporary review tooling are excluded.

Review checklist

  • Concrete enhancement and linked issue.
  • Conventional title and one focused outcome.
  • Meaningful success and failure-path coverage.
  • Maintenance docs and generated-source ownership updated.
  • Final diff checked for private data, unrelated changes and unsupported claims.

N0zoM1z0 and others added 3 commits October 11, 2026 16:54
Adapt CJK font stacks, original copy-button label restoration, accessibility wording and Traditional Chinese onboarding improvements from PR #1737. Protect the complete APK filename and correct setup terminology.

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T09:17:47.780664Z a33db00 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Use the website language inventory when comparing README links. Accept the matching localized page while retaining checks for wrong locales, changed destinations, fragments and query parameters.
@morluto

morluto commented Oct 11, 2026

Copy link
Copy Markdown
Owner

nice!

@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

@codex review

The documentation CI failure is fixed: README website links are compared through the shared language inventory, preserving page, fragment and query checks. Regression coverage accepts matching localized links and rejects wrong locales or changed destinations. The documentation gate, 11 focused tests, typecheck and lint pass locally.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: a33db00080

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@N0zoM1z0
N0zoM1z0 merged commit 6e38529 into main Oct 11, 2026
31 checks passed
@N0zoM1z0
N0zoM1z0 deleted the feat/website-multilingual branch October 11, 2026 09:24
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added the enhancement New feature or request label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add and maintain multilingual website versions

2 participants