-
Notifications
You must be signed in to change notification settings - Fork 87
Guide > Data Properties and Methods の翻訳 #268
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
Deploy preview for vuejs-v3-ja-doc-preview ready! Built with commit 2205b06 https://deploy-preview-268--vuejs-v3-ja-doc-preview.netlify.app |
|
||
テンプレートから呼び出されたメソッドは、データの変更や非同期処理の発火などの副作用があってはなりません。もしそのようなことをしたくなったら、代わりに [ライフサイクルフック](instance.html#lifecycle-hooks) を使うべきです。 | ||
|
||
### Debounce (デバウンス) と Throttle (スロットル) |
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.
debounce も throttle も、カタカナ表記にしていることさえ、あまりなさそうですが…
見出しで並列表記しておきつつ、本文中ではカタカナにしてみました。
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.
おおいいですね! 👍
このケースのように、英語をベースに括弧付でカタカナを表記する場合は、以降では英語でいいと思います。ここで読者は読み方が分かって、以降は読めると思うので。
|
||
上の例では、 `<button>` がクリックされると、 `increment` メソッドが呼ばれます。 | ||
|
||
また、テンプレートから直接メソッドを呼び出すこともできます。後で説明しますが、通常は変わりに [算出プロパティ](computed.html) を使うのがよいです。しかし、メソッドを使うことは算出プロパティが実行可能なオプションではない場合に役に立ちます。テンプレートが JavaScript の式をサポートしていれば、どこでもメソッドを呼び出すことができます: |
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.
computed properties aren't a viable option
いまいち伝わりづらい感じですが、直訳するしかできなかったです。
自分が技術的に通じてないだけかもしれませんが。
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/guide/data-methods.md
Outdated
|
||
これらのインスタンスプロパティは、インスタンスの初回作成時にのみ追加されます。そのため、 `data` 関数から返されたオブジェクトに、それらがすべて含まれていることを確認する必要があります。必要に応じて、必要な値がまだ利用できないプロパティには、 `null` や `undefined` 、またはその他のプレースホルダーの値を使ってください。 | ||
|
||
新しいプロパティを `data` に含めずに、コンポーネントのインスタンスに直接追加することはできます。しかし、このプロパティはリアクティブな `$data` オブジェクトによって裏付けされていないので、 [Vue のリアクティブシステム](reactivity.html) によって、自動的に追跡されることはありません。 |
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.
backed by
の訳ですが、ここでは 支援する
的な意味合いを持ったものだ思います。なので、以下な感じになると思います。
新しいプロパティを `data` に含めずに、コンポーネントのインスタンスに直接追加することはできます。しかし、このプロパティはリアクティブな `$data` オブジェクトによって裏付けされていないので、 [Vue のリアクティブシステム](reactivity.html) によって、自動的に追跡されることはありません。 | |
新しいプロパティを `data` に含めずに、コンポーネントのインスタンスに直接追加することはできます。しかし、このプロパティはリアクティブな `$data` オブジェクトによって支援されていないので、 [Vue のリアクティブシステム](reactivity.html) によって、自動的に追跡されることはありません。 |
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.
そうですね。大きく2つの訳があって「裏付けされている」か「支持されている」のどちらか悩みました。
後者の訳にして「支えられている」ぐらいの簡単な日本語にしますね。
|
||
テンプレートから呼び出されたメソッドは、データの変更や非同期処理の発火などの副作用があってはなりません。もしそのようなことをしたくなったら、代わりに [ライフサイクルフック](instance.html#lifecycle-hooks) を使うべきです。 | ||
|
||
### Debounce (デバウンス) と Throttle (スロットル) |
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.
おおいいですね! 👍
このケースのように、英語をベースに括弧付でカタカナを表記する場合は、以降では英語でいいと思います。ここで読者は読み方が分かって、以降は読めると思うので。
Co-authored-by: kazuya kawaguchi <[email protected]>
レビューポイントの反映しました。 |
確認しました!ありがとうございます! |
Description of Problem
Guide > Data Properties and Methods の翻訳を追加しました。
https://v3.vuejs.org/guide/data-methods.html
https://github.com/vuejs/docs-next/blob/master/src/guide/data-methods.md
Proposed Solution
対象ファイルが存在しなかったため、新規の作成です。
Additional Information