-
Notifications
You must be signed in to change notification settings - Fork 13
/docs/reference/introspection/here
の翻訳
#318
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
「/docs/reference/introspection/here」の日本語翻訳を追加し、翻訳状況を反映しました。
- here の API ドキュメントコメントを日本語化
- 翻訳ステータスを "translated" に更新
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
website/translation-status.json | 当該ドキュメントの翻訳状態を translated に更新 |
crates/typst-library/src/introspection/here.rs | here 関数のドキュメントコメントを日本語に翻訳(リンクや例示含む) |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
/// internally: For instance, `{counter.get()}` is equivalent to | ||
/// `{counter.at(here())}`. | ||
/// `here`はアクティブな[コンテキスト]($context)から現在位置を直接取得する低レベルな構成要素と考えることができます。 | ||
/// いくつかの他の関数が内部で使用しています。 |
Copilot
AI
Sep 22, 2025
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.
[nitpick] 文の主語述語が不自然です。受け身にすると自然な日本語になります。提案: 『いくつかの他の関数でも内部で使用されています。』
/// いくつかの他の関数が内部で使用しています。 | |
/// いくつかの他の関数でも内部で使用されています。 |
Copilot uses AI. Check for mistakes.
/// the current location from the active [context]. Some other functions use it | ||
/// internally: For instance, `{counter.get()}` is equivalent to | ||
/// `{counter.at(here())}`. | ||
/// `here`はアクティブな[コンテキスト]($context)から現在位置を直接取得する低レベルな構成要素と考えることができます。 |
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.
hereはlocation型を返すのでこれはロケーションのことです。
/// `here`はアクティブな[コンテキスト]($context)から現在位置を直接取得する低レベルな構成要素と考えることができます。 | |
/// `here`はアクティブな[コンテキスト]($context)から現在のロケーションを直接取得する低レベルな構成要素と考えることができます。 |
/// | ||
/// Within show rules on [locatable]($location/#locatable) elements, `{here()}` | ||
/// will match the location of the shown element. | ||
/// [ロケータブル]($location/#locatable)要素に対するshowルールにおいて、`{here()}`は表示する要素の位置にマッチします。 |
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.
/// [ロケータブル]($location/#locatable)要素に対するshowルールにおいて、`{here()}`は表示する要素の位置にマッチします。 | |
/// [ロケータブル]($location/#locatable)要素に対するshowルールにおいて、`{here()}`は表示する要素のロケーションにマッチします。 |
use crate::introspection::Location; | ||
|
||
/// Provides the current location in the document. | ||
/// 文書中における現在位置を提供。 |
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.
ここもロケーションでしょうか?
/// 文書中における現在位置を提供。 | |
/// 文書中における現在のロケーションを提供。 |
introspection/hereの翻訳です。
lacationの翻訳は暫定的に「位置」にしてあります。