Skip to content

Translate Strict Mode - #6

Closed
GasimGasimzada wants to merge 2 commits into
masterfrom
translate-strict-mode
Closed

Translate Strict Mode#6
GasimGasimzada wants to merge 2 commits into
masterfrom
translate-strict-mode

Conversation

@GasimGasimzada

Copy link
Copy Markdown
Contributor
  • Introduction
  • "use strict"
  • Browser Console
  • Always "use strict"

@javascript-translate-bot
javascript-translate-bot requested a review from a team February 14, 2020 09:49
@GasimGasimzada GasimGasimzada changed the title Translate Strict Mode [WIP] Translate Strict Mode Feb 14, 2020
@GasimGasimzada

GasimGasimzada commented Feb 14, 2020

Copy link
Copy Markdown
Contributor Author

[WIP] (Work in Progress) in the header means that I am still working on it. I suggest that you review these changes after I remove that "tag."

EDIT: It is ready to be reviewed

@GasimGasimzada GasimGasimzada changed the title [WIP] Translate Strict Mode Translate Strict Mode Feb 14, 2020
# "use strict" modern rejimi

Uzun zaman JavaScript heç bir uyğunluq olmadan inkişaf etdi. Dilə yeni xüsusiyyətlər əlavə olunur, köhnə xüsusiyyətlər isə dəyişmirdi.
Uzun zaman JavaScript heç bir uyğunluq problemi olmadan inkişaf etdirdi. Dilə yeni xüsusiyyətlər əlavə olunur, köhnə xüsusiyyətlər isə dəyişmirdi.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etdirildi* ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dəyişilmirdi* ?

Bunun mövcud kodu sındırmaması faydası var idi. Lakin, bu, JavaScript yaradıcıları tərəfindən verilən hər bir mükəmməl olmayan qərarın dildə ömürlük qalmasına səbəb olurdu.

2009-cu ildə ECMAScript 5 (ES5) dərc olunana kimi bu problem aktual idi. Bu versiyada dilə yeni xüsusiyyətlər əlavə olunmaqdan əlavə, bəzi mövcud xüsusiyyətlər də dəyişdirildi. Köhnə kodun işləməsi üçün bu dəyişikliklərin çoxu standart formada söndürülüb. Bu xüsusiyyətləri aktivləşdirmək üçün `"use strict"` xüsusi direktivini əlavə etmək lazımdır.
2009-cu ildə ECMAScript 5 (ES5) dərc olunana kimi bu problem aktual idi. Lakin, bu versiyadan başlayaraq dilə yeni xüsusiyyətlər əlavə olunmaqdan əlavə, bəzi mövcud xüsusiyyətlər də dəyişdirildi. Köhnə kodun işləməsi üçün bu dəyişikliklərin çoxu standart rejimində söndürülüb. Bu xüsusiyyətləri aktivləşdirmək üçün `"use strict"` xüsusi direktivini əlavə etmək lazımdır.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rejimdə* ?

javascript-translate-bot pushed a commit that referenced this pull request Mar 24, 2020
```js no-strict
alert("some code");
// "use strict" below is ignored--it must be at the top
alert("bəzi kod");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"hər hansı kod"

```

Only comments may appear above `"use strict"`.
`"use strict"`-dən öncə yalnız kommentlər əlavə oluna bilər.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

öncə yalnız "şəhrlər" əlavə oluna bilər

## Brauzer konsolu

For the future, when you use a browser console to test features, please note that it doesn't `use strict` by default.
Gələcəkdə, xüsusiyyətləri yoxlamaq üçün brauzer konsolundan istifadə etikdə nəzərə alın ki, `use strict` direktivini əl ilə aktivləşdirmək lazımdır.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

istifadə "etdikdə" nəzərə alın ki,

Bu, Firefox və Chrome daxil olmaqla əksər brauzerlərdə işləyir.

If it doesn't, the most reliable way to ensure `use strict` would be to input the code into console like this:
Əgər brauzer konsolunda birdən çox sətir ələvə etmək mümkün deyilsə, `use strict` ifadəsinin işləməsindən əmin olmaq üçün konsola aşağıdakı formalı kodu bilərsiniz:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ifadəsinin işləməsindən əmin olmaq üçün konsola aşağıdakı formalı kodu " daxil edə" bilərsiniz:

## "use strict"-dən həmişə istifadə edin

We have yet to cover the differences between strict mode and the "default" mode.
Biz, hələ ki, strikt və "standart" rejiminin fərqlərindən danışmamışıq.

@azizaismayilova azizaismayilova Jul 21, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Biz hələki - you do not use a comma

Biz, hələ ki, strikt və "standart" rejiminin fərqlərindən danışmamışıq.

In the next chapters, as we learn language features, we'll note the differences between the strict and default modes. Luckily, there aren't many and they actually make our lives better.
Gələcək səhifələrdə dilin xüsusiyyətlərindən danışdığımız zaman strikt və standart rejimlərinin fərqlərini qeyd edəcəyik. Xoşbəxtlikdən, bu fərqlər çox deyil və olan fərqlər birim işimizi rahatlaşdırır.

@azizaismayilova azizaismayilova Jul 21, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Xoşbəxtlikdən (without comma)" bu fərqlər çox deyil və olan fərqlər "bizim" işimizi rahatlaşdırır.

@edevsh

edevsh commented Jan 13, 2025

Copy link
Copy Markdown
Member

I have already completed the translation (#203), I am closing this PR.

@edevsh edevsh closed this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants