Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate reference react index page #477

Merged
merged 4 commits into from May 31, 2023

Conversation

aalhommada
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented May 31, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

## State Hooks {/*state-hooks*/}
## خطافات الحالة {/*state-hooks*/}

تسمح *الحالة* للمكون ["بتذكر" معلومات مثل مدخلات المستخدم](/learn/state-a-components-memory). على سبيل المثال ، يمكن لمكون النموذج Form استخدام الحالة لتخزين قيمة الإدخال ، بينما يمكن لمكون معرض الصور استخدام الحالة لتخزين فهرس الصور المحدد.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

من الأخطاء المتكررة: وضع مسافة قبل الفاصلة ووضع أكثر من مسافة بين الكلمتين.


* [`useState`](/reference/react/useState) declares a state variable that you can update directly.
* [`useReducer`](/reference/react/useReducer) declares a state variable with the update logic inside a [reducer function.](/learn/extracting-state-logic-into-a-reducer)
* [`useReducer`](/reference/react/useReducer) يعيّن عن متغير حالة مع منطق التحديث داخل [reducer function.](/learn/extracting-state-logic-into-a-reducer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

إن استخدمت الفعل "يعين" فلا حاجة لحرف الجر "عن"

@@ -41,12 +44,14 @@ function Button() {

---

## Ref Hooks {/*ref-hooks*/}
## الخطافات المرجع {/*ref-hooks*/}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

يفضل استخدام نفس المصطلح عند تكراره.
فمثلا أنت استخدمت:

  • خطافات الحالة.
  • خطاطيف السياق.
  • الخطافات المرجع.
    استخدم في الجميع لفظا واحدا

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

بعض الكلمات تُرجمت ترجمة حرفية
مثل node ترجمت على أنها عقدة والسياق يقتضي كونها عنصر.
وكذلك paradigm

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

يُفضل وضع النص الإنجليزي للمصطلحات التي تستخدم لأول مرة. مثلا:

 State Hooks

إلى

خطافات الحالة (State)

@@ -97,25 +105,25 @@ function TodoList({ todos, tab, theme }) {
}
```

Sometimes, you can't skip re-rendering because the screen actually needs to update. In that case, you can improve performance by separating blocking updates that must be synchronous (like typing into an input) from non-blocking updates which don't need to block the user interface (like updating a chart).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocking
اسم فاعل وليس اسم مفعول فهي هنا حاظرة وليست محظورة


You can also [define your own custom Hooks](/learn/reusing-logic-with-custom-hooks#extracting-your-own-custom-hook-from-a-component) as JavaScript functions.
يمكنك أيضًا [تحديد الخطافات المخصصة](/learn/reusing-logic-with-custom-hooks#extracting-your-own-custom-hook-from-a-component) الخاصة بك كوظائف JavaScript
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please checkout my commits to this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

هذا الطلب الأخير مهم جدا

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

في المرة القادمة التي تترجم صفحة يجب أن تترجم أيضًا فهرسها في src/sidebar reference.json.

@AhmedBaset AhmedBaset merged commit b1af333 into reactjs:main May 31, 2023
4 checks passed
@AhmedBaset
Copy link
Collaborator

تم دمج الفرع
من فضلك اقرأ التعليقات والcommits

يمكنك ترجمة صفحة جديدة 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants