Skip to content

computed.md translation #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 18, 2020
Merged

computed.md translation #5

merged 7 commits into from
Aug 18, 2020

Conversation

ValeriiMal
Copy link

@ValeriiMal ValeriiMal commented Aug 17, 2020

Hello

@matrunchyk please take a look and comment about changes you want to bring there


<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-computed-properties?friend=vuejs" target="_blank" rel="sponsored noopener" title="Learn how computed properties work with Vue School">Learn how computed properties work with a free lesson on Vue School</a></div>
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-computed-properties?friend=vuejs" target="_blank" rel="sponsored noopener" title="Вивчи, як обчислені поля працюють з Vue School">Вивчи, як обчислені поля працюють на безкоштовних уроках Vue School</a></div>
Copy link
Member

Choose a reason for hiding this comment

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

Звертання на "ви" зараз вжито у інших сторінках даного перекладу. Думаю, добре було б так вживати скрізь заради консистентності.

Copy link
Author

Choose a reason for hiding this comment

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

++

type: guide
order: 5
---

## Computed Properties
## Обчислені поля
Copy link
Member

Choose a reason for hiding this comment

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

Варто зауважити, що "поля" звично перекладаються з слова fields. Хоч це є синонімом в даному контексті, але я б лишив таки як Обчислювані властивості. Обчислені — це вже доконана дія, тобто більше обчислювання не очікується. Обчислювані — тому що вони постійно обчислюються при змінах в реактивних змінних, від яких вони залежать.

Copy link
Author

Choose a reason for hiding this comment

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

++


You can data-bind to computed properties in templates just like a normal property. Vue is aware that `vm.reversedMessage` depends on `vm.message`, so it will update any bindings that depend on `vm.reversedMessage` when `vm.message` changes. And the best part is that we've created this dependency relationship declaratively: the computed getter function has no side effects, which makes it easier to test and understand.
Ви можете прив'язатися до обчислених полів в шаблонах так само як до звичайного поля. Vue відомо, що `vm.reversedMessage` залежить від `vm.message`, тому буде оновлено кожна прив'язка, яка залежить від `vm.reversedMessage`, коли `vm.message` змінюється. І найкраще це те, що ми створили це відношення залежності декларативно: обчислена функція читач не має побічних впливів, що робить її тестування і розуміння простішими.
Copy link
Member

Choose a reason for hiding this comment

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

оновлено → оновлена
функція читач → функція-читач

Copy link
Author

Choose a reason for hiding this comment

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

"функція-читач" замінив на "отримувач" для консистентності з наступним текстом


``` js
// ...
computed: {
fullName: {
// getter
// отримувач
Copy link
Member

Choose a reason for hiding this comment

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

Вище у Вашому перекладі setter було перекладено як "читач". Думаю, варто дотримуватися єдиної термінології. Як на мене, обидва "читач" та "отримувач" доводять думку до користувача. В парі з "задавач" слово "отримувач" звучить більш доцільно. На мою думку, варто "функцію-читач" перекласти теж як "функція-отримувач".

Copy link
Author

Choose a reason for hiding this comment

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

++

@@ -214,20 +213,20 @@ var watchExampleVM = new Vue({
answer: 'I cannot give you an answer until you ask a question!'
Copy link
Member

Choose a reason for hiding this comment

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

Хіба не варто перекладати дані рядки в прикладах теж? Це б їх зробило більше ближчими для користувача.

Copy link
Author

Choose a reason for hiding this comment

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

++

@matrunchyk
Copy link
Member

@ValeriiMal Great job, thank you!!! Please check the comments when you have a minute.

@ValeriiMal ValeriiMal requested a review from matrunchyk August 18, 2020 07:41
@ValeriiMal
Copy link
Author

@matrunchyk
Повиправляв ніби все

@matrunchyk matrunchyk merged commit c7dc99b into vuejs-ua:master Aug 18, 2020
@matrunchyk
Copy link
Member

Дякую, @ValeriiMal!
Результат: https://vuejs.org.ua/v2/guide/computed.html

@matrunchyk
Copy link
Member

@ValeriiMal чи працюватимете над Класами та стилями надалі?

@ValeriiMal
Copy link
Author

@matrunchyk добре. Будь ласка створіть таску в репозиторії з посиланням на конкретний файл для перекладу. Швидкість виконання не гарантую

@matrunchyk
Copy link
Member

Будь ласка, призначіть себе на цю таску: #7
Я чомусь не можу цього зробити. Дякую.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants