-
Notifications
You must be signed in to change notification settings - Fork 87
docs: translate api > sfc script setup #603
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
* lang-ja: update component-slots.md (#1342) update component-provide-inject.md (#1343) Update sfc-script-setup.md (#1345) fix: fixed a broken link docs(installation): link to cli.vuejs.org and vitejs.dev (#1340) update component-props.md (#1336) Fix Black Friday banner close button (#1333) Add Vue School Black Friday 21 banners (#1330) fix: some markdown style
@@ -216,58 +216,58 @@ const attrs = useAttrs() | |||
</script> | |||
``` | |||
|
|||
`useSlots` and `useAttrs` are actual runtime functions that return the equivalent of `setupContext.slots` and `setupContext.attrs`. They can be used in normal composition API functions as well. | |||
`useSlots` と `useAttrs` は、`setupContext.slots` と `setupContext.attrs` と同等のものを返す実際のランタイム関数です。これらは通常の Composition API の関数内でも使用できます。 |
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.
runtime は前半に合わせて「実行時」としていますが、この部分だけは分かりづらくなってしまったのでカタカナにしています
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.
ここでは「実行時の~」というより「runtime functions」という複合語として扱っていい思います 👍🏼
✔️ Deploy Preview for vuejs-v3-ja-doc-preview ready! 🔨 Explore the source changes: 3a644f4 🔍 Inspect the deploy log: https://app.netlify.com/sites/vuejs-v3-ja-doc-preview/deploys/61ab7b69f5dffe00075e0931 😎 Browse the preview: https://deploy-preview-603--vuejs-v3-ja-doc-preview.netlify.app |
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.
前半部分は自分がやったので、後半部分の担当していただいた分に関しては LGTM です!
ドキュメント提供することを優先して、マージしてしまいます。 |
Description of Problem
API リファレンスの「Single File Components > <script setup>」を翻訳します。
https://v3.ja.vuejs.org/api/sfc-script-setup.html
Proposed Solution
Additional Information
#591 の残り部分を自分が対応しました