Skip to content

Farsi Support 🇮🇷🇦🇫🇹🇯 #279

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

Merged
merged 5 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//// { order: 0, compiler: { target: 1 } }

// به محل بازی با تایپ اسکریپت خوش آمدید.
// اینجا ابزاری برای امتحان و آموزش تایپ اسکریپت در مرورگر شماست.
// این ابزار به شما این امکان را می دهد که به سادگی
// قابلیت های تایپ اسکریپت را آزمایش کنید و آموخته های خود را با دیگران در میان بگذارید.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"آموخته های" should be replaced with "آموخته‌های"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call! still struggling with typing in Farsi 🙌

// برای فرستادن آزمایش خود با دیگران تنها فرستادن آدرس صفحه آزمایش شما کافیست.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"فرستادن" means "sending", if you mean "sharing". Use "به اشتراک‌گذاری"


const hello = 'سلام'

// در سمت راست شما نتیحه مترجم تایپ اسکریپت را می توانید ببیید.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ببیید" has a typo

// این یک کد جاوااسکریپت است که در مرورگر یا در سرور شما قابل اجراست.

const world = 'دنیا'

// در اینجا می توانید شاهد تغیراتی که داده می شود مثل تبدیل `const` به `var` باشید.
// این یکی از تغییرات زیادی است که تایپ اسکریپت برای قابل اجرا بودن در تمام محیطهای جاوااسکریپت باید انجام دهد.

console.log(hello + ' ' + world)

// حالا که بیشتر با این ابزار آشنا شدیم می توانیم
// بیشتر به امکاناتی که تایپ اسکریپت برای راحتی کار با جاوااسکریپت در اختیار ما قرار میدهد آشنا شویم.
// در این قسمت تلاش می کنیم که تا حد امکان کدی شبیه به جاوااسکریپت
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't make much sense, is it left before finishing?

// ولی در تایپ اسکریپت بنویسیم که سادگی حرکت به سمت تایپ اسکریپت را نشان دهیم.
//
// برای ادامه به لینک زیر بروید:
//
// example:objects-and-arrays
3 changes: 3 additions & 0 deletions packages/playground-examples/copy/fa/JavaScript/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## مثال های جاوااسکریپت

این مثال ها به ما چگونگی اجرای جاوااسکریپت توسط تایپ اسکریپت را نشان می دهند. با اینکه در بعضی از مثال ها از تایپ قابلیت های ساده تایپ اسکریپت استفاده می کنیم اما هدف اصلی این دسته از مثال ها نشان دادن سادگی استفاده مجدد از دانسته های کاربر در جاوااسکریپت در تایپ اسکریپت است.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ZWNJ for TypeScript. According to Persian standards, you should not use space for those cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"دانسته های" -> use ZWNJ instead of space

55 changes: 55 additions & 0 deletions packages/playground-examples/copy/fa/sections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"sections": [
{
"name": "JavaScript",
"id": "JavaScript",
"subtitle": "See how TypeScript improves day to day working with JavaScript with minimal additional syntax."
},
{
"name": "TypeScript",
"id": "TypeScript",
"subtitle": "Explore how TypeScript extends JavaScript to add more safety and tooling."
},
{
"name": "3.7",
"id": "3.7",
"subtitle": "See the <a href='https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/'>Release notes</a>."
},
{
"name": "3.8",
"id": "3.8",
"subtitle": "See the <a href='https://devblogs.microsoft.com/typescript/announcing-typescript-3-8-beta/'>Beta Release notes</a>."
},
{
"name": "Playground V3",
"id": "Playground",
"subtitle": "Learn what has changed in this website."
}
],

"sortedSubSections": [
// JS
"JavaScript Essentials",
"Functions with JavaScript",
"Working With Classes",
"Modern JavaScript",
"External APIs",
"Helping with JavaScript",
// TS
"Primitives",
"Type Primitives",
"Meta-Types",
"Language",
"Language Extensions",
// Examples
"Syntax and Messaging",
"Types and Code Flow",
"Fixits",
// Playground
"Config",
"Tooling",
// 3.8
"Breaking Changes",
"JSDoc Improvements"
]
}