Skip to content

Commit 249baa3

Browse files
authored
Merge branch 'reactjs:main' into main
2 parents 91d7f7c + cd9bf95 commit 249baa3

File tree

4 files changed

+108
-107
lines changed

4 files changed

+108
-107
lines changed

src/components/MDX/ExpandableCallout.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ interface ExpandableCalloutProps {
2727

2828
const variantMap = {
2929
deprecated: {
30-
title: 'Deprecated',
30+
title: 'منسوخ‌شده',
3131
Icon: IconWarning,
3232
containerClasses: 'bg-red-5 dark:bg-red-60 dark:bg-opacity-20',
3333
textColor: 'text-red-50 dark:text-red-40',
3434
overlayGradient:
3535
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
3636
},
3737
note: {
38-
title: 'Note',
38+
title: 'نکته',
3939
Icon: IconNote,
4040
containerClasses:
4141
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -44,7 +44,7 @@ const variantMap = {
4444
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
4545
},
4646
canary: {
47-
title: 'Canary',
47+
title: 'نسخه آزمایشی',
4848
Icon: IconCanary,
4949
containerClasses:
5050
'bg-gray-5 dark:bg-gray-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -53,7 +53,7 @@ const variantMap = {
5353
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
5454
},
5555
experimental: {
56-
title: 'Experimental Feature',
56+
title: 'قابلیت آزمایشی',
5757
Icon: IconCanary,
5858
containerClasses:
5959
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -62,31 +62,31 @@ const variantMap = {
6262
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
6363
},
6464
pitfall: {
65-
title: 'Pitfall',
65+
title: 'دام',
6666
Icon: IconPitfall,
6767
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
6868
textColor: 'text-yellow-50 dark:text-yellow-40',
6969
overlayGradient:
7070
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
7171
},
7272
wip: {
73-
title: 'Under Construction',
73+
title: 'در حال ساخت',
7474
Icon: IconNote,
7575
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
7676
textColor: 'text-yellow-50 dark:text-yellow-40',
7777
overlayGradient:
7878
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
7979
},
8080
major: {
81-
title: 'React 19',
81+
title: 'ری‌اکت ۱۹',
8282
Icon: IconRocket,
8383
containerClasses: 'bg-blue-10 dark:bg-blue-60 dark:bg-opacity-20',
8484
textColor: 'text-blue-50 dark:text-blue-40',
8585
overlayGradient:
8686
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
8787
},
8888
rsc: {
89-
title: 'React Server Components',
89+
title: 'کامپوننت‌های سرور ری‌اکت',
9090
Icon: null,
9191
containerClasses: 'bg-blue-10 dark:bg-blue-60 dark:bg-opacity-20',
9292
textColor: 'text-blue-50 dark:text-blue-40',

src/components/MDX/MDXComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function YouWillLearn({
241241
children: any;
242242
isChapter?: boolean;
243243
}) {
244-
let title = isChapter ? 'In this chapter' : 'You will learn';
244+
let title = isChapter ? 'در این فصل' : 'یاد خواهید گرفت';
245245
return <SimpleCallout title={title}>{children}</SimpleCallout>;
246246
}
247247

src/content/learn/installation.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
---
2-
title: Installation
2+
title: نصب
33
---
44

55
<Intro>
66

7-
React has been designed from the start for gradual adoption. You can use as little or as much React as you need. Whether you want to get a taste of React, add some interactivity to an HTML page, or start a complex React-powered app, this section will help you get started.
7+
ری‌اکت از ابتدا به‌گونه‌ای طراحی شده که بتوان آن را به‌صورت تدریجی به کار گرفت. می‌توانید به همان اندازه که نیاز دارید از ری‌اکت استفاده کنید؛ چه بخواهید فقط با ری‌اکت آشنا شوید، چه مقداری تعامل به یک صفحه HTML اضافه کنید، یا یک اپلیکیشن پیچیده با ری‌اکت بسازید—این بخش به شما کمک می‌کند تا شروع کنید.
8+
89

910
</Intro>
1011

11-
## Try React {/*try-react*/}
12+
## ری‌اکت را امتحان کنید {/*try-react*/}
1213

13-
You don't need to install anything to play with React. Try editing this sandbox!
14+
برای بازی با ری‌اکت نیازی به نصب هیچ چیزی ندارید. این سندباکس را امتحان کنید و آن را ویرایش کنید!
1415

1516
<Sandpack>
1617

@@ -26,34 +27,34 @@ export default function App() {
2627

2728
</Sandpack>
2829

29-
You can edit it directly or open it in a new tab by pressing the "Fork" button in the upper right corner.
30+
می‌توانید مستقیماً آن را ویرایش کنید یا با فشردن دکمه "Fork" در گوشه بالا سمت راست، آن را در یک تب جدید باز کنید.
3031

31-
Most pages in the React documentation contain sandboxes like this. Outside of the React documentation, there are many online sandboxes that support React: for example, [CodeSandbox](https://codesandbox.io/s/new), [StackBlitz](https://stackblitz.com/fork/react), or [CodePen.](https://codepen.io/pen?template=QWYVwWN)
32+
بیشتر صفحات موجود در مستندات ری‌اکت شامل سندباکس‌هایی مانند این هستند. خارج از مستندات ری‌اکت، سندباکس‌های آنلاین زیادی وجود دارند که از ری‌اکت پشتیبانی می‌کنند؛ برای مثال، [CodeSandbox](https://codesandbox.io/s/new)، [StackBlitz](https://stackblitz.com/fork/react)، یا [CodePen.](https://codepen.io/pen?template=QWYVwWN)
3233

33-
To try React locally on your computer, [download this HTML page.](https://gist.githubusercontent.com/gaearon/0275b1e1518599bbeafcde4722e79ed1/raw/db72dcbf3384ee1708c4a07d3be79860db04bff0/example.html) Open it in your editor and in your browser!
34+
برای امتحان کردن ری‌اکت به‌صورت محلی روی رایانه‌تان، [این صفحه HTML را دانلود کنید.](https://gist.githubusercontent.com/gaearon/0275b1e1518599bbeafcde4722e79ed1/raw/db72dcbf3384ee1708c4a07d3be79860db04bff0/example.html)
35+
آن را در ویرایشگر و مرورگر خود باز کنید!
3436

35-
## Creating a React App {/*creating-a-react-app*/}
37+
## ساخت یک اپلیکیشن ری‌اکت {/*creating-a-react-app*/}
3638

37-
If you want to start a new React app, you can [create a React app](/learn/creating-a-react-app) using a recommended framework.
39+
اگر می‌خواهید یک اپلیکیشن ری‌اکت جدید راه‌اندازی کنید، می‌توانید از [ساخت یک اپلیکیشن ری‌اکت](/learn/creating-a-react-app) با استفاده از یک فریم‌ورک پیشنهادی شروع کنید.
3840

39-
## Build a React App from Scratch {/*build-a-react-app-from-scratch*/}
41+
## ساخت اپلیکیشن ری‌اکت از صفر {/*build-a-react-app-from-scratch*/}
4042

41-
If a framework is not a good fit for your project, you prefer to build your own framework, or you just want to learn the basics of a React app you can [build a React app from scratch](/learn/build-a-react-app-from-scratch).
43+
اگر یک فریم‌ورک برای پروژه‌تان مناسب نیست، ترجیح می‌دهید فریم‌ورک خودتان را بسازید، یا فقط می‌خواهید اصول اولیه‌ی یک اپلیکیشن ری‌اکت را یاد بگیرید، می‌توانید [اپلیکیشن ری‌اکت را از صفر بسازید](/learn/build-a-react-app-from-scratch).
4244

43-
## Add React to an existing project {/*add-react-to-an-existing-project*/}
45+
## افزودن ری‌اکت به یک پروژه‌ی موجود {/*add-react-to-an-existing-project*/}
4446

45-
If want to try using React in your existing app or a website, you can [add React to an existing project.](/learn/add-react-to-an-existing-project)
47+
اگر می‌خواهید استفاده از ری‌اکت را در اپلیکیشن یا وب‌سایت موجود خود امتحان کنید، می‌توانید [ری‌اکت را به یک پروژه‌ی موجود اضافه کنید](/learn/add-react-to-an-existing-project).
4648

4749

4850
<Note>
4951

50-
#### Should I use Create React App? {/*should-i-use-create-react-app*/}
51-
52-
No. Create React App has been deprecated. For more information, see [Sunsetting Create React App](/blog/2025/02/14/sunsetting-create-react-app).
52+
#### آیا باید از Create React App استفاده کنم؟ {/*should-i-use-create-react-app*/}
5353

54+
خیر. Create React App منسوخ شده است. برای اطلاعات بیشتر، [پایان پشتیبانی از Create React App](/blog/2025/02/14/sunsetting-create-react-app) را ببینید.
5455
</Note>
5556

56-
## Next steps {/*next-steps*/}
57+
## گام‌های بعدی {/*next-steps*/}
5758

58-
Head to the [Quick Start](/learn) guide for a tour of the most important React concepts you will encounter every day.
59+
به راهنمای [شروع سریع](/learn) بروید تا با مهم‌ترین مفاهیم ری‌اکت که هر روز با آن‌ها سروکار خواهید داشت، آشنا شوید.
5960

0 commit comments

Comments
 (0)