-
Notifications
You must be signed in to change notification settings - Fork 13
/docs/reference/introspection/locate
の翻訳
#319
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?
/docs/reference/introspection/locate
の翻訳
#319
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
This PR translates the documentation for the locate
function from English to Japanese. The function is used to determine the location of an element in a Typst document.
- Translates the main function description and parameter documentation from English to Japanese
- Updates the translation status to mark
/docs/reference/introspection/locate/
as translated - Maintains the same code examples while translating accompanying text
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
website/translation-status.json | Updates the translation status for the locate documentation page |
crates/typst-library/src/introspection/locate.rs | Translates all documentation comments from English to Japanese |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
use crate::introspection::Location; | ||
|
||
/// Determines the location of an element 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.
/// 文書中の要素の位置を特定。 | |
/// 文書中の要素のロケーションを特定。 |
/// # Examples | ||
/// Locating a specific element: | ||
/// # 例 | ||
/// 特定の要素の位置を特定します。 |
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 [`location`] retrieved from some queried element via the | ||
/// [`location()`]($content.location) method on content. | ||
/// 以下との組み合わせが特に便利です。 | ||
/// - [`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.
hereはロケーションであったと思います。
/// - [`here`]と組み合わせた現在のコンテキストでの位置の特定 | |
/// - [`here`]と組み合わせた現在のコンテキストでのロケーションの特定 |
/// A selector that should match exactly one element. This element will be | ||
/// located. | ||
/// 厳密に1つだけの要素にマッチしなければならないセレクター。 | ||
/// その要素の位置が決定されます。 |
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/locateの翻訳です。
locationの翻訳は暫定的に「位置」にしてあります。