Modules, introduction by emadpoursina · Pull Request #106 · javascript-tutorial/fa.javascript.info
Repository navigation
Modules, introduction - #106
Merged
mahdyar merged 4 commits into javascript-tutorial:master from emadpoursina:master Apr 9, 2021
Merged
Modules, introduction #106 mahdyar merged 4 commits into javascript-tutorial:master from emadpoursina:master
Conversation
emadpoursina commented Apr 5, 2021
Copy link Copy Markdown
Contributor
No description provided.
translate article.md
23b53fb
javascript-translate-bot
added
the
review needed
label
Apr 5, 2021
javascript-translate-bot
requested a review
from a team
April 5, 2021 14:18
mahdyar
requested changes
Apr 5, 2021
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 @emadpoursina ,
Please read the For New Translators section there (#1 ):
javascript-translate-bot added changes requested and removed review needed labels Apr 5, 2021The pull request title should be same as the article, e.g.
An Introduction to JavaScript(just like comment)
javascript-translate-bot commented Apr 5, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
emadpoursina commented Apr 6, 2021
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
Comment on lines +347 to +348
| ## Build tools | ||
| ## ابزار های ساخت و ساز |
| ### External scripts | ||
| ### اسکریپت های اکسترنال |
javascript-translate-bot commented Apr 6, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fix some mistake
60cbbad
emadpoursina commented Apr 6, 2021
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
| - برای بارگزاری اسکریپت های خارجی(external) از منابع دیگر (دامنه/پروتکل/پورت)، هدر های CORS نیاز هستند . | ||
| - اسکریپت های مشابه external نادیده گرفته می شوند . | ||
| 2. ماژول های اسکوپ سطح بالای خود را دارند و از طریق عبارات `import/export` کارایی های خود را با دیگر اسکریپت های به اشتراک می گذارند . | ||
| 3. Modules always `use strict`. |
javascript-translate-bot commented Apr 6, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fix a mistake
68f5483
emadpoursina commented Apr 6, 2021
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
| در زمان انتشار، برنامه نویسان معمولا از باندل هایی مانند [Webpack](https://webpack.js.org) برای جمع کردن ماژول ها در کنار هم و بالا بردن کارایی و چند دلیل دیگر استفاده می کنند . | ||
|
|
||
| In the next chapter we'll see more examples of modules, and how things can be exported/imported . | ||
| در فصل بعد ما مثال های بیشتری از ماژول ها را می بینیم، و اینکه چگونه آن ها صادر/وارد می شوند . |
Outdated
| ``` | ||
|
|
||
| ## Build tools | ||
| ## ابزار های ساخت و ساز |
Outdated
| یکی از مزایای استفاده از باندلرها -- اینها به ما کنترل بیشتر بر روی اینکه ماژول ها چگونه اجرا می شوند، می دهد، اجازه اجرا شدن ماژول های برهنه و بسیار کارهای دیگر، مانند ماژول های CSS/HTML. | ||
|
|
||
| Build tools do the following : | ||
| ابزارهای ساخت برای انجام کارهای زیر : |
Outdated
| ``` | ||
|
|
||
| ### Module-level scope | ||
| ### اسکوپ های سطح ماژول |
Outdated
| خب، حال با هم یک مثال پیشرفته تر را می بینیم . | ||
|
|
||
| Let's say, a module exports an object : | ||
| فرض می کنیم که یک ماژول یک آبجکت را صادر می کند : |
Outdated
| @@ -201,23 +201,23 @@ sayHi(); // Ready to serve, *!*Pete*/!*! | ||
|
|
||
| ### import.meta |
Outdated
| ``` | ||
|
|
||
| ### In a module, "this" is undefined | ||
| ### در یک ماژول، "this" undefined است |
javascript-translate-bot commented Apr 6, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fix some errors
b6943b0
emadpoursina commented Apr 9, 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, @emadpoursina !
javascript-translate-bot added needs +1 and removed review needed labels Apr 9, 2021 mahdyar merged commit6e092bb
into
javascript-tutorial : master
Apr 9, 2021
javascript-translate-bot
mentioned this pull request
Apr 9, 2021
Persian (Farsi) Translation Progress
#1
Open
javascript-translate-bot commented Apr 9, 2021
Copy link Copy Markdown
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |