Skip to content

Translate "Sharing State Between Components" to Arabic - #693

Open
moamen-ui wants to merge 1 commit into
reactjs:mainfrom
moamen-ui:translate-sharing-state-between-components
Open

moamen-ui wants to merge 1 commit into
reactjs:mainfrom
moamen-ui:translate-sharing-state-between-components

Conversation

@moamen-ui

Copy link
Copy Markdown

Translates learn/sharing-state-between-components.md into Arabic (Modern Standard Arabic). Refs #464 (claimed in the tracker comment on 2026-12-04).

What changed (one file only):

  • Prose, headings, the <Intro>, <YouWillLearn>, Diagram alt texts and captions, Recap and Challenges are translated.
  • Heading anchor ids, links, Diagram names, JSX structure, identifiers and lang attributes are unchanged.
  • Sandpack UI strings (button labels, panel titles, input labels) are translated. Data in src/data.js stays in English so the filter challenge still works as written.
  • Sandpack CSS blocks add body { direction: rtl; }, following the existing Arabic managing-state.md section.
  • Terms follow the existing Arabic React pages (المكوّن الأب, الخصائص (props), رفع الحالة لمستوى أعلى, تصيير). Diagram images still show English labels; they are image assets and were not changed.

AI disclosure: an AI tool drafted this translation. I am an Arabic speaker and reviewed the wording myself, but a native review is welcome, especially for terms. A second-model review with codex was not available (usage limit), so a fresh AI reviewer in a separate session checked the Arabic text against the English source and the screenshots. Its findings were applied (button label, term alignment, a boolean wording fix).

Checks that passed locally:

  • next dev on the fork branch: the page renders at /learn/sharing-state-between-components with <html lang="ar" dir="rtl">. Code blocks compute as direction: ltr.
  • node scripts/headingIdLinter.js and npx eslint on the file: both exit 0.
  • Structure comparison against the English file: same tags, heading count, anchor ids, link targets and Diagram names. The only code-block differences are the added body { direction: rtl; } lines.
  • Screenshots at 1280px and 390px (RTL), plus the English page for reference: https://github.com/moamen-ui/taareeb/tree/main/evidence/ar-react-dev-sharing-state

Not verified (not run):

  • A native-speaker review of the wording.
  • yarn build (full static build), yarn ci-check (tsc and deadlink checker) and the RSS script.
  • Clicking through the Sandpack examples in the browser. I checked that they render; I did not test their interaction.
  • Diagram images, which still show English labels.
  • Whether the <YouWillLearn> label is localized by the site. That is a component label outside this file.

This PR is part of Taareeb, an open project for Arabic localization of open source software: https://github.com/moamen-ui/taareeb

Translates learn/sharing-state-between-components.md into Arabic (MSA).
Headings, anchor ids, links, Diagram names, JSX structure and code
identifiers are unchanged. Sandpack UI strings are translated, and
Sandpack CSS sets body direction to rtl.
@vercel

vercel Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
legacy-ar-reactjs-org Ignored Ignored Preview Dec 6, 2026 7:35am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview – ar-react-dev — 3c7c9bf4 Deployed Dec 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant