Skip to content

docs: Components In-Depth > Template refs #81

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

Conversation

ushironoko
Copy link
Collaborator

@ushironoko ushironoko commented Sep 22, 2020

@netlify
Copy link

netlify bot commented Sep 22, 2020

Deploy preview for vuejs-v3-ja-doc-preview ready!

Built with commit 054dab2

https://deploy-preview-81--vuejs-v3-ja-doc-preview.netlify.app

@ushironoko ushironoko changed the title docs: Components In-Depth > Template refs の翻訳 docs: Components In-Depth > Template refs Sep 22, 2020
Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

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

レビュー 👀 コメント 💬 しました。
対応お願いします! 🙏

@@ -1,14 +1,14 @@
# Template refs
# Template refs について
Copy link
Member

Choose a reason for hiding this comment

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

このセクションは、$refs を使ったテンプレートの参照の仕方について解説しています。
なので、以下のように訳しましょう。

Suggested change
# Template refs について
# テンプレート参照について


Despite the existence of props and events, sometimes you might still need to directly access a child component in JavaScript. To achieve this you can assign a reference ID to the child component or HTML element using the `ref` attribute. For example:
プロップやイベントが存在するにもかかわらず、 JavaScript で子コンポーネントに直接アクセスしなければならない場合があります。それを達成するために、`ref` 属性を使うことで子コンポーネントや HTML 要素に参照IDを割り当てられます。例えば、以下のようになります:
Copy link
Member

Choose a reason for hiding this comment

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

  • この文章での props は、以下のように、文章の文脈上、プロパティ と訳しましょう。
  • Vue 公式ドキュメントの翻訳はこれまでに読みやすさのために日本語文章に英単語がある場合はスペース入れてきました。なので、スペース入れていきましょう。

以下でお願いします!

Suggested change
プロップやイベントが存在するにもかかわらず、 JavaScript で子コンポーネントに直接アクセスしなければならない場合があります。それを達成するために、`ref` 属性を使うことで子コンポーネントや HTML 要素に参照IDを割り当てられます。例えば、以下のようになります:
プロパティやイベントが存在するにもかかわらず、 JavaScript で子コンポーネントに直接アクセスしなければならない場合があります。それを達成するために、`ref` 属性を使うことで子コンポーネントや HTML 要素に参照 ID を割り当てられます。例えば、以下のようになります:

:::

**See also**: [Using template refs in Composition API](/guide/composition-api-template-refs.html#template-refs)
**こちらも参照してください**: [コンポジションAPIでTemplate refsを使用する](/guide/composition-api-template-refs.html#template-refs)
Copy link
Member

Choose a reason for hiding this comment

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

これまでのレビューコメントから、以下でお願いします 🙏

Suggested change
**こちらも参照してください**: [コンポジションAPIでTemplate refsを使用する](/guide/composition-api-template-refs.html#template-refs)
**こちらも参照してください**: [コンポジション API でテンプレート参照を使用する](/guide/composition-api-template-refs.html#template-refs)

@ushironoko
Copy link
Collaborator Author

@kazupon
レビューありがとうございます。該当箇所を修正したのでご確認お願いします🙏

@kazupon
Copy link
Member

kazupon commented Sep 23, 2020

ありがとうございます!
修正確認しました!
CIでエラーが起きていますが、翻訳作業に支障はない(別事象)のため、マージします。

翻訳ありがとうございました!

@kazupon kazupon merged commit b51c5d8 into vuejs-jp:lang-ja Sep 23, 2020
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.

Components In-Depth > Template refs の翻訳
2 participants