8000 v2.2アップデートにおけるsrc/v2/api/index.mdの変更の翻訳 by potato4d · Pull Request #230 · vuejs/jp.vuejs.org · GitHub
[go: up one dir, main page]

Skip to content

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 6 commits into from
Mar 1, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[WIP]Translate/v2.2/index (#1)
* 文の区切りがおかしいので修正

* 前置詞のニュアンスを変更

* timelineの訳抜け修正、performance tracingをenableする感じを出した

* 誤字修正

* エラー内容 -> エラーに変更。particularlyの訳抜け修正
  • Loading branch information
hkdnet authored and potato4d committed Feb 26, 2017
commit 55fde70de0c9fd0ea322bcfc9c2a833402e6be62
12 changes: 6 additions & 6 deletions src/v2/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 インスタンスが引数に渡されて呼び出されます。
Copy link
Collaborator

Choose a reason for hiding this comment

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

(細かいんですが)「おいて」「に対して」と「て」が続き、少し読みづらく感じました。

コンポーネントの描画関数とウォッチャにおいて未捕獲のエラーに対し、ハンドラを割り当てます。

でどうでしょうか?


> 2.2.0 では、このフックは、コンポーネントのライフサイクルフックに関するエラーも捉えます。また、このフックが `undefined` である場合、捕捉されたエラーは、アプリケーションをクラッシュさせずに、代わりに `console.error` として記録されます
> 2.2.0 では、このフックは、コンポーネントのライフサイクルフック中のエラーも捉えます。また、このフックが `undefined` である場合、捕捉されたエラーは、アプリケーションをクラッシュさせずに、代わりに `console.error` を用いて記録さ 8000 ます

> このオプションのを使用して、[Sentry](https://sentry.io) というエラー追跡サービスを[公式に統合](https://sentry.io/for/vue/)ために使用します。

Expand Down Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

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

ここのタイトルも訳しましょう!


Expand Down Expand Up @@ -645,15 +645,15 @@ type: api

### renderError

> 2.2.0 からの進行
> 2.2.0 からの新機能

- **型:** `(createElement: () => VNode, error: Error) => VNode`

- **詳細:**

**development モードでのみ動作します。**

デフォルトの `render` 関数にてエラーが発生した際に、代替となる描画結果を提供します。この際、エラー内容は `renderError` へ、第二引数として渡されます。この機能は、ホットリロードなどと併用する場合に重宝します
デフォルトの `render` 関数にてエラーが発生した際に、代替となる描画結果を提供します。この際、エラーは `renderError` へ、第二引数として渡されます。この機能は、特にホットリロードなどと併用する場合に重宝します

- **例:**

Expand Down
0