Skip to content

Guide > Components In-Depth > Slots の翻訳を追従 #293

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 8 commits into from
Apr 30, 2021
Merged

Guide > Components In-Depth > Slots の翻訳を追従 #293

merged 8 commits into from
Apr 30, 2021

Conversation

@@ -222,7 +221,8 @@ Vue には [Web Components spec draft](https://github.com/w3c/webcomponents/blob
</footer>
</div>
```
**`v-slot` は([一つの例外](#デフォルトスロットしかない場合の省略記法) を除き) `<template>` にしか指定できないことに注意してください。

**`v-slot` は([一つの例外](#デフォルトスロットしかない場合の省略記法) を除き) `<template>` にしか指定できないことに注意してください。
Copy link
Member Author

Choose a reason for hiding this comment

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

「デフォルトスロット」の「デ」に差分があってページ内リンクが動作してなかったため修正しました。

@netlify
Copy link

netlify bot commented Apr 29, 2021

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

Built with commit f091edc

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

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.

レビューしました。
確認お願いします!

@@ -247,8 +247,7 @@ app.component('todo-list', {
})
```

親コンポーネントでこれをカスタマイズするために、スロットに交換してもよいでしょう:

親コンポーネントでこれをカスタマイズするために、<span v-pre>`{{ item }}`</span> を `<slot>` に置き換えたい場合があります:
Copy link
Member

Choose a reason for hiding this comment

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

原文ですが、

We might want to replace the {{ item }} with a <slot> to customize it on parent component:

となっていて、<span v-pre></span> はいらないと思います。

https://v3.vuejs.org/guide/component-slots.html#scoped-slots

Copy link
Member Author

@naokie naokie Apr 30, 2021

Choose a reason for hiding this comment

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

vuejs/docs#799

ここで問題になっていた下図の現象、日本語訳でも起きちゃうんですよね。

image

image

原文はこちらです。

https://github.com/vuejs/docs-next/blob/master/src/guide/component-slots.md#L250

VuePress の hack のようなものなのですが、そのまま取り込もうと思います。

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
Member

Choose a reason for hiding this comment

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

原文と同じく、取り込みましょう!

@naokie
Copy link
Member Author

naokie commented Apr 30, 2021

レビューいただいた箇所、コメントお返ししたので再レビューお願いします。

@kazupon kazupon merged commit a25a888 into vuejs-jp:lang-ja Apr 30, 2021
@naokie naokie deleted the guide/component-slots branch April 30, 2021 15:49
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.

2 participants