-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
src/v2/guide/computed.md
Outdated
|
||
<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> |
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 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.
++
src/v2/guide/computed.md
Outdated
type: guide | ||
order: 5 | ||
--- | ||
|
||
## Computed Properties | ||
## Обчислені поля |
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.
Варто зауважити, що "поля" звично перекладаються з слова fields. Хоч це є синонімом в даному контексті, але я б лишив таки як Обчислювані властивості. Обчислені — це вже доконана дія, тобто більше обчислювання не очікується. Обчислювані — тому що вони постійно обчислюються при змінах в реактивних змінних, від яких вони залежать.
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.
++
src/v2/guide/computed.md
Outdated
|
||
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` змінюється. І найкраще це те, що ми створили це відношення залежності декларативно: обчислена функція читач не має побічних впливів, що робить її тестування і розуміння простішими. |
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 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.
"функція-читач" замінив на "отримувач" для консистентності з наступним текстом
|
||
``` js | ||
// ... | ||
computed: { | ||
fullName: { | ||
// getter | ||
// отримувач |
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.
Вище у Вашому перекладі setter
було перекладено як "читач". Думаю, варто дотримуватися єдиної термінології. Як на мене, обидва "читач" та "отримувач" доводять думку до користувача. В парі з "задавач" слово "отримувач" звучить більш доцільно. На мою думку, варто "функцію-читач" перекласти теж як "функція-отримувач".
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.
++
src/v2/guide/computed.md
Outdated
@@ -214,20 +213,20 @@ var watchExampleVM = new Vue({ | |||
answer: 'I cannot give you an answer until you ask a question!' |
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 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.
++
@ValeriiMal Great job, thank you!!! Please check the comments when you have a minute. |
@matrunchyk |
Дякую, @ValeriiMal! |
@ValeriiMal чи працюватимете над Класами та стилями надалі? |
@matrunchyk добре. Будь ласка створіть таску в репозиторії з посиланням на конкретний файл для перекладу. Швидкість виконання не гарантую |
Будь ласка, призначіть себе на цю таску: #7 |
Hello
@matrunchyk please take a look and comment about changes you want to bring there