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 — Objects by mahdiHash · Pull Request #118 · javascript-tutorial/fa.javascript.info

Conversation

@mahdiHash

@mahdiHash mahdiHash commented May 4, 2021

Copy link
Copy Markdown
Contributor

Please review and commit / comment if anything is wrong
I had trouble with translating end of the line 500, so it would be the best if you check it yourself too!
And read the translation of comments as you "see" them. Just ignore the text direction for comments or otherwise, it wouldn't look correct that way 😬

Sorry, something went wrong.

Uh oh!

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

All reactions
mahdiHash added 23 commits April 30, 2021 14:04
@mahdiHash
Translate a part of atricle
f326cb3
@mahdiHash
Translate a part of "article.md"
d9acc43
@mahdiHash
Translate a comment
4fdac06
@mahdiHash
Translate a part of "article.md" and change lines 23 & 10
7ddbe6a
@mahdiHash
Translate a part of "article.md" and change some lines
3c28819
@mahdiHash
Translate a part of "atricle.md" and code comments
9f4d811
@mahdiHash
Translate a part of "article.md", change a line, fix a typo
4886902
@mahdiHash
Change a title
b389496
@mahdiHash
Translate a part of "atricle.md"
274eca9
@mahdiHash
Update article.md
fc5f40e
@mahdiHash
Update article.md
0d8a1fb
@mahdiHash
Translate a part of "article.md"
f9196be
@mahdiHash
Translate a part of "article.md" , change some lines
b584161
@mahdiHash
Translate "article.md"
d45edce
Please review and commit / comment if anything is wrong
I had trouble with translating end of the line 500, so it would be the best if you check it yourself too!
And read the translation of comments as you "see" them. Just ignore the text direction for comments or otherwise, it wouldn't look correct that way 😬
@mahdiHash
Change "key" to "کلید"
fe6c9a8
@mahdiHash
Change some lines
164e8d7
@mahdiHash
Change "key" to "کلید"
a6fcdc6
@mahdiHash
Translate the "hello-object" task
29d1a9d
@mahdiHash
Translate the "is-empty" task
e3abee1
@mahdiHash
Translate "is-empty" solution
38627f0
@mahdiHash
Translate "sum-object" task
00be958
@mahdiHash
Translate "multiply-numeric" task
4dfdd67
@mahdiHash
Translate "multiply-numeric" solution
82f5919
@javascript-translate-bot javascript-translate-bot added the review needed label May 4, 2021
@javascript-translate-bot
javascript-translate-bot requested a review from a team May 4, 2021 07:22
@javascript-translate-bot javascript-translate-bot mentioned this pull request May 4, 2021
Persian (Farsi) Translation Progress #1
Open
mahdyar
mahdyar requested changes May 4, 2021
View reviewed changes
Comment thread 1-js/04-object-basics/01-object/article.md Outdated
- ...و غیره.

They have their special features that we'll study later. Sometimes people say something like "Array type" or "Date type", but formally they are not types of their own, but belong to a single "object" data type. And they extend it in various ways.
هر کدام از آنها خصوصیات خاص خود را دارند که بعدا آنها را می‌آموزیم. بعضی اوقات افراد چیزهایی مانند "نوع Array" یا "نوع Date" را به زبان می‌آورند، اما به طور رسمی آنها نوعی از خود نیستند، و به نوع "object" تعلق دارند. و آنها این را با راه‌های مختلف گسترش می‌دهند.

@mahdyar mahdyar May 4, 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.

but formally they are not types of their own, but belong to a single "object" data type. And they extend it in various ways.

would be translated to:

اما به صورت رسمی، آن‌ها یک نوع خاص نیستند، بلکه به یک نوع «object» تعلق دارند و آن را به روش‌های مختلف گسترش می‌دهند.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 1-js/04-object-basics/01-object/article.md Outdated
```

The dot notation cannot be used in a similar way:
نقطه نمی‌تواند به این شکل استفاده شود:

@mahdyar mahdyar May 4, 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/04-object-basics/01-object/article.md Outdated
همچنین ما می‌توانستیم به جای `key` از اسمی دیگر برای متغیر استفاده کنیم. برای مثال، `"for (let prop in obj)"` هم خیلی استفاده می‌شود.

### Ordered like an object
### مرتب مثل یک شیء

@mahdyar mahdyar May 4, 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/04-object-basics/01-object/2-hello-object/task.md Outdated
# سلام شیء

Write the code, one line for each action:
کد لازم را بنویسید، برای هر عمل، یک خط:

@mahdyar mahdyar May 4, 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/04-object-basics/01-object/article.md Outdated
همانطور که از فصل <info:types> می‌دانیم، 8 نوع داده در جاوااسکریپت وجود دارد. 7 مورد "اولیه یا اصلی" نامیده می‌شوند، به این دلیل که مقدارهای آنها فقط دارای یک چیز است (رشته یا عدد یا هر چیزی).

In contrast, objects are used to store keyed collections of various data and more complex entities. In JavaScript, objects penetrate almost every aspect of the language. So we must understand them first before going in-depth anywhere else.
در مقابل، شیءها (object) برای ذخیره‌سازی مجموعه‌ای از داده‌های گوناگون و چیزهای پیچیده‌تر استفاده می‌شوند. در جاوااسکریپت، شیءها تقریبا به تمام جنبه‌های زبان نفوذ کرده‌اند. پس ما باید قبل از اینکه عمیقا به موضوع دیگری وارد شویم شیءها را بشناسیم.

@mahdyar mahdyar May 4, 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.

objects*

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 1-js/04-object-basics/01-object/article.md Outdated
![](object.svg)

An empty object ("empty cabinet") can be created using one of two syntaxes:
یک شیء خالی یا empty ("قفسه خالی") می‌تواند با استفاده از دو سینتکس ساخته شود:

@mahdyar mahdyar May 4, 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.

There is no need for the English equivalent here: empty

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 1-js/04-object-basics/01-object/article.md Outdated
Comment on lines +17 to +18
let user = new Object(); // "سینتکس "سازنده شیء
let user = {}; // "سینتکس "شیء لیترال

@mahdyar mahdyar May 4, 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.

Don't translate these two phrases and let them be as they are:
object constructor
object literal

Sorry, something went wrong.

Uh oh!

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

All reactions
@javascript-translate-bot

javascript-translate-bot commented May 4, 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 changes requested and removed review needed labels May 4, 2021
mahdiHash added 2 commits May 4, 2021 17:22
@mahdiHash
Fix some problems
8451d07
@mahdiHash
Fix a line
fb37baf
@mahdiHash

mahdiHash commented May 4, 2021

Copy link
Copy Markdown
Contributor Author

Thank you for your review @mahdyar
/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 May 4, 2021
@javascript-translate-bot
javascript-translate-bot requested a review from a team May 4, 2021 12:56
mahdyar
mahdyar approved these changes May 4, 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 @mahdiHashemi14!

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 May 4, 2021
@mahdyar
mahdyar merged commit 67250db into javascript-tutorial:master May 4, 2021
@javascript-translate-bot

javascript-translate-bot commented May 4, 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

@mahdiHash @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.