Skip to content

Transitions & Animation > Enter & Leave Transitions の翻訳 #102

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 13 commits into from
Oct 10, 2020

Conversation

potato4d
Copy link
Member

@potato4d potato4d commented Oct 8, 2020

resolve #22

Enter & Leave Transitions のセクションを翻訳しました。

@netlify
Copy link

netlify bot commented Oct 8, 2020

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

Built with commit 037088d

https://deploy-preview-102--vuejs-v3-ja-doc-preview.netlify.app

@netlify
Copy link

netlify bot commented Oct 8, 2020

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

Built with commit 8a0a02b

https://deploy-preview-102--vuejs-v3-ja-doc-preview.netlify.app

Copy link
Member Author

@potato4d potato4d left a comment

Choose a reason for hiding this comment

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

翻訳メモを追加 📝

@kazupon
全体的に v2 のドキュメントのままの部分が多かったので、その部分はそのまま持ってきて必要な部分について +α の翻訳を入れている形です。

最後のデモの部分がかなり自信ないのでコメントもらえると助かります 🙏

@@ -14,7 +14,8 @@
"serve": "vuepress dev src",
"build": "vuepress build src",
"test": "npm run lint",
"lint": "node -e \"var shell=require('shelljs');var files=shell.find(['./src/**/*.md']).filter(function(file){return !file.endsWith('/guide/team.md')}).join(' ');if(shell.exec('textlint --rulesdir ./node_modules/textlint-checker-for-vuejs-jp-docs/rules/textlint-rule-vue-jp-docs -f pretty-error '+files).code!==0){shell.exit(1)};\""
"lint": "node -e \"var shell=require('shelljs');var files=shell.find(['./src/**/*.md']).filter(function(file){return !file.endsWith('/guide/team.md')}).join(' ');if(shell.exec('textlint --rulesdir ./node_modules/textlint-checker-for-vuejs-jp-docs/rules/textlint-rule-vue-jp-docs -f pretty-error '+files).code!==0){shell.exit(1)};\"",
"lint:single": "textlint --rulesdir ./node_modules/textlint-checker-for-vuejs-jp-docs/rules/textlint-rule-vue-jp-docs -f pretty-error"
Copy link
Member Author

Choose a reason for hiding this comment

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

[nits]
単体のファイルの Lint がなかったので追加 (既に取り込まれているファイルで Lint 落ちが 27 件あるので、修正と Lint の CI 追加を急ぎます)


There are six classes applied for enter/leave transitions.
Copy link
Member Author

Choose a reason for hiding this comment

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

[note]
v2 ではこれらであり直訳としては正しいが、読みやすさの面で以下へと変更しました。

https://jp.vuejs.org/v2/guide/transitions.html#%E3%83%88%E3%83%A9%E3%83%B3%E3%82%B8%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%AF%E3%83%A9%E3%82%B9

@@ -511,16 +504,16 @@ Sometimes this works great, like when transitioning items are absolutely positio
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

Sometimes this isn't an option, though, or we're dealing with more complex movement where in and out states need to be coordinated, so Vue offers an extremely useful utility called **transition modes**:
ただ、そうするわけにはいかない場合や、より複雑な in out の動きの扱いについてコーディネートする必要がある場合に、Vue は非常に便利な **トランジションモード** というユーティリティを提供しています。
Copy link
Member Author

Choose a reason for hiding this comment

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

[note]
ここ、はじめは coordinated を調整として翻訳していましたが、後述の部分で coordinated をカタカナ語として使うほうが適切な場面が出てきたので統一しました。


We can use this to coordinate more expressive movement, such as a folding card, as demonstrated below. It's actually two elements transitioning between eachother, but since the beginning and end states are scaling the same: horizontally to 0, it appears like one fluid movement. This type of slight-of-hand can be very useful for realistic UI microinteractions:
これを利用することによって、以下のようなより表現力のある動きをコーディネートすることができます。二つの要素がお互いの間でトランジションしていますが、そのお互いの大きさが同じであり、水平方向の 0 の位置で重なるため、一つの要素の動きの流れに見えます。このような細かな調整は、よりリアルなマイクロインタラクションの表現で役立ちます:
Copy link
Member Author

Choose a reason for hiding this comment

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

デモ見ながら翻訳したんですが、2つの要素が横向きになるタイミングで重なり、その結果一つの要素として見えるということを言いたい内容ではあるのですが、直訳すると理解できない文章になりそうなのでこうしました 📝
coordinated をコーディネートのカタカナ語にしたのはここ由来です。

Copy link
Member

Choose a reason for hiding this comment

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

なるほど。いいと思います!

@@ -253,35 +250,35 @@ const Demo = {
Vue.createApp(Demo).mount('#demo')
```

### Using Transitions and Animations Together
### トランジションとアニメーションの併用
Copy link
Member Author

Choose a reason for hiding this comment

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

[note]
v2 では トランジションとアニメーションを両方使う だったが、ここだけ動詞なのもよくわからないので統一

@potato4d potato4d requested a review from kazupon October 8, 2020 14:32
@potato4d potato4d self-assigned this Oct 8, 2020
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.

1点翻訳漏れがあったので、そこをお願いします!

- 自動的に CSS トランジションやアニメーションのためのクラスを適用します。
- [Animate.css](https://animate.style/) のようなサードパーティの CSS アニメーションライブラリと連携します。
- トランジションフックが実行されている間、JavaScript を使って直接 DOM 操作を行います。
- サードパーティの JavaScript アニメーションライブラリと連携します。

On this page, we'll only cover entering, leaving, and list transitions, but you can see the next section for [managing state transitions](transitions-state.html).
Copy link
Member

Choose a reason for hiding this comment

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

ここも翻訳お願いします! 🙏


We can use this to coordinate more expressive movement, such as a folding card, as demonstrated below. It's actually two elements transitioning between eachother, but since the beginning and end states are scaling the same: horizontally to 0, it appears like one fluid movement. This type of slight-of-hand can be very useful for realistic UI microinteractions:
これを利用することによって、以下のようなより表現力のある動きをコーディネートすることができます。二つの要素がお互いの間でトランジションしていますが、そのお互いの大きさが同じであり、水平方向の 0 の位置で重なるため、一つの要素の動きの流れに見えます。このような細かな調整は、よりリアルなマイクロインタラクションの表現で役立ちます:
Copy link
Member

Choose a reason for hiding this comment

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

なるほど。いいと思います!

@potato4d
Copy link
Member Author

翻訳漏れ修正しました 🙇
確認お願いいたします!

@kazupon
Copy link
Member

kazupon commented Oct 10, 2020

@potato4d
ありがとうございます!
マージしますね!

@kazupon kazupon merged commit dc166ce into lang-ja Oct 10, 2020
@kazupon kazupon deleted the feat/transitions-enterleave branch October 12, 2020 07:27
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.

Transitions & Animation > Enter & Leave Transitions の翻訳
2 participants