Skip to content

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

Merged
merged 3 commits into from
Dec 16, 2021

Conversation

jay-es
Copy link
Member

@jay-es jay-es commented Dec 4, 2021

Description of Problem

API リファレンスの「Single File Components > <script setup>」を翻訳します。
https://v3.ja.vuejs.org/api/sfc-script-setup.html

Proposed Solution

Additional Information

#591 の残り部分を自分が対応しました

naokie and others added 3 commits November 26, 2021 21:37
* 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 の関数内でも使用できます。
Copy link
Member Author

@jay-es jay-es Dec 4, 2021

Choose a reason for hiding this comment

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

runtime は前半に合わせて「実行時」としていますが、この部分だけは分かりづらくなってしまったのでカタカナにしています

Copy link
Member

Choose a reason for hiding this comment

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

ここでは「実行時の~」というより「runtime functions」という複合語として扱っていい思います 👍🏼

@netlify
Copy link

netlify bot commented Dec 4, 2021

✔️ 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

Copy link
Member

@naokie naokie left a comment

Choose a reason for hiding this comment

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

前半部分は自分がやったので、後半部分の担当していただいた分に関しては LGTM です!

@naokie
Copy link
Member

naokie commented Dec 16, 2021

ドキュメント提供することを優先して、マージしてしまいます。
今後指摘があれば Issue なり PR を立ててください。

@naokie naokie merged commit fae4ba6 into vuejs-jp:lang-ja Dec 16, 2021
@naokie naokie mentioned this pull request Dec 16, 2021
7 tasks
@jay-es jay-es deleted the api/sfc-script-setup branch December 16, 2021 09:55
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