Skip to content

docs: translate api > sfc script setup #591

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

Closed
wants to merge 2 commits into from

Conversation

naokie
Copy link
Member

@naokie naokie commented Nov 26, 2021

Description of Problem

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

Proposed Solution

Additional Information

@pr-triage pr-triage bot added the PR: draft label Nov 26, 2021
@netlify
Copy link

netlify bot commented Nov 26, 2021

✔️ Deploy Preview for vuejs-v3-ja-doc-preview ready!

🔨 Explore the source changes: 5b6d3ac

🔍 Inspect the deploy log: https://app.netlify.com/sites/vuejs-v3-ja-doc-preview/deploys/61a11d44b8ff390007615d7d

😎 Browse the preview: https://deploy-preview-591--vuejs-v3-ja-doc-preview.netlify.app


But there's one restriction to be aware of: You must name local custom directives according to the following schema: `vNameOfDirective` in order for them to be directly usable in the template.
しかし、注意する制限が 1 つあります: ローカルのカスタムディレクティブ名は、以下のスキーマに従わなければなりません: `vNameOfDirective` はテンプレート内で直接使用できるようにするためのものです。
Copy link
Member Author

Choose a reason for hiding this comment

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

ここの書き方が独特なものがあって、1文ずつハメていったのですが違和感あるかもしれません。

Copy link
Member

Choose a reason for hiding this comment

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

2つ案を考えてみましたがいかがでしょうか。

a. 直訳(後ろから順に)

しかし、注意する制限が 1 つあります: テンプレート内で直接使用できるようにするためには、次のスキーマ: vNameOfDirective に従ってローカルのカスタムディレクティブに名前をつける必要があります。

b. ↑ を少し並べ替え

しかし、注意する制限が 1 つあります: ローカルのカスタムディレクティブをテンプレート内で直接使用できるようにするためには、以下のスキーマに従って名前をつける必要があります: vNameOfDirective

Copy link
Member Author

Choose a reason for hiding this comment

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

b. が自然でいいですね

@naokie naokie mentioned this pull request Nov 26, 2021
7 tasks
* 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
@jay-es
Copy link
Member

jay-es commented Dec 3, 2021

@naokie
naokie:api/sfc-script-setup のブランチをローカルに取り込んで残りの作業をしていたのですが、さすがにプッシュは出来なかったので、自分のリポジトリから別PRを作ってしまって大丈夫でしょうか?
lang-ja...jay-es:api/sfc-script-setup

@naokie
Copy link
Member Author

naokie commented Dec 3, 2021

@jay-es
もちろんです!よろしくお願いします 🙏🏼

@naokie naokie closed this Dec 4, 2021
@naokie naokie deleted the api/sfc-script-setup branch December 4, 2021 16:33
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