-
Notifications
You must be signed in to change notification settings - Fork 103
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
[DONE]: Translate JavaScript in JSX with Curly Braces
#498
[DONE]: Translate JavaScript in JSX with Curly Braces
#498
Conversation
eihabkhan
commented
Jun 20, 2023
•
edited
Loading
edited
- Translate the "Overview"
- Translate the "Passing strings with quotes" section
- Translate the "Using curly braces: A window into the JavaScript world" section
- Translate the "Where to use curly braces" section
- Translate the 'Using “double curlies”: CSS and other objects in JSX' section
- Translate the "More fun with JavaScript objects and curly braces" section
- Translate the "Recap" section
- Translate the "Challenges" section
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 Three Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ترجمة ممتازة
تركت لك بعض التعليقات
وعدلت تعديلات في commits راجعها من فضلك
أمر أخير هناك بعض المحتوى وسط الكود مثل المحتوى الخاص بGregorio Y. Zara سيكون جيدًا لو ترجمته إلى اللغة العربية
لكن الأفضل على الإطلاق لو غيرت المحتوى تماما بمحتوى مألوف للمستخدمين العرب
مثلا بدلا من قائمة مهام لجورجيو يمكنك عمل قائمة مهام لأحمد زويل أو نجيب محفوظ أو طه حسين
إن أردت تعديل هذا يمكنك فتح طلب سحب Pull Request جديد وتعديل ما تريد
شكرا لك
@@ -1,25 +1,25 @@ | |||
--- | |||
title: JavaScript in JSX with Curly Braces | |||
title: JavaScript في JSX باستخدام الأقواس المعقوفة |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
الأقواس المنحنية ✅
|
||
</Intro> | ||
|
||
<YouWillLearn> | ||
|
||
* How to pass strings with quotes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ترجم strings إلى النصوص
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
سأقوم بترجمتهم المرة القادمة. السبب في أني لم أترجمهم هو لأني ظننت أنه ليس من المفترض ترجمة string تبعا لقائمة المصطلحات
@@ -133,9 +132,9 @@ export default function TodoList() { | |||
backgroundColor: 'black', | |||
color: 'pink' | |||
}}> | |||
<li>Improve the videophone</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
سيكون الأمر أفضل لو ترجمت المحتوى بين الكود
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
صحيح، سأتأكد من أن أترجم محتوى الكود في المرة القادمة.
@@ -103,25 +103,25 @@ function formatDate(date) { | |||
|
|||
export default function TodoList() { | |||
return ( | |||
<h1>To Do List for {formatDate(today)}</h1> | |||
<h1>قائمة مهام لـ {formatDate(today)}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
هل مسموح لنا بتعديل هذا الكود بحيث يتم تغيير DateTimeFormat
من en-us
إلى مثلا ar-eg
؟
function formatDate(date) {
return new Intl.DateTimeFormat(
'ar-eg',
{ weekday: 'long' }
).format(date);
}
هذا سيحسن من شكل النص المصيّر, بحيث يكون الناتج:
قائمة مهام لـ الأربعاء
بدلا من
قائمة مهام لـ Wednesday
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
بالطبع يمكنك طالما لا تؤثر على فكرة الكود
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
حسنا سأقوم بإنشاء طلب سحب جديد يحتوي على هذا التغيير
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
إذن عدل المعلومات عن شخص معروف مثلا هذه معلومات بديلة عن أحمد زويل باستخدام chatGPT
const person = {
name: 'أحمد زويل',
theme: {
backgroundColor: 'black',
color: 'pink'
}
};
export default function TodoList() {
return (
<div style={person.theme}>
<h1>مهام {person.name}</h1>
<img
className="avatar"
src="https://i.ibb.co/KDFmRmy/5.jpg"
alt="أحمد زويل"
/>
<ul>
<li>العمل على تطوير العلوم والأبحاث في مصر</li>
<li>تعزيز التعليم العلمي وتشجيع الشباب على الاهتمام بالعلوم</li>
<li>تطوير تكنولوجيا المعلومات والاتصالات</li>
<li>دعم الابتكار والاختراع في مجالات متعددة</li>
</ul>
</div>
);
}
غير ما يلزم من الكود
يمكنك تعديا البيانات أو تغيير الشخص كما تحب
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
نعم سأستبدل محتوى الأمثلة كما اقترحت بأمثلة مألوفة للمستخدمين العرب.
@A7med3bdulBaset this is done is this merged yet? It's still marked as unchecked |
Apologize for the confusion |
No problem! Thank you. |