GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Modules, introduction by emadpoursina · Pull Request #106 · javascript-tutorial/fa.javascript.info

Conversation

@emadpoursina

@emadpoursina emadpoursina commented Apr 5, 2021

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@emadpoursina
translate article.md
23b53fb
@javascript-translate-bot javascript-translate-bot added the review needed label Apr 5, 2021
@javascript-translate-bot
javascript-translate-bot requested a review from a team April 5, 2021 14:18
mahdyar
mahdyar requested changes Apr 5, 2021
View reviewed changes

@mahdyar mahdyar left a comment

Copy link
Copy Markdown
Member

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.

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

emadpoursina commented Apr 6, 2021

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added review needed and removed changes requested labels Apr 6, 2021
@javascript-translate-bot
javascript-translate-bot requested a review from a team April 6, 2021 02:39
mahdyar
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
## ابزار های ساخت و ساز

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

Please remove the English term after translating it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/13-modules/01-modules-intro/article.md
Comment on lines 299 to +300
### External scripts
### اسکریپت های اکسترنال

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

Please remove the English term after translating it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javascript-translate-bot javascript-translate-bot removed the review needed label Apr 6, 2021
@javascript-translate-bot

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

emadpoursina commented Apr 6, 2021

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

Please remove the English term after translating it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 6, 2021

Copy link
Copy Markdown
Contributor Author

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.

sorry i will check whole translate again.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

It happens. :) Although I think this was the last one. 🤔

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javascript-translate-bot javascript-translate-bot added changes requested and removed review needed labels Apr 6, 2021
@javascript-translate-bot

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@emadpoursina
fix a mistake
68f5483
@emadpoursina

emadpoursina commented Apr 6, 2021

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

As you didn't translate import/export in other places, please don't translate it here as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/13-modules/01-modules-intro/article.md Outdated
```

## Build tools
## ابزار های ساخت و ساز

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

ابزارهای ساخت would be enough.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Build tools do the following:
ابزارهای ساخت برای انجام کارهای زیر:

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

ابزارهای ساخت کارهای زیر را می‌کنند: would be a better translation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

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.

I will write;
ابزارهای ساخت کارهای زیر را انجام می دهند:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/13-modules/01-modules-intro/article.md Outdated
```

### Module-level scope
### اسکوپ های سطح ماژول

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

محدودهٔ/اسکوپ سطح ماژول

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/13-modules/01-modules-intro/article.md Outdated
خب، حال با هم یک مثال پیشرفته تر را می بینیم.

Let's say, a module exports an object:
فرض می کنیم که یک ماژول یک آبجکت را صادر می کند:

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

Use the term export, صادرکردن may cause misunderstanding.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

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.

I should change all of he صادر to export or just this one??

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

Because we use export in persian, what do you think about using finglish: اکسپورت?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

Should i change وارد کردنs to import or just صادرs?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

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.

@mahdyar ??

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mahdyar mahdyar Apr 7, 2021

Copy link
Copy Markdown
Member

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.

Yup, change both import and export.
And I think it'd be a good idea to change it everywhere else as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/13-modules/01-modules-intro/article.md Outdated
@@ -201,23 +201,23 @@ sayHi(); // Ready to serve, *!*Pete*/!*!

### import.meta

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

Always translate the titles, since the translation will be in RTL, English doesn't look good that way.
You can use شی import.meta

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/13-modules/01-modules-intro/article.md Outdated
```

### In a module, "this" is undefined
### در یک ماژول، "this" undefined است

@mahdyar mahdyar Apr 6, 2021

Copy link
Copy Markdown
Member

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.

تعریف‌نشده

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

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.

I should change all of he undefined to تعریف نشده or just this one??

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@emadpoursina emadpoursina Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

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.

@mahdyar ??

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@mahdyar mahdyar Apr 7, 2021

Copy link
Copy Markdown
Member

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.

Just this one.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javascript-translate-bot javascript-translate-bot removed the review needed label Apr 6, 2021
@javascript-translate-bot

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 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

emadpoursina commented Apr 9, 2021

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added review needed and removed changes requested labels Apr 9, 2021
@javascript-translate-bot
javascript-translate-bot requested a review from a team April 9, 2021 09:36
mahdyar
mahdyar approved these changes Apr 9, 2021
View reviewed changes

@mahdyar mahdyar left a comment

Copy link
Copy Markdown
Member

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.

Thank you, @emadpoursina!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javascript-translate-bot javascript-translate-bot added needs +1 and removed review needed labels Apr 9, 2021
@mahdyar
mahdyar merged commit 6e092bb into javascript-tutorial:master Apr 9, 2021
@javascript-translate-bot javascript-translate-bot mentioned this pull request Apr 9, 2021
Persian (Farsi) Translation Progress #1
Open
@javascript-translate-bot

javascript-translate-bot commented Apr 9, 2021

Copy link
Copy Markdown

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

@mahdyar mahdyar mahdyar approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs +1

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@emadpoursina @javascript-translate-bot @mahdyar
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.