You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update Persian translations for sidebar and create a react app page (#488)
- Translated titles and section headers in sidebarHome.json and sidebarLearn.json to Persian.
- Updated feedback messages in Feedback.tsx to Persian.
- Adjusted text in Toc.tsx and ExpandableExample.tsx for consistency in Persian language usage.
- Translated content in creating-a-react-app.md to enhance accessibility for Persian-speaking users.
Co-authored-by: Mohammad Reza Badri <[email protected]>
Co-authored-by: mrbadri <[email protected]>
If you want to build a new app or website with React, we recommend starting with a framework.
7
+
اگر میخواهید یک اپلیکیشن یا وبسایت جدید با ریاکت بسازید، توصیه میکنیم کار خود را با یک فریمورک شروع کنید.
8
8
9
9
</Intro>
10
10
11
-
If your app has constraints not well-served by existing frameworks, 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).
11
+
اگر اپلیکیشن شما محدودیتهایی دارد که توسط فریمورکهای موجود به خوبی پوشش داده نمیشوند، یا ترجیح میدهید فریمورک خودتان را بسازید، یا فقط میخواهید اصول اولیه یک اپلیکیشن ریاکت را یاد بگیرید، میتوانید [یک اپلیکیشن ریاکت را از پایه بسازید](/learn/build-a-react-app-from-scratch).
These recommended frameworks support all the features you need to deploy and scale your app in production. They have integrated the latest React features and take advantage of React’s architecture.
15
+
این فریمورکهای پیشنهادی از تمام قابلیتهایی که برای دیپلوی و مقیاسدهی اپلیکیشن خود در محیط پروداکشن نیاز دارید پشتیبانی میکنند. آنها جدیدترین قابلیتهای ریاکت را ادغام کردهاند و از معماری ریاکت بهره میبرند.
16
16
17
17
<Note>
18
18
19
-
#### Full-stack frameworks do not require a server. {/*react-frameworks-do-not-require-a-server*/}
19
+
#### فریمورکهای فولاستک به سرور نیاز ندارند. {/*react-frameworks-do-not-require-a-server*/}
20
20
21
-
All the frameworks on this page support client-side rendering ([CSR](https://developer.mozilla.org/en-US/docs/Glossary/CSR)), single-page apps ([SPA](https://developer.mozilla.org/en-US/docs/Glossary/SPA)), and static-site generation ([SSG](https://developer.mozilla.org/en-US/docs/Glossary/SSG)). These apps can be deployed to a [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN)or static hosting service without a server. Additionally, these frameworks allow you to add server-side rendering on a per-route basis, when it makes sense for your use case.
21
+
تمام فریمورکهای معرفیشده در این صفحه از رندر سمت کلاینت ([CSR](https://developer.mozilla.org/en-US/docs/Glossary/CSR))، اپلیکیشنهای تکصفحهای ([SPA](https://developer.mozilla.org/en-US/docs/Glossary/SPA)) و تولید سایت استاتیک ([SSG](https://developer.mozilla.org/en-US/docs/Glossary/SSG)) پشتیبانی میکنند. این اپلیکیشنها میتوانند بدون نیاز به سرور روی یک [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN)یا سرویس میزبانی استاتیک مستقر شوند. علاوه بر این، این فریمورکها به شما اجازه میدهند که در صورت نیاز، رندر سمت سرور را به صورت انتخابی و در سطح هر مسیر اضافه کنید.
22
22
23
-
This allows you to start with a client-only app, and if your needs change later, you can opt-in to using server features on individual routes without rewriting your app. See your framework's documentation for configuring the rendering strategy.
23
+
این موضوع به شما امکان میدهد که کار را با یک اپلیکیشن صرفاً کلاینتی شروع کنید، و اگر نیازهای شما بعداً تغییر کرد، بتوانید برای مسیرهای مشخصی ویژگیهای سمت سرور را فعال کنید، بدون آنکه نیاز به بازنویسی کل اپلیکیشن داشته باشید. برای پیکربندی استراتژی رندر، به مستندات فریمورک خود مراجعه کنید.
24
24
25
25
</Note>
26
26
27
27
### Next.js (App Router) {/*nextjs-app-router*/}
28
28
29
-
**[Next.js's App Router](https://nextjs.org/docs) is a React framework that takes full advantage of React's architecture to enable full-stack React apps.**
29
+
**[App Router در Next.js](https://nextjs.org/docs) یک فریمورک ریاکت است که از معماری ریاکت به طور کامل بهره میبرد تا اپلیکیشنهای فولاستک ریاکت را امکانپذیر کند.**
30
+
30
31
31
32
<TerminalBlock>
32
33
npx create-next-app@latest
33
34
</TerminalBlock>
34
35
35
-
Next.js is maintained by [Vercel](https://vercel.com/). You can [deploy a Next.js app](https://nextjs.org/docs/app/building-your-application/deploying)to any hosting provider that supports Node.js or Docker containers, or to your own server. Next.js also supports [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports)which doesn't require a server.
36
+
Next.js توسط [Vercel](https://vercel.com/) نگهداری میشود. شما میتوانید یک [اپلیکیشن Next.js را مستقر کنید](https://nextjs.org/docs/app/building-your-application/deploying)روی هر ارائهدهندهی میزبانی که از Node.js یا کانتینرهای Docker پشتیبانی کند، یا روی سرور خودتان. Next.js همچنین از [خروجی استاتیک](https://nextjs.org/docs/app/building-your-application/deploying/static-exports)پشتیبانی میکند که به سرور نیازی ندارد.
36
37
37
38
### React Router (v7) {/*react-router-v7*/}
38
39
39
-
**[React Router](https://reactrouter.com/start/framework/installation)is the most popular routing library for React and can be paired with Vite to create a full-stack React framework**. It emphasizes standard Web APIs and has several [ready to deploy templates](https://github.com/remix-run/react-router-templates)for various JavaScript runtimes and platforms.
40
+
**[React Router](https://reactrouter.com/start/framework/installation)محبوبترین کتابخانه مسیردهی برای ریاکت است و میتواند همراه با Vite برای ایجاد یک فریمورک فولاستک ریاکت استفاده شود.** این فریمورک بر استفاده از APIهای استاندارد وب تأکید دارد و چندین [قالب آماده برای استقرار](https://github.com/remix-run/react-router-templates)روی محیطها و پلتفرمهای مختلف جاوااسکریپت ارائه میدهد.
40
41
41
-
To create a new React Router framework project, run:
42
+
برای ایجاد یک پروژهی جدید فریمورک React Router، دستور زیر را اجرا کنید:
42
43
43
44
<TerminalBlock>
44
45
npx create-react-router@latest
45
46
</TerminalBlock>
46
47
47
-
React Router is maintained by [Shopify](https://www.shopify.com).
48
+
React Router توسط [Shopify](https://www.shopify.com) نگهداری میشود.
48
49
49
-
### Expo (for native apps) {/*expo*/}
50
+
### Expo (برای اپلیکیشنهای نیتیو) {/*expo*/}
50
51
51
-
**[Expo](https://expo.dev/)is a React framework that lets you create universal Android, iOS, and web apps with truly native UIs.**It provides an SDK for[React Native](https://reactnative.dev/)that makes the native parts easier to use. To create a new Expo project, run:
52
+
**[Expo](https://expo.dev/)یک فریمورک ریاکت است که به شما اجازه میدهد اپلیکیشنهای یونیورسال اندروید، iOS و وب را با رابطهای کاربری واقعاً نیتیو بسازید.**این فریمورک یک SDK برای[React Native](https://reactnative.dev/)فراهم میکند که استفاده از بخشهای نیتیو را سادهتر میسازد. برای ایجاد یک پروژهی جدید با Expo، دستور زیر را اجرا کنید:
52
53
53
54
<TerminalBlock>
54
55
npx create-expo-app@latest
55
56
</TerminalBlock>
56
57
57
-
If you're new to Expo, check out the [Expo tutorial](https://docs.expo.dev/tutorial/introduction/).
58
+
اگر در Expo تازهکار هستید، [آموزش Expo](https://docs.expo.dev/tutorial/introduction/) را بررسی کنید.
58
59
59
-
Expo is maintained by [Expo (the company)](https://expo.dev/about). Building apps with Expo is free, and you can submit them to the Google and Apple app stores without restrictions. Expo additionally provides opt-in paid cloud services.
60
+
Expo توسط [شرکت Expo](https://expo.dev/about) نگهداری میشود. ساخت اپلیکیشن با Expo رایگان است، و شما میتوانید اپها را بدون هیچ محدودیتی در فروشگاههای Google و Apple منتشر کنید. علاوه بر این، Expo سرویسهای ابری پولی اختیاری نیز ارائه میدهد.
60
61
61
62
62
-
## Other frameworks {/*other-frameworks*/}
63
+
## سایر فریمورکها {/*other-frameworks*/}
63
64
64
-
There are other up-and-coming frameworks that are working towards our full stack React vision:
65
+
فریمورکهای دیگری نیز وجود دارند که در حال حرکت به سمت چشمانداز فولاستک ریاکت هستند:
65
66
66
-
-[TanStack Start (Beta)](https://tanstack.com/): TanStack Start is a full-stack React framework powered by TanStack Router. It provides a full-document SSR, streaming, server functions, bundling, and more using tools like Nitro and Vite.
67
-
-[RedwoodJS](https://redwoodjs.com/): Redwood is a full stack React framework with lots of pre-installed packages and configuration that makes it easy to build full-stack web applications.
67
+
-[TanStack Start (نسخه بتا)](https://tanstack.com/): فریمورک TanStack Start یک فریمورک فولاستک ریاکت است که توسط TanStack Router پشتیبانی میشود. این فریمورک رندر سمت سرور (SSR) کامل، استریمینگ، فانکشنهای سمت سرور، باندلینگ و امکانات بیشتر را با استفاده از ابزارهایی مانند Nitro و Vite فراهم میکند.
68
+
-[RedwoodJS](https://redwoodjs.com/): فریمورک Redwood یک فریمورک فولاستک ریاکت است که با تعداد زیادی پکیج و پیکربندی از پیش نصبشده ارائه میشود و ساخت اپلیکیشنهای وب فولاستک را آسان میکند.
68
69
69
70
<DeepDive>
70
71
71
-
#### Which features make up the React team’s full-stack architecture vision? {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
72
+
#### چه ویژگیهایی چشمانداز معماری فولاستک تیم ریاکت را تشکیل میدهند؟ {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
72
73
73
-
Next.js's App Router bundler fully implements the official [React Server Components specification](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md). This lets you mix build-time, server-only, and interactive components in a single React tree.
74
+
باندلر App Router در Next.js مشخصات رسمی [کامپوننتهای سمت سرور ریاکت](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md) را به طور کامل پیادهسازی کرده است. این ویژگی به شما اجازه میدهد که کامپوننتهای زمان-بیلد، صرفاً-سمت-سرور، و تعاملی را در یک درخت ریاکت ترکیب کنید.
74
75
75
-
For example, you can write a server-only React component as an `async`function that reads from a database or from a file. Then you can pass data down from it to your interactive components:
76
+
برای مثال، میتوانید یک کامپوننت صرفاً-سمت-سرور را به صورت یک تابع `async`بنویسید که از پایگاه داده یا یک فایل بخواند. سپس میتوانید دادهها را به کامپوننتهای تعاملی خود انتقال دهید:
76
77
77
78
```js
78
79
// This component runs *only* on the server (or during the build).
@@ -88,26 +89,26 @@ async function Talks({ confId }) {
88
89
}
89
90
```
90
91
91
-
Next.js's App Router also integrates [data fetching with Suspense](/blog/2022/03/29/react-v18#suspense-in-data-frameworks). This lets you specify a loading state (like a skeleton placeholder) for different parts of your user interface directly in your React tree:
92
+
App Router در Next.js همچنین [واکشی داده همراه با Suspense](/blog/2022/03/29/react-v18#suspense-in-data-frameworks) را یکپارچه میکند. این ویژگی به شما اجازه میدهد برای بخشهای مختلف رابط کاربری خود، مستقیماً در درخت ریاکت حالت بارگذاری (مانند یک اسکلتنمایشگر) مشخص کنید:
92
93
93
94
```js
94
95
<Suspense fallback={<TalksLoading />}>
95
96
<Talks confId={conf.id} />
96
97
</Suspense>
97
98
```
98
99
99
-
Server Components and Suspense are React features rather than Next.js features. However, adopting them at the framework level requires buy-in and non-trivial implementation work. At the moment, the Next.js App Router is the most complete implementation. The React team is working with bundler developers to make these features easier to implement in the next generation of frameworks.
100
+
Server Components و Suspense ویژگیهای خود ریاکت هستند، نه Next.js. با این حال، پیادهسازی آنها در سطح فریمورک نیازمند همکاری و کار غیرسادهای است. در حال حاضر، App Router در Next.js کاملترین پیادهسازی این قابلیتها را دارد. تیم ریاکت در حال همکاری با توسعهدهندگان باندلرها است تا این ویژگیها را در نسل بعدی فریمورکها سادهتر کنند.
100
101
101
102
</DeepDive>
102
103
103
-
## Start From Scratch {/*start-from-scratch*/}
104
+
## شروع از صفر {/*start-from-scratch*/}
104
105
105
-
If your app has constraints not well-served by existing frameworks, you prefer to build your own framework, or you just want to learn the basics of a React app, there are other options available for starting a React project from scratch.
106
+
اگر اپلیکیشن شما محدودیتهایی دارد که توسط فریمورکهای موجود بهخوبی پشتیبانی نمیشوند، یا ترجیح میدهید فریمورک مخصوص به خود را بسازید، یا فقط میخواهید اصول اولیه یک اپلیکیشن ریاکت را یاد بگیرید، گزینههای دیگری برای شروع یک پروژه ریاکت از صفر وجود دارد.
106
107
107
-
Starting from scratch gives you more flexibility, but does require that you make choices on which tools to use for routing, data fetching, and other common usage patterns. It's a lot like building your own framework, instead of using a framework that already exists. The [frameworks we recommend](#full-stack-frameworks)have built-in solutions for these problems.
108
+
شروع از صفر انعطافپذیری بیشتری به شما میدهد، اما مستلزم آن است که خودتان انتخاب کنید از چه ابزارهایی برای روتینگ، واکشی داده و الگوهای رایج دیگر استفاده کنید. این کار بسیار شبیه ساختن فریمورک خودتان است، به جای استفاده از یک فریمورک آماده. [فریمورکهایی که ما توصیه میکنیم](#full-stack-frameworks)راهحلهای داخلی برای این مسائل دارند.
108
109
109
-
If you want to build your own solutions, see our guide to [build a React app from Scratch](/learn/build-a-react-app-from-scratch)for instructions on how to set up a new React project starting with a build tool like [Vite](https://vite.dev/),[Parcel](https://parceljs.org/), or[RSbuild](https://rsbuild.dev/).
110
+
اگر میخواهید راهحلهای خودتان را بسازید، به راهنمای ما برای [ساخت یک اپلیکیشن ریاکت از صفر](/learn/build-a-react-app-from-scratch)مراجعه کنید تا با نحوه راهاندازی یک پروژه ریاکت جدید با استفاده از ابزاری مانند [Vite](https://vite.dev/)،[Parcel](https://parceljs.org/) یا[RSbuild](https://rsbuild.dev/) آشنا شوید.
110
111
111
112
-----
112
113
113
-
_If you’re a framework author interested in being included on this page, [please let us know](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._
114
+
_اگر شما نویسنده یک فریمورک هستید و علاقهمندید که نامتان در این صفحه ذکر شود، [به ما اطلاع دهید](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._
0 commit comments