← Winnitude! Search  ·  Reader Mode (2459 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 132 LINKS

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 ):

The pull request title should be same as the article, e.g. An Introduction to JavaScript (just like comment)

javascript-translate-bot added changes requested and removed review needed labels Apr 5, 2021

javascript-translate-bot commented Apr 5, 2021



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

emadpoursina changed the title translate article.md Modules, introduction Apr 6, 2021

emadpoursina commented Apr 6, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Apr 6, 2021 javascript-translate-bot requested a review from a team April 6, 2021 02:39 mahdyar requested changes Apr 6, 2021
View reviewed changes
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
Comment on lines +347 to +348
## Build tools
## ابزار های ساخت و ساز
Comment thread 1-js/13-modules/01-modules-intro/article.md Comment on lines 299 to +300
### External scripts
### اسکریپت های اکسترنال
javascript-translate-bot removed the review needed label Apr 6, 2021

javascript-translate-bot commented Apr 6, 2021



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

javascript-translate-bot added the changes requested label Apr 6, 2021 fix some mistake 60cbbad

emadpoursina commented Apr 6, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Apr 6, 2021 javascript-translate-bot requested a review from a team April 6, 2021 08:27 mahdyar requested changes Apr 6, 2021
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 added changes requested and removed review needed labels Apr 6, 2021

javascript-translate-bot commented Apr 6, 2021



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

fix a mistake 68f5483

emadpoursina commented Apr 6, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Apr 6, 2021 javascript-translate-bot requested a review from a team April 6, 2021 12:00 mahdyar requested changes Apr 6, 2021
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 .
در فصل بعد ما مثال های بیشتری از ماژول ها را می بینیم، و اینکه چگونه آن ها صادر/وارد می شوند .
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
```

## Build tools
## ابزار های ساخت و ساز
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
یکی از مزایای استفاده از باندلرها -- اینها به ما کنترل بیشتر بر روی اینکه ماژول ها چگونه اجرا می شوند، می دهد، اجازه اجرا شدن ماژول های برهنه و بسیار کارهای دیگر، مانند ماژول های CSS/HTML.

Build tools do the following :
ابزارهای ساخت برای انجام کارهای زیر :
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
```

### Module-level scope
### اسکوپ های سطح ماژول
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
خب، حال با هم یک مثال پیشرفته تر را می بینیم .

Let's say, a module exports an object :
فرض می کنیم که یک ماژول یک آبجکت را صادر می کند :
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
@@ -201,23 +201,23 @@ sayHi(); // Ready to serve, *!*Pete*/!*!

### import.meta
Comment thread 1-js/13-modules/01-modules-intro/article.md
Outdated
```

### In a module, "this" is undefined
### در یک ماژول، "this" undefined است
javascript-translate-bot removed the review needed label Apr 6, 2021

javascript-translate-bot commented Apr 6, 2021



Copy link Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

javascript-translate-bot added the changes requested label Apr 6, 2021 fix some errors b6943b0

emadpoursina commented Apr 9, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Apr 9, 2021 javascript-translate-bot requested a review from a team April 9, 2021 09:36 mahdyar approved these changes Apr 9, 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 .

Thank you, @emadpoursina !

javascript-translate-bot added needs +1 and removed review needed labels Apr 9, 2021 mahdyar merged commit 6e092bb 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 🎉 🎉 🎉

Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

needs +1

3 participants