Skip to content

docs: translation Reusability & Composition > Plugins #78

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 2 commits into from
Sep 22, 2020

Conversation

an-0305
Copy link
Contributor

@an-0305 an-0305 commented Sep 22, 2020

Reusability & Composition > Plugins の翻訳
resolve #29

@netlify
Copy link

netlify bot commented Sep 22, 2020

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

Built with commit c816e3c

https://deploy-preview-78--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.

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


Plugins are self-contained code that usually add global-level functionality to Vue. It is either an `object` that exposes an `install()` method, or a `function`.
大抵の場合、プラグインはVueにグローバルレベルでの機能を追加するコードで、`install()` メソッドを公開する `object` または `function` です。
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
大抵の場合、プラグインはVueにグローバルレベルでの機能を追加するコードで`install()` メソッドを公開する `object` または `function` です。
大抵の場合、プラグインは Vue にグローバルレベルでの機能を追加するコードで`install()` メソッドを公開する `object` または `function` です。


In order to better understand how to create your own Vue.js plugins, we will create a very simplified version of a plugin that displays `i18n` ready strings.
独自のVue.jsプラグインの作り方をより理解しやすくするために、`i18n` に対応した文字列を表示するシンプルなバージョンのプラグインを用意しました。
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
独自のVue.jsプラグインの作り方をより理解しやすくするために`i18n` に対応した文字列を表示するシンプルなバージョンのプラグインを用意しました。
独自の Vue.js プラグインの作り方をより理解しやすくするために`i18n` に対応した文字列を表示するシンプルなバージョンのプラグインを用意しました。


Additionally, since we have access to the `app` object, all other capabilities like using `mixin` and `directive` are available to the plugin. To learn more about `createApp` and the application instance, check out the [Application API documentation](/api/application-api.html).
さらに、`app` オブジェクトにアクセスできるため、`mixin` `directive` など、他のすべての機能をプラグインで利用できます。`createApp` とアプリケーションインスタンスについて更に詳しく学ぶには、[Application API documentation](/api/application-api.html) をチェックしてください。
Copy link
Member

Choose a reason for hiding this comment

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

Application API documentation は以下でお願いします。

Suggested change
さらに、`app` オブジェクトにアクセスできるため、`mixin``directive` など、他のすべての機能をプラグインで利用できます。`createApp` とアプリケーションインスタンスについて更に詳しく学ぶには、[Application API documentation](/api/application-api.html) をチェックしてください。
さらに、`app` オブジェクトにアクセスできるため、`mixin``directive` など、他のすべての機能をプラグインで利用できます。`createApp` とアプリケーションインスタンスについて更に詳しく学ぶには、[アプリケーション API ドキュメント](/api/application-api.html) をチェックしてください。

@an-0305
Copy link
Contributor Author

an-0305 commented Sep 22, 2020

@kazupon
レビューありがとうございます!
ご指摘いただいた箇所を修正したので、ご確認よろしくおねがいします!

@an-0305 an-0305 requested a review from kazupon September 22, 2020 22:52
@kazupon
Copy link
Member

kazupon commented Sep 22, 2020

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

@kazupon kazupon merged commit 1dcadd4 into vuejs-jp:lang-ja Sep 22, 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.

Reusability & Composition > Plugins の翻訳
2 participants