-
Notifications
You must be signed in to change notification settings - Fork 113
Translate docs/use-static-query #43
Conversation
uetchy
left a comment
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.
ありがとうございます👍
docs/docs/use-static-query.md
Outdated
|
|
||
| - `useStaticQuery` does not accept variables (hence the name "static"), but can be used in _any_ component, including pages | ||
| - Because of how queries currently work in Gatsby, we support only a single instance of `useStaticQuery` in a file | ||
| - `useStaticQuery` は値を受け取れません(なので `static` という名前になっています)。しかし、ページを含む*どのような*コンポーネントでも使えます。 |
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.
日本語の斜体はあまり強調されず、わかりにくいので**2個使って太字にしましょう。
Co-Authored-By: Yasuaki Uechi <[email protected]>
|
|
|
スタイルガイド#用語集 の
|
uetchy
left a comment
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.
🚀
hirotaka
left a comment
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.
ありがとうございます!一つだけコメントさせていただいたので確認お願いします。
docs/docs/use-static-query.md
Outdated
| Gatsby v2.1.0 で `useStaticQuery` が導入されました。これはビルド時に [React Hook](https://reactjs.org/docs/hooks-intro.html) を使って GraphQL のクエリーを実行する新しい機能です。 | ||
|
|
||
| Just like the [StaticQuery](/docs/static-query/) component, it allows your React components to retrieve data via a GraphQL query that will be parsed, evaluated, and injected into the component. However, `useStaticQuery` is a hook rather than a component that takes a render prop! | ||
| React コンポーネントで、 [StaticQuery](/docs/static-query/) コンポーネントと同じように GraphQL クエリーを介したデータの取得とコンポーネントへの注入を行えます。 |
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.
However,
useStaticQueryis a hook rather than a component that takes a render prop!
この文の訳が見当たらないようなのですが、意図しているものでしたでしょうか。
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.
追加しました
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.
a component that takes a render prop!
ここの訳が少し自信ないです。
レンダープロップを受け取るコンポーネント
としましたが、 受け取る ではなくて 取る のほうが意味的には合ってそうでしょうか?
レンダープロップ については公式のドキュメントにレンダープロップの項があったのでそれに倣っています。
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.
レンダープロップ でよさそうです。
レンダープロップを受け取るコンポーネント
に関しては、suggetionをあげさせていただいたのでご確認お願いいたいします。
hirotaka
left a comment
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.
確かに、悩ましいですね。
Co-Authored-By: Hirotaka Mizutani <[email protected]>
hirotaka
left a comment
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 👍
|
Holy buckets, @nakajmg — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
レビューお願いします 🙏
ここに出てくる static query を静的クエリと訳しましたが、リンク( https://www.gatsbyjs.org/docs/static-query/#how-staticquery-differs-from-page-query ) の内容的には
StaticQueryの話なので、ここはどう訳すのがベターそうでしょうか?