Skip to content

Commit 7d1246e

Browse files
authored
Merge branch 'reactjs:main' into main
2 parents 249baa3 + 993bfa3 commit 7d1246e

File tree

8 files changed

+168
-165
lines changed

8 files changed

+168
-165
lines changed

src/components/Layout/Feedback.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
6767
{exit: isSubmitted}
6868
)}>
6969
<p className="w-full text-lg font-bold text-primary dark:text-primary-dark me-4">
70-
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
70+
{isSubmitted
71+
? 'از بازخورد شما سپاسگزاریم!'
72+
: 'آیا این صفحه برایتان مفید بود؟'}
7173
</p>
7274
{!isSubmitted && (
7375
<button

src/components/Layout/Toc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function Toc({headings}: {headings: Toc}) {
1616
<nav role="navigation" className="pt-20 sticky top-0 end-0">
1717
{headings.length > 0 && (
1818
<h2 className="mb-3 lg:mb-3 uppercase tracking-wide font-bold text-sm text-secondary dark:text-secondary-dark px-4 w-full">
19-
On this page
19+
در این صفحه
2020
</h2>
2121
)}
2222
<div

src/components/MDX/ExpandableExample.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
7171
{isDeepDive && (
7272
<>
7373
<IconDeepDive className="inline me-2 dark:text-purple-30 text-purple-40" />
74-
Deep Dive
74+
مرور عمیق
7575
</>
7676
)}
7777
{isExample && (
7878
<>
7979
<IconCodeBlock className="inline me-2 dark:text-yellow-30 text-yellow-50" />
80-
Example
80+
مثال
8181
</>
8282
)}
8383
</h5>
@@ -101,7 +101,7 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
101101
<span className="me-1">
102102
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
103103
</span>
104-
{isExpanded ? 'Hide Details' : 'Show Details'}
104+
{isExpanded ? 'پنهان کردن جزئیات' : 'نمایش جزئیات'}
105105
</Button>
106106
</summary>
107107
<div

src/content/learn/add-react-to-an-existing-project.md

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

src/content/learn/creating-a-react-app.md

Lines changed: 32 additions & 31 deletions
Large diffs are not rendered by default.

src/content/learn/setup.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
2-
title: Setup
2+
title: راه‌اندازی
33
---
44
<Intro>
55

6-
React integrates with tools like editors, TypeScript, browser extensions, and compilers. This section will help you get your environment set up.
6+
ری‌اکت با ابزارهایی مانند ویرایشگرها، تایپ‌اسکریپت، افزونه‌های مرورگر و کامپایلرها ادغام می‌شود. این بخش به شما کمک می‌کند محیط توسعه خود را راه‌اندازی کنید.
77

88
</Intro>
99

10-
## Editor Setup {/*editor-setup*/}
10+
## راه‌اندازی ویرایشگر {/*editor-setup*/}
1111

12-
See our [recommended editors](/learn/editor-setup) and learn how to set them up to work with React.
12+
[ویرایشگرهای پیشنهادی ما](/learn/editor-setup) را ببینید و یاد بگیرید چطور آن‌ها را برای کار با ری‌اکت پیکربندی کنید.
1313

14-
## Using TypeScript {/*using-typescript*/}
14+
## استفاده از تایپ‌اسکریپت {/*using-typescript*/}
1515

16-
TypeScript is a popular way to add type definitions to JavaScript codebases. [Learn how to integrate TypeScript into your React projects](/learn/typescript).
16+
تایپ‌اسکریپت یک روش محبوب برای افزودن تعریف نوع به کدهای جاوااسکریپت است. [یاد بگیرید چگونه تایپ‌اسکریپت را در پروژه‌های ری‌اکت خود ادغام کنید](/learn/typescript).
1717

18-
## React Developer Tools {/*react-developer-tools*/}
18+
## ابزارهای توسعه ری‌اکت {/*react-developer-tools*/}
1919

20-
React Developer Tools is a browser extension that can inspect React components, edit props and state, and identify performance problems. Learn how to install it [here](learn/react-developer-tools).
20+
ابزارهای توسعه ری‌اکت یک افزونه مرورگر است که می‌تواند کامپوننت‌های ری‌اکت را بررسی کند، props و state را ویرایش کند و مشکلات عملکردی را شناسایی کند. برای نصب آن [اینجا](/learn/react-developer-tools) را ببینید.
2121

22-
## React Compiler {/*react-compiler*/}
22+
## کامپایلر ری‌اکت {/*react-compiler*/}
2323

24-
React Compiler is a tool that automatically optimizes your React app. [Learn more](/learn/react-compiler).
24+
کامپایلر ری‌اکت ابزاری است که به‌طور خودکار اپلیکیشن ری‌اکت شما را بهینه‌سازی می‌کند. [بیشتر بدانید](/learn/react-compiler).
2525

26-
## Next steps {/*next-steps*/}
26+
## گام‌های بعدی {/*next-steps*/}
2727

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

src/sidebarHome.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
11
{
2-
"title": "React Docs",
2+
"title": "مستندات ری‌اکت",
33
"path": "/",
44
"routes": [
55
{
66
"hasSectionHeader": true,
7-
"sectionHeader": "GET STARTED"
7+
"sectionHeader": "شروع کنید"
88
},
99
{
10-
"title": "Quick Start",
10+
"title": "شروع سریع",
1111
"path": "/learn"
1212
},
1313
{
14-
"title": "Installation",
14+
"title": "نصب",
1515
"path": "/learn/installation"
1616
},
1717
{
18-
"title": "React Compiler",
18+
"title": "کامپایلر ری‌اکت",
1919
"path": "/learn/react-compiler"
2020
},
2121
{
2222
"hasSectionHeader": true,
23-
"sectionHeader": "LEARN REACT"
23+
"sectionHeader": "یادگیری ری‌اکت"
2424
},
2525
{
26-
"title": "Describing the UI",
26+
"title": "توصیف رابط کاربری",
2727
"path": "/learn/describing-the-ui"
2828
},
2929
{
30-
"title": "Adding Interactivity",
30+
"title": "افزودن تعامل",
3131
"path": "/learn/adding-interactivity"
3232
},
3333
{
34-
"title": "Managing State",
34+
"title": "مدیریت حالت",
3535
"path": "/learn/managing-state"
3636
},
3737
{
38-
"title": "Escape Hatches",
38+
"title": "راه‌های فرار",
3939
"path": "/learn/escape-hatches"
4040
},
4141
{
4242
"hasSectionHeader": true,
43-
"sectionHeader": "REACT API"
43+
"sectionHeader": "API ری‌اکت"
4444
},
4545
{
46-
"title": "Hooks",
46+
"title": "هوک‌ها",
4747
"path": "/reference/react"
4848
},
4949
{
50-
"title": "Components",
50+
"title": "کامپوننت‌ها",
5151
"path": "/reference/react/components"
5252
},
5353
{
54-
"title": "APIs",
54+
"title": "APIها",
5555
"path": "/reference/react/apis"
5656
},
5757
{
58-
"title": "Legacy APIs",
58+
"title": "APIهای قدیمی",
5959
"path": "/reference/react/legacy"
6060
},
6161
{
6262
"hasSectionHeader": true,
63-
"sectionHeader": "REACT DOM API"
63+
"sectionHeader": "API ری‌اکت DOM"
6464
},
6565
{
66-
"title": "Components",
66+
"title": "کامپوننت‌ها",
6767
"path": "/reference/react-dom/components"
6868
},
6969
{
70-
"title": "APIs",
70+
"title": "APIها",
7171
"path": "/reference/react-dom"
7272
},
7373
{
74-
"title": "Client APIs",
74+
"title": "APIهای کلاینت",
7575
"path": "/reference/react-dom/client"
7676
},
7777
{
78-
"title": "Server APIs",
78+
"title": "APIهای سرور",
7979
"path": "/reference/react-dom/server"
8080
},
8181
{
8282
"hasSectionHeader": true,
83-
"sectionHeader": "REACT COMPILER API"
83+
"sectionHeader": "API کامپایلر ری‌اکت"
8484
},
8585
{
86-
"title": "Configuration",
86+
"title": "پیکربندی",
8787
"path": "/reference/react-compiler/configuration"
8888
},
8989
{
90-
"title": "Directives",
90+
"title": "دستورالعمل‌ها",
9191
"path": "/reference/react-compiler/directives"
9292
},
9393
{
94-
"title": "Compiling Libraries",
94+
"title": "کامپایل کتابخانه‌ها",
9595
"path": "/reference/react-compiler/compiling-libraries"
9696
},
9797
{
9898
"hasSectionHeader": true,
99-
"sectionHeader": "GET INVOLVED"
99+
"sectionHeader": "مشارکت کنید"
100100
},
101101
{
102-
"title": "React Community",
102+
"title": "جامعه ری‌اکت",
103103
"path": "/community"
104104
},
105105
{
106106
"hasSectionHeader": true,
107-
"sectionHeader": "STAY INFORMED"
107+
"sectionHeader": "باخبر بمانید"
108108
},
109109
{
110-
"title": "React Blog",
110+
"title": "بلاگ ری‌اکت",
111111
"path": "/blog"
112112
}
113113
]

0 commit comments

Comments
 (0)