Skip to content

translation of responding to events #346

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

Merged
merged 5 commits into from
Sep 28, 2023
Merged

translation of responding to events #346

merged 5 commits into from
Sep 28, 2023

Conversation

sr-ssh
Copy link
Contributor

@sr-ssh sr-ssh commented Aug 5, 2023

No description provided.

* How events propagate and how to stop them
* روش های مختلف برای نوشتن یک event handler
* نحوه انتقال منطق مدیریت رویداد از کامپوننت پدر
* نحوه انتشار رویداد‌ها و چگونگی توقف آن‌ها
Copy link
Collaborator

Choose a reason for hiding this comment

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

برای قاطی نشدن فرمت فارسی و انگلیسی از تگ
'ltr' استفاده کنین

Copy link
Contributor Author

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.

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

@faeghe-hajiabadi faeghe-hajiabadi left a comment

Choose a reason for hiding this comment

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

thank you and please help to fix the needed changes. see you in next pr for same files ;)

@faeghe-hajiabadi
Copy link
Collaborator

Please send me any questions on my email: [email protected]
I'll be available most working days

@rezvani2647
Copy link
Member

rezvani2647 commented Aug 7, 2023

@sr-ssh
I'm going to review you PR at this weekend.

@rezvani2647
Copy link
Member

Please send me any questions on my email: [email protected] I'll be available most working days

ممنون از اینکه وقت گذاشتین و پی ار رو چک کردین.
اما عملا این کار شما بی فایده است چون در نهایت یکی از نگهدارندگان باید بررسی و مرج کنه. حتی خود من هم اگر ترجمه انجام بدم فرد دیگری از نگه‌دارندگان باید اونو بررسی کنه. به جای آن می‌توانید روی ترجمه کنونی خودتان کار کنید و پس از آن یک صفحه دیگر را برای ترجمه انتخاب کنید.

در صورتی که علاقه دارین به عنوان فعالیت کنید به من ایمیلی ارسال کنید تا با ری‌اکت برای این کار مشورت کنم.

@faeghe-hajiabadi
Copy link
Collaborator

faeghe-hajiabadi commented Aug 7, 2023 via email

Copy link
Collaborator

@faeghe-hajiabadi faeghe-hajiabadi left a comment

Choose a reason for hiding this comment

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

فقط همون فرمت چپ به راست رو اوکی کنی تموم میشه! عالی


To add an event handler, you will first define a function and then [pass it as a prop](/learn/passing-props-to-a-component) to the appropriate JSX tag. For example, here is a button that doesn't do anything yet:
برای افزودن یک event handler، ابتدا یک تابع تعریف می‌کنید و سپس [آن را به عنوان props](/learn/passing-props-to-a-component) به تگ JSX مناسب پاس می‌دهید. به عنوان مثال، در اینجا دکمه ای وجود دارد که هنوز هیچ کاری انجام نمی دهد:

Copy link
Collaborator

Choose a reason for hiding this comment

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

keep it up!

Copy link
Collaborator

@faeghe-hajiabadi faeghe-hajiabadi left a comment

Choose a reason for hiding this comment

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

nice and thank you

You can make it show a message when a user clicks by following these three steps:
1. تابعی به نام `handleClick` *در داخل* کامپوننت `Button` خود تعریف کنید.
2. منطق را در داخل آن تابع پیاده سازی کنید (از `alert` برای نمایش پیام استفاده کنید).
3. `onClick={handleClick}` را به JSX المنت `<button>` اضافه کنید.
Copy link
Collaborator

Choose a reason for hiding this comment

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

is the Right to left showing correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yesss. do you think it has a problem?

Copy link
Collaborator

Choose a reason for hiding this comment

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

if you saw in the vs code, I don't think so. can you please attach a screen shot if possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in vs code, it is in this way:
Screenshot 1402-05-30 at 09 19 09
but in my localhost, it shows right:
Screenshot 1402-05-30 at 09 18 01

what should I do now?

@faeghe-hajiabadi
Copy link
Collaborator

faeghe-hajiabadi commented Aug 21, 2023 via email

Copy link
Collaborator

@faeghe-hajiabadi faeghe-hajiabadi left a comment

Choose a reason for hiding this comment

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

اگر تجربیات خودتون رو توی دیسکریپشن بنویسید برای بقیه خیلی ممنون میشم. تا بقیه هم به این مشکلات برنخورند. مثلا توضیحات همین pr

@faeghe-hajiabadi
Copy link
Collaborator

This pr contains Farsi translations for the page: 'translation of responding to events' by @sr-ssh
Thank you for your valuable work and help in react.js.
keep up the good work!

@sr-ssh
Copy link
Contributor Author

sr-ssh commented Aug 27, 2023 via email

@faeghe-hajiabadi
Copy link
Collaborator

_ No description provided. _

please raise the pull request again, so we can merge!

unnecessary div tags
@github-actions
Copy link

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! 🙌

@rezvani2647 rezvani2647 merged commit 0fa2d6a into reactjs:main Sep 28, 2023
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.

3 participants