Skip to content

Conversation

ultimatile
Copy link
Contributor

introspection/locateの翻訳です。
locationの翻訳は暫定的に「位置」にしてあります。

@ultimatile ultimatile added the translation Translation additions or improvements label Sep 22, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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.
/// 文書中の要素の位置を特定。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
/// 文書中の要素の位置を特定
/// 文書中の要素のロケーションを特定

/// # Examples
/// Locating a specific element:
/// #
/// 特定の要素の位置を特定します。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
/// 特定の要素の位置を特定します
/// 特定の要素のロケーションを特定します

Copy link
Member

@kimushun1101 kimushun1101 left a 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`]と組み合わせた現在のコンテキストでの位置の特定
Copy link
Member

Choose a reason for hiding this comment

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

hereはロケーションであったと思います。

Suggested change
/// - [`here`]と組み合わせた現在のコンテキストでの位置の特定
/// - [`here`]と組み合わせた現在のコンテキストでのロケーションの特定

/// A selector that should match exactly one element. This element will be
/// located.
/// 厳密に1つだけの要素にマッチしなければならないセレクター。
/// その要素の位置が決定されます。
Copy link
Member

Choose a reason for hiding this comment

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

ここは引数ではなく戻り値を指していると思いました。

Suggested change
/// その要素の位置が決定されます
/// その要素のロケーションが決定されます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

translation Translation additions or improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants