polyfills and transpilers by newshahn · Pull Request #104 · javascript-tutorial/fa.javascript.info
Repository navigation
polyfills and transpilers - #104
Merged
mahdyar merged 7 commits into javascript-tutorial:master from newshahn:master Apr 5, 2021
Merged
polyfills and transpilers #104 mahdyar merged 7 commits into javascript-tutorial:master from newshahn:master
Conversation
newshahn commented Apr 3, 2021
Copy link Copy Markdown
Contributor
polyfills and transpilers is done.
newshahn added 4 commits January 23, 2021 13:01
translated polyfills halfway
10f2606
fixed conflicts
a7df7ef
Merge remote-tracking branch 'upstream/master'
df78771
translated polyfills and transpilers
35cdf2f
javascript-translate-bot
added
the
review needed
label
Apr 3, 2021
javascript-translate-bot
requested a review
from a team
April 3, 2021 09:40
mahdyar
requested changes
Apr 3, 2021
View reviewed changes
Comment thread 1-js/03-code-quality/06-polyfills/article.md
Outdated
| @@ -1,92 +1,92 @@ | ||
|
|
||
| # Polyfills and transpilers |
Outdated
| # Polyfills and transpilers | ||
|
|
||
| The JavaScript language steadily evolves. New proposals to the language appear regularly, they are analyzed and, if considered worthy, are appended to the list at <https://tc39.github.io/ecma262/> and then progress to the [specification](http://www.ecma-international.org/publications/standards/Ecma-262.htm). | ||
| زبان جاوااسکریپت پیوسته در حال تکامل است. پیشنهادهایی برای بهتر شدن آن بهطور منظم صورت میگیرد، این پیشنهادها بررسی میشوند و اگر ارزشمند باشند، به لیست <https://tc39.github.io/ecma262/> اضافه میشوند و سپس به [specification](http://www.ecma-international.org/publications/standards/Ecma-262.htm) راه مییابند . |
Outdated
| زبان جاوااسکریپت پیوسته در حال تکامل است. پیشنهادهایی برای بهتر شدن آن بهطور منظم صورت میگیرد، این پیشنهادها بررسی میشوند و اگر ارزشمند باشند، به لیست <https://tc39.github.io/ecma262/> اضافه میشوند و سپس به [specification](http://www.ecma-international.org/publications/standards/Ecma-262.htm) راه مییابند . | ||
|
|
||
| Teams behind JavaScript engines have their own ideas about what to implement first. They may decide to implement proposals that are in draft and postpone things that are already in the spec , because they are less interesting or just harder to do . | ||
| تیمهای مسئول موتورهای جاوااسکریپت تصمیم میگیرند کدام یک را اول پیادهسازی کنند. ممکن است تصمیم بگیرند پیشنهادهایی که هنوز بهصورت پیشنویس هستند را اول پیادهسازی کنند و چیزهایی که در spec هستند را به بعدتر موکول کنند. دلیلش هم میتواند این باشد که شاید بعضی جذابیت کمتری دارند یا انجام آنها سختتر است . |
Outdated
Comment on lines 17 to 18
| 1. Transpilers. | ||
| 2. Polyfills. |
Outdated
| کد بازنویسی شده مناسب موتورهای قدیمیتر جاوااسکریپت است . | ||
|
|
||
| Usually, a developer runs the transpiler on their own computer, and then deploys the transpiled code to the server . | ||
| معمولا برنامهنویس transpiler را روی کامپیوتر خودش اجرا میکند و سپس کد transpileشده را روی سرور deploy میکند . |
| - [core js](https://github.com/zloirock/core-js) that supports a lot, allows to include only needed features. | ||
| - [polyfill.io](http://polyfill.io) service that provides a script with polyfills, depending on the features and user's browser. | ||
| دو کتابخانه جالب polyfills: | ||
|
|
Outdated
| در این فصل ما میخواهیم به شما انگیزه بدهیم تا بروید و فیچرهای جدید زبان را یاد بگیرید. حتی اگر هنوز توسط موتورهای جاوااسکریپت بهخوبی پشتیبانی نمیشوند . | ||
|
|
||
| Just don't forget to use transpiler ( if using modern syntax or operators) and polyfills ( to add functions that may be missing). And they'll ensure that the code works . | ||
| فراموش نکنید که از یک transpiler ( اگر از syntax یا operatorهای مدرن استفاده میکنید) و polyfills ( برای اضافه کردن فانکشنهایی که ممکن است موجود نباشند) استفاده کنید. و با این کار مطمئن خواهید بود که کد شما کار میکند . |
Outdated
| فراموش نکنید که از یک transpiler ( اگر از syntax یا operatorهای مدرن استفاده میکنید) و polyfills ( برای اضافه کردن فانکشنهایی که ممکن است موجود نباشند) استفاده کنید. و با این کار مطمئن خواهید بود که کد شما کار میکند . | ||
|
|
||
| For example, later when you're familiar with JavaScript, you can setup a code build system based on [webpack](http://webpack.github.io/) with [babel-loader](https://github.com/babel/babel-loader) plugin . | ||
| برای مثال، بعدها که با جاوااسکریپت آشنایی بیشتری پیدا کنید، میتوانید یک سیستم build کد با [webpack](http://webpack.github.io/) و پلاگین [babel-loader](https://github.com/babel/babel-loader) بالا بیاورید . |
Outdated
| - <https://kangax.github.io/compat-table/es6/> - for pure JavaScript. | ||
| - <https://caniuse.com/> - for browser-related functions. | ||
| منابع خوبی که نشان میدهند فیچرهای مختلف در چه حالتی از پشتیبانی قرار دارند: | ||
|
|
| P.S. Google Chrome is usually the most up-to-date with language features, try it if a tutorial demo fails. Most tutorial demos work with any modern browser though. | ||
| - <https://kangax.github.io/compat-table/es6/> - برای جاوااسکریپت. | ||
| - <https://caniuse.com/> - برای فانکشنهای مربوط به مرورگر. | ||
|
|
javascript-translate-bot commented Apr 3, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fixed the requested changes.
cfa63f1
newshahn
requested a review
from mahdyar
April 3, 2021 11:30
newshahn commented Apr 3, 2021
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
mahdyar left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Hello @newshahn ,
Please read the Translation Tips :
Please keep line breaks and paragraphs "as is": don't add newlines and don't remove existing ones. Makes it easy to merge future changes from the English version into the translation.
You can see the difference in Files changed section, line numbers on both sides should be the same.
Comment thread 1-js/03-code-quality/06-polyfills/article.md| @@ -1,92 +1,89 @@ | ||
| # پلیفیلها و ترنسپایلرها |
javascript-translate-bot commented Apr 3, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
added back the line I had deleted
cc8e812
newshahn commented Apr 4, 2021
Copy link Copy Markdown
Contributor
Author
|
Sorry about all the mistakes. |
View reviewed changes
mahdyar left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Also add a newline at the end of the file.
Comment thread 1-js/03-code-quality/06-polyfills/article.md| دو کتابخانه جالب پلیفیلها : | ||
| - [core js](https://github.com/zloirock/core-js) که از چیزهای زیادی پشتیبانی میکند و اجازه میدهد فقط فیچرهای مورد نیاز خود را اضافه کنید . | ||
| - [polyfill.io](http://polyfill.io) سرویسی که یک اسکریپت با پلیفیلها ارائه میدهد. بسته به فیچرها و مرورگر کاربر . | ||
|
|
javascript-translate-bot commented Apr 4, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fixed line breaks
01a4d81
newshahn commented Apr 5, 2021
Copy link Copy Markdown
Contributor
Author
|
😟 /done |
View reviewed changes
mahdyar left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Thank you, @newshahn !
javascript-translate-bot added needs +1 and removed review needed labels Apr 5, 2021 mahdyar merged commit6757403
into
javascript-tutorial : master
Apr 5, 2021
mahdyar
mentioned this pull request
Apr 6, 2021
Persian (Farsi) Translation Progress
#1
Open
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment