-
Notifications
You must be signed in to change notification settings - Fork 9
Japanese Translation: ja/head.md #33
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
Japanese Translation: ja/head.md #33
Conversation
@@ -0,0 +1,100 @@ | |||
# ヘッドの管理 | |||
|
|||
アセットの挿入と同様に、ヘッドの管理も同じ考えに追従しています。つまり、コンポーネントのライフサイクルのレンダリング `context` に動的にデータを付随させ、そして `template` 内にデータを挿入できるという考えです。 |
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.
Similar to asset injection, head management follows the same idea: we can dynamically attach data to the render context in a component's lifecycle, and then interpolate those data in template.
ここ... 自信がないです。意味としてが正しいかも自信がないし、日本語として読みやすいかも自信がない。
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.
LGTM 👍
ja/head.md
Outdated
|
||
アセットの挿入と同様に、ヘッドの管理も同じ考えに追従しています。つまり、コンポーネントのライフサイクルのレンダリング `context` に動的にデータを付随させ、そして `template` 内にデータを挿入できるという考えです。 | ||
|
||
そうするためには、ネストしたコンポーネントの内側で SSR コンテキストへアクセスできる必要があります。単純に `context` を `createApp()` へ渡し、これをルートインスタンスの `$options` で露出させることができます。 |
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.
#25 (comment) と同様、露出
を 公開
に変更します。
} | ||
``` | ||
|
||
これと同様のことが `provide/inject` 経由でも可能ですが、そうすると context が `$root` 上に存在することになるため、インジェクションを解決するコストを避けたほうが良いでしょう。 |
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 can also be done via provide/inject, but since we know it's going to be on $root, we can avoid the injection resolution costs.
ここ、自信が無いので、重点的にみていただきたいです。特に後半の
but since we know it's going to be on $root, we can avoid the injection resolution costs.
が自信ないです。
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.
LGTM! 👍
</html> | ||
``` | ||
|
||
**メモ:** |
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.
Notes:
他の箇所ではどのように訳しているか確認して、合わせます。
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.
レビュー 👀 しました。
コメント 💬 した部分の対応お願いします!
ja/head.md
Outdated
```js | ||
// title-mixin.js | ||
function getTitle (vm) { | ||
// components can simply provide a `title` option |
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.
ここのコメントの翻訳もお願いします! 🙏
レビューありがとうございます!指摘いただいた箇所に対応しましたので確認お願いしますー |
🙆 |
Signed-off-by: Bruno Lesieur <[email protected]>
* Translate SUMMARY.md via GitLocalize * Revert "Chinese Translation: zh/summary" * Revert "Revert "Chinese Translation: zh/summary"" * Japanese Translation: ja/css.md (open-source-translators#19) * Translate css.md via GitLocalize * Translate css.md via GitLocalize * Update css.md Remove style closing tags * Translate css.md via GitLocalize * Update css.md * Translate api.md via GitLocalize * Translate streaming.md via GitLocalize (open-source-translators#22) * Translate caching.md via GitLocalize (open-source-translators#23) * Japanese Translation: ja/routing.md (open-source-translators#18) * Translate routing.md via GitLocalize * Translate routing.md via GitLocalize * Translate universal.md via GitLocalize (open-source-translators#29) * ja/api.md (open-source-translators#28) * Translate api.md via GitLocalize * Translate api.md via GitLocalize * Translate api.md via GitLocalize * Translate api.md via GitLocalize * Translate build-config.md via GitLocalize (open-source-translators#27) * Translate build-config.md via GitLocalize * Translate build-config.md via GitLocalize * Translate build-config.md via GitLocalize * Japanese translation: bundle-renderer.md (open-source-translators#30) * Translate bundle-renderer.md via GitLocalize * Translate bundle-renderer.md via GitLocalize * Translate basic.md (open-source-translators#32) * Translate basic.md via GitLocalize * Translate basic.md via GitLocalize * Translate basic.md via GitLocalize * Translate basic.md via GitLocalize * Japanese Translation: ja/data.md (open-source-translators#25) * Translate data.md via GitLocalize * Translate data.md via GitLocalize * Fix typos * コード内のコメントを日本語に翻訳した * コード内のコメントの意図をより明確にした * expose はモジュールとしての公開するという意味なので訳を変更した * 原文に ... とあるので一応残しておく * "Client Side Hydration" の翻訳 (open-source-translators#36) * Translate hydration.md via GitLocalize * Translate hydration.md via GitLocalize * Japanese Translation: ja/head.md (open-source-translators#33) * Translate head.md via GitLocalize * Translate head.md via GitLocalize * expose はモジュールとして公開するという意味なので公開という言葉を使うようにした * コードのコメントの翻訳が漏れていた * Japanese Translation: ja/routing.md (open-source-translators#38) * Translate routing.md via GitLocalize * Translate routing.md via GitLocalize * Japanese Translation: ja/caching.md (open-source-translators#37) * Translate caching.md via GitLocalize * Translate caching.md via GitLocalize * translated the "source code structure" into Japanese. (open-source-translators#26) * Translate structure.md via GitLocalize * Translate structure.md via GitLocalize * Translate structure.md via GitLocalize * Japanese Translation: ja/SUMMARY.md (open-source-translators#35) * Translate SUMMARY.md via GitLocalize * hydration.md と合わせた "Client Side Hydration" の翻訳 by hikimon · Pull Request open-source-translators#36 · open-source-translators/vue-ssr-docs open-source-translators#36 * en/ に合わせてインデントを 2 にした * Renderer 生成時の各オプションの階層を下げた。en/ でもそうなっている * Japanese translation: readme.md (open-source-translators#39) * Translate README.md via GitLocalize * Translate README.md via GitLocalize
"Head Management" の翻訳 · Issue #11 · open-source-translators/vue-ssr-docs について翻訳作業を行いました。レビューをお願いします!
Check out a review request at GitLocalize 😄