-
Notifications
You must be signed in to change notification settings - Fork 229
v2.2アップデートにおけるsrc/v2/api/index.mdの変更の翻訳 #230
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
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[WIP]Translate/v2.2/index (#1)
* 文の区切りがおかしいので修正 * 前置詞のニュアンスを変更 * timelineの訳抜け修正、performance tracingをenableする感じを出した * 誤字修正 * エラー内容 -> エラーに変更。particularlyの訳抜け修正
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,14 +72,14 @@ type: api | |
``` js | ||
Vue.config.errorHandler = function (err, vm, type) { | ||
// エラー処理 | ||
// `type` は Vue 固有のエラー種別です。(例: どのライフサイクルフックかなど) | ||
// このエラーを見つけることができるのは、 2.2.0 以降となります。 | ||
// `type` は Vue 固有のエラー種別です(例: どのライフサイクルフックでエラーが起きたかなど)。 | ||
// 2.2.0 以降で使用できます。 | ||
} | ||
``` | ||
|
||
コンポーネントの描画関数とウォッチャにおいて未捕獲のエラーに対してハンドラを割り当てます。ハンドラはエラーと Vue インスタンスが引数に渡されて呼び出されます。 | ||
|
||
> 2.2.0 では、このフックは、コンポーネントのライフサイクルフックに関するエラーも捉えます。また、このフックが `undefined` である場合、捕捉されたエラーは、アプリケーションをクラッシュさせずに、代わりに `console.error` として記録されます。 | ||
> 2.2.0 では、このフックは、コンポーネントのライフサイクルフック中のエラーも捉えます。また、このフックが `undefined` である場合、捕捉されたエラーは、アプリケーションをクラッシュさせずに、代わりに `console.error` を用いて記録さ 8000 ます。 | ||
|
||
> このオプションのを使用して、[Sentry](https://sentry.io) というエラー追跡サービスを[公式に統合](https://sentry.io/for/vue/)ために使用します。 | ||
|
||
|
@@ -129,7 +129,7 @@ type: api | |
|
||
- **使用方法**: | ||
|
||
これを `true` に設定することで、コンポーネントの初期化やコンパイル、レンダリングや、パッチのパフォーマンスなどを、ブラウザ上の開発者ツールにてトレースすることが可能となります。 この機能は、開発者モードおよび [performance.mark](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark) APIをサポートするブラウザでのみ動作します。 | ||
これを `true` に設定することで、ブラウザの開発者ツールのタイムライン機能で、コンポーネントの初期化やコンパイル、描画、パッチのパフォーマンス追跡することが可能になります。 この機能は、開発者モードおよび [performance.mark](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark) APIをサポートするブラウザでのみ動作します。 | ||
|
||
### productionTip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ここのタイトルも訳しましょう! |
||
|
||
|
@@ -645,15 +645,15 @@ type: api | |
|
||
### renderError | ||
|
||
> 2.2.0 からの進行 | ||
> 2.2.0 からの新機能 | ||
|
||
- **型:** `(createElement: () => VNode, error: Error) => VNode` | ||
|
||
- **詳細:** | ||
|
||
**development モードでのみ動作します。** | ||
|
||
デフォルトの `render` 関数にてエラーが発生した際に、代替となる描画結果を提供します。この際、エラー内容は `renderError` へ、第二引数として渡されます。この機能は、ホットリロードなどと併用する場合に重宝します。 | ||
デフォルトの `render` 関数にてエラーが発生した際に、代替となる描画結果を提供します。この際、エラーは `renderError` へ、第二引数として渡されます。この機能は、特にホットリロードなどと併用する場合に重宝します。 | ||
|
||
- **例:** | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
(細かいんですが)「おいて」「に対して」と「て」が続き、少し読みづらく感じました。
コンポーネントの描画関数とウォッチャにおいて未捕獲のエラーに対し、ハンドラを割り当てます。
でどうでしょうか?