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

[DONE]: Translate Your First Component #488

Merged
merged 9 commits into from Jun 5, 2023

Conversation

eihabkhan
Copy link
Contributor

@eihabkhan eihabkhan commented Jun 2, 2023

  • Translate the "Your First Component" section
  • Translate the "Components: UI building blocks" section
  • Translate the "Defining a component" section
  • Translate the "Step 1: Export the component" section
  • Translate the "Step 2: Define the function" section
  • Translate the "Step 3: Add markup" section
  • Translate the "Using a component" section
  • Translate the "What the browser sees" section
  • Translate the "Nesting and organizing components" section
  • Translate the "Recap" section
  • Translate the "Challenges" section

@eihabkhan eihabkhan changed the title Your First Component [DONE]: Translate Your First Component Jun 2, 2023
@eihabkhan
Copy link
Contributor Author

Done translating the page ✅

This was referenced Jun 2, 2023
Closed
@AhmedBaset AhmedBaset self-assigned this Jun 4, 2023
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

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

Three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/404 75.58 KB (🟡 +11 B) 178.73 KB
/500 75.57 KB (🟡 +11 B) 178.72 KB
/[[...markdownPath]] 76.99 KB (🟡 +11 B) 180.14 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.


React lets you combine your markup, CSS, and JavaScript into custom "components", **reusable UI elements for your app.** The table of contents code you saw above could be turned into a `<TableOfContents />` component you could render on every page. Under the hood, it still uses the same HTML tags like `<article>`, `<h1>`, etc.
تمكنك React من دمج الترميز المرئي, وCSS, وJavaScript في "مكونات" مخصصة, **عناصر واجهة المستخدم قابلة لإعادة الاستخدام لتطبيقك**. يمكن تحويل كود فهرس المحتوى الذي رأيته أعلاه إلى مكوّن `<TableOfContents />` الذي يمكن تصييره في كل صفحة. لا يزال يستخدم هذا المكوّن تحت الخطاء وسوم مثل `<article>`, `<h1>`, إلخ.
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
Contributor Author

Choose a reason for hiding this comment

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

Noted 👌


React lets you combine your markup, CSS, and JavaScript into custom "components", **reusable UI elements for your app.** The table of contents code you saw above could be turned into a `<TableOfContents />` component you could render on every page. Under the hood, it still uses the same HTML tags like `<article>`, `<h1>`, etc.
تمكنك React من دمج الترميز المرئي, وCSS, وJavaScript في "مكونات" مخصصة, **عناصر واجهة المستخدم قابلة لإعادة الاستخدام لتطبيقك**. يمكن تحويل كود فهرس المحتوى الذي رأيته أعلاه إلى مكوّن `<TableOfContents />` الذي يمكن تصييره في كل صفحة. لا يزال يستخدم هذا المكوّن تحت الخطاء وسوم مثل `<article>`, `<h1>`, إلخ.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Under the hood
في اللغة العربية نقول
خلف الكواليس أو وراء الستار

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please review my commits

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@A7med3bdulBaset Looks great, thanks for the corrections.

@AhmedBaset
Copy link
Collaborator

كالعادة ترجمة ممتازة
تم دمج الفرع
يمكنك الآن اختيار صفحة أخرى

@AhmedBaset AhmedBaset merged commit 2deac05 into reactjs:main Jun 5, 2023
4 checks passed
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