Skip to content

Commit a979d89

Browse files
committed
✨ feat: add translation for the new React setup guide
1 parent 0d91aa8 commit a979d89

2 files changed

Lines changed: 19 additions & 13 deletions

File tree

‎src/components/MDX/InlineCode.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ function InlineCode({
2323
return (
2424
<code
2525
// dir="ltr" // This is needed to prevent the code from inheriting the RTL direction of <html> in case of RTL languages to avoid like `()console.log` to be rendered as `console.log()`
26-
dir={typeof props.children !== "string" ? "ltr" : ["[", "]"].includes(props.children) ? "rtl" : "ltr"}
26+
dir={
27+
typeof props.children !== 'string'
28+
? 'ltr'
29+
: ['[', ']'].includes(props.children)
30+
? 'rtl'
31+
: 'ltr'
32+
}
2733
className={cn(
2834
'inline text-code text-secondary dark:text-secondary-dark px-1 rounded-md no-underline',
2935
{

‎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+
تتكامل React مع أدوات مثل المحررات، و TypeScript، وإضافات المتصفح، والمترجمات. سيساعدك هذا القسم على إعداد بيئة عملك.
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) وتعلم كيفية إعدادها للعمل مع React.
1313

14-
## Using TypeScript {/*using-typescript*/}
14+
## استخدام TypeScript {/*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+
تُعد TypeScript طريقة شائعة لإضافة تعريفات الأنواع إلى قواعد برمجيات JavaScript. [تعلم كيفية دمج TypeScript في مشاريع React الخاصة بك](/learn/typescript).
1717

18-
## React Developer Tools {/*react-developer-tools*/}
18+
## أدوات مطوري React {/*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+
أدوات مطوري React (React Developer Tools) هي إضافة للمتصفح يمكنها فحص مكونات React، وتعديل الخصائص (props) والحالة (state)، وتحديد مشاكل الأداء. تعلم كيفية تثبيتها [هنا](learn/react-developer-tools).
2121

22-
## React Compiler {/*react-compiler*/}
22+
## مترجم React {/*react-compiler*/}
2323

24-
React Compiler is a tool that automatically optimizes your React app. [Learn more](/learn/react-compiler).
24+
مترجم React (React Compiler) هو أداة تقوم تلقائيًا بتحسين تطبيق React الخاص بك. [تعلم المزيد](/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) للقيام بجولة حول أهم مفاهيم React التي ستصادفها كل يوم.

0 commit comments

Comments
 (0)