-
Notifications
You must be signed in to change notification settings - Fork 665
Translation for Japanese #95
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
Conversation
NOTE: pick up from vuejs@eef3792
docs/ja/guides/using-with-vuex.md
Outdated
}) | ||
}) | ||
|
||
it('calls store action actionInput when input value is input and an input even is fired', () => { |
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.
私も見逃していましたが、ここは翻訳しないのが一般的なんでしょうか…?
it('
で検索かけるとそれなりにヒットするので、もしVueの翻訳ドキュメントの規約に沿って意図して翻訳していないなどであればそのままで大丈夫かと思います。
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.
コード内のコメントは訳していますが、この部分はテストのコードの一部なのでしなくても大丈夫です。
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.
This should be calls store action actionInput when input value is input and an input event is fired
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.
oh... I could not notice. 👀
Thanks!
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.
I've reviewed😃
docs/ja/guides/getting-started.md
Outdated
|
||
### マウンティングコンポーネント | ||
|
||
`vue-test-utils` は Vue コンポーネントを隔離してマウントし、必要な入力(プロパティ、注入、そしてユーザイベント)をモックにし出力されたものを検証することで結果を出力します。 |
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.
There's missing translation.
The original text: (render result, emitted custom events)
https://github.com/vuejs/vue-test-utils/blame/dev/docs/en/guides/getting-started.md#L42
docs/ja/guides/getting-started.md
Outdated
|
||
### `nextTick` はどうですか? | ||
|
||
Vue バッチは DOM 更新を保留し、非同期的に適用して、複数のデータのミューテーションに起因する不要な再描画を防ぎます。実際には、Vue が何らかの状態変更をトリガした後に Vue が実際の DOM 更新を実行するまで待つために、`Vue.nextTick` を使用しなければならないからです。 |
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.
s/Vue バッチは DOM 更新を保留し
/Vue は保留した DOM 更新をまとめて処理し
docs/ja/guides/common-tips.md
Outdated
// イベント数を検証する | ||
expect(wrapper.emitted().foo.length).toBe(2) | ||
|
||
// イベントを含んでいるか検証する |
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.
s/イベントを含んでいるか検証する/イベントのペイロードを検証する
|
||
多くの一般的な JavaScript テストランナがあり、`vue-test-utils` はそれらすべてで動作します。テストランナにとらわれません。 | ||
|
||
テストランナを選択する際には、機能セット、パフォーマンス、および単一ファイルコンポーネント (SFC) の事前コンパイルのサポートが考慮されます。既存のライブラリを慎重に比較した上で、以下の2つのテストランナをお勧めします: |
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.
s/テストランナを選択する際には、機能セット、パフォーマンス、および単一ファイルコンポーネント (SFC) の事前コンパイルのサポートが考慮されます。/ですが、テストランナを選択する際には、機能セット、パフォーマンス、および単一ファイルコンポーネント (SFC) の事前コンパイルのサポートなどを考慮すべきです。
|
||
テストランナを選択する際には、機能セット、パフォーマンス、および単一ファイルコンポーネント (SFC) の事前コンパイルのサポートが考慮されます。既存のライブラリを慎重に比較した上で、以下の2つのテストランナをお勧めします: | ||
|
||
- [Jest](https://facebook.github.io/jest/docs/en/getting-started.html#content) は最も充実したテストランナです。最小の設定が必要で、デフォルトで JSDOM を設定し、組み込みの検証を提供し、コマンドラインのユーザーエクスペリエンスが優れています。ただし、テストで SFC コンポーネントをインポートできるようにするには、プリプロセッサが必要です。最も一般的な SFC 機能を処理できる `jest-vue` プリプロセッサを作成しましたが、現在 `vue-loader` に 100% の機能パリティを持っていません。 |
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.
s/vue-loader
に 100% の機能パリティを持っていません。/vue-loader
と 100% 同じ機能を持っていません。
} | ||
``` | ||
|
||
> デフォルトでは、`babel-jest` はインストールされている間自動的に設定します。しかし、`*.vue` ファイルのための変換を明示的に追加したため、`babel-jest` も明示的に設定する必要があります。 |
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.
s/インストールされている間/インストールしさえすれば
docs/ja/guides/using-with-vuex.md
Outdated
|
||
ここでは何が起こっているでしょうか?まず、Vue に `Vue.use` メソッドを使用して Vuex を使用するように指示しています。これは、単なる `Vue.use` のラッパです。 | ||
|
||
次に、新しい `Vuex.store` をモックされた値で呼び出すことによってモックストアを呼び出します。それは全て気にすることであるので、それをアクションに渡すだけです。 |
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.
s/次に、新しい Vuex.store
をモックされた値で呼び出すことによってモックストアを呼び出します。それは全て気にすることであるので、それをアクションに渡すだけです。/次に、新しい Vuex.store
をモックした値で呼び出すことによってモックのストアを作成します。それをアクションに渡すだけです。それが気にしなければならないことの全てだからです。
docs/ja/guides/using-with-vuex.md
Outdated
|
||
アクションのスタブが期待どおりに呼び出されたことを検討することができます。 | ||
|
||
今、ストアを定義する方法が、あなたには少し外に見えるかもしれません。 |
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.
s/外に/異質に
@re-fort |
@re-fort |
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.
@kazupon
🙆🙆🙆
@eddyerburgh |
Thanks guys, great job 🙂 |
related #58
based on translation by @sunecosuri (thanks!)
/cc @sunecosuri @re-fort
もし、可能でしたらレビューお願いできますか?