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 — Mutation observer by AdriandeCita · Pull Request #372 · javascript-tutorial/uk.javascript.info

Conversation

@AdriandeCita

@AdriandeCita AdriandeCita commented Jul 17, 2022

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
@AdriandeCita
translation: mutation observer
a94f907
@javascript-translate-bot javascript-translate-bot added the review needed label Jul 17, 2022
@AdriandeCita

AdriandeCita commented Jul 17, 2022

Copy link
Copy Markdown
Contributor Author

Згадав, що у вас тут було прийнято замість апострофа використовували одинарну праву лапку. Це досі актуально, чи мій "стандартний" апостроф теж згодиться?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dolgachio

dolgachio commented Jul 19, 2022

Copy link
Copy Markdown
Collaborator

@AdriandeCita дякую за переклад, стандартний апостроф підійде :) Дивлюся :)

AdriandeCita reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

dolgachio
dolgachio requested changes Jul 19, 2022
View reviewed changes

@dolgachio dolgachio left a comment

Copy link
Copy Markdown
Collaborator

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 2-ui/99-ui-misc/01-mutation-observer/article.md
# Mutation Observer (спостерігач за мутаціями)

`MutationObserver` is a built-in object that observes a DOM element and fires a callback when it detects a change.
`MutationObserver` -- це вбудований об'єкт, який спостерігає за елементом DOM і викликає функцію зворотного виклику кожного разу, коли він помічає зміну.

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
`MutationObserver` -- це вбудований об'єкт, який спостерігає за елементом DOM і викликає функцію зворотного виклику кожного разу, коли він помічає зміну.
`MutationObserver` -- це вбудований об’єкт, який спостерігає за елементом DOM і викликає функцію зворотного виклику кожного разу, коли він помічає зміну.

Sorry, something went wrong.

Uh oh!

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

All reactions

@AdriandeCita AdriandeCita Jul 23, 2022

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.

FYI, ви пропонуєте замінити стандартний апостроф на символ правої одинарної лапки.
' - https://unicode-table.com/en/0027/
’ - https://unicode-table.com/en/2019/

Загалом я не проти, просто це виглядає дивним

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md
- `attributes` -- attributes of `node`,
- `attributeFilter` -- an array of attribute names, to observe only selected ones.
- `characterData` -- whether to observe `node.data` (text content),
`config` -- це об'єкт із булевими опціями, які вказують "на якого роду зміни слід реагувати":

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
`config` -- це об'єкт із булевими опціями, які вказують "на якого роду зміни слід реагувати":
`config` -- це об’єкт із булевими опціями, які вказують "на якого роду зміни слід реагувати":

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md
- `characterDataOldValue` -- якщо дорівнює `true` -- до функції зворотного виклику буде передано і нове, і старе значення `node.data` (дивіться нижче), а інакше передаватиме лише нове значення (потребує вказаної опції `characterData`).

Then after any changes, the `callback` is executed: changes are passed in the first argument as a list of [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) objects, and the observer itself as the second argument.
Далі після будь-яких змін виконується `callback`: зміни передаються першим аргументом у вигляді списку об'єктів типу [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord), а другим аргументом передається сам спостерігач.

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
Далі після будь-яких змін виконується `callback`: зміни передаються першим аргументом у вигляді списку об'єктів типу [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord), а другим аргументом передається сам спостерігач.
Далі після будь-яких змін виконується `callback`: зміни передаються першим аргументом у вигляді списку об’єктів типу [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord), а другим аргументом передається сам спостерігач.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md
Далі після будь-яких змін виконується `callback`: зміни передаються першим аргументом у вигляді списку об'єктів типу [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord), а другим аргументом передається сам спостерігач.

[MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) objects have properties:
Об'єкти [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) містять такі властивості:

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
Об'єкти [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) містять такі властивості:
Об’єкти [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) містять такі властивості:

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md
- `target` -- де саме відбулася зміна: для `"attributes"` це елемент, або текстовий вузол у випадку `"characterData"`, або елемент для мутації типу `"childList"`,
- `addedNodes/removedNodes` -- вузли, які було додано/прибрано,
- `previousSibling/nextSibling` -- відповідно попередній та наступний елемент відносно доданих/прибраних вузлів,
- `attributeName/attributeNamespace` -- ім'я/простір імен (для XML) зміненого атрибута,

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
- `attributeName/attributeNamespace` -- ім'я/простір імен (для XML) зміненого атрибута,
- `attributeName/attributeNamespace` -- ім’я/простір імен (для XML) зміненого атрибута,

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md
Ось робочий приклад.

If you run this code, it starts observing the element below and highlighting any code snippets that appear there:
Якщо ви запустите цей код, він почне спостерігати за наведеним нижче елементом, і підсвічувати будь який фрагмент коду, який з'являтиметься там:

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
Якщо ви запустите цей код, він почне спостерігати за наведеним нижче елементом, і підсвічувати будь який фрагмент коду, який з'являтиметься там:
Якщо ви запустите цей код, він почне спостерігати за наведеним нижче елементом, і підсвічувати будь який фрагмент коду, який з’являтиметься там:

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md Resolved

Uh oh!

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

Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md Resolved

Uh oh!

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

Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md
// should be called before disconnecting,
// if you care about possibly unhandled recent mutations
// отримання переліку необроблених мутацій
// повинно викликатись перед роз'єднанням,

@dolgachio dolgachio Jul 19, 2022

Copy link
Copy Markdown
Collaborator

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.

Suggested change
// повинно викликатись перед роз'єднанням,
// повинно викликатись перед роз’єднанням,

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread 2-ui/99-ui-misc/01-mutation-observer/article.md Resolved

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 Jul 19, 2022
@javascript-translate-bot

javascript-translate-bot commented Jul 19, 2022

Copy link
Copy Markdown
Contributor

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.

@AdriandeCita @dolgachio
chore: apply suggestions from code review
a9795c8
Co-authored-by: Stanislav <[email protected]>
@AdriandeCita

AdriandeCita commented Jul 23, 2022

Copy link
Copy Markdown
Contributor Author

@stas-dolgachov прийняв усі зауваження, окрім лапок. Стосовно них я залишив коментар вище 🙂

All reactions

Sorry, something went wrong.

Uh oh!

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

dolgachio
dolgachio approved these changes Aug 4, 2022
View reviewed changes
@javascript-translate-bot javascript-translate-bot added needs +1 and removed changes requested labels Aug 4, 2022
@dolgachio

dolgachio commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

Згоден, щодо апострофу. Думаю, ми спробуємо найближчим часом привести все до ладу у цьому питанні якось автоматично :) Дякую, за ваш внесок!

AdriandeCita reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

dolgachio
dolgachio approved these changes Aug 4, 2022
View reviewed changes
@dolgachio

dolgachio commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

#1

All reactions

Sorry, something went wrong.

Uh oh!

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

@dolgachio dolgachio changed the title translation: mutation observer Mutation observer Aug 4, 2022
@dolgachio

dolgachio commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

Mutation observer

All reactions

Sorry, something went wrong.

Uh oh!

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

@dolgachio
dolgachio merged commit ddba596 into javascript-tutorial:master Aug 4, 2022
@javascript-translate-bot javascript-translate-bot mentioned this pull request Aug 4, 2022
Ukrainian Translation Progress #1
Open
@javascript-translate-bot

javascript-translate-bot commented Aug 4, 2022

Copy link
Copy Markdown
Contributor

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

@dolgachio dolgachio dolgachio 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

@AdriandeCita @dolgachio @javascript-translate-bot
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.