Skip to content

Conversation

ultimatile
Copy link
Contributor

introspection/queryの翻訳です。

@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 query introspection function from English to Japanese, updating the translation status to mark it as completed.

  • Complete Japanese translation of function documentation and examples
  • Translation status update from "untranslated" to "translated"

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 status for /docs/reference/introspection/query/ to "translated"
crates/typst-library/src/introspection/query.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.

Comment on lines +130 to +135
/// - `heading`や`figure`のような要素関数
/// - `{<label>}`
/// - `{heading.where(level: 1)}`のような、より複雑なセレクター
/// - `{selector(heading).before(here())}`
///
/// が可能です。
Copy link

Copilot AI Sep 22, 2025

Choose a reason for hiding this comment

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

[nitpick] The parameter description format is inconsistent. The sentence structure '○○が可能です' (○○ is possible) doesn't clearly connect to the bullet points above. Consider rephrasing to '以下が指定できます:' (The following can be specified:) or restructuring to make the connection clearer.

Suggested change
/// - `heading`や`figure`のような要素関数
/// - `{<label>}`
/// - `{heading.where(level: 1)}`のような、より複雑なセレクター
/// - `{selector(heading).before(here())}`
///
/// が可能です。
/// 以下が指定できます:
/// - `heading`や`figure`のような要素関数
/// - `{<label>}`
/// - `{heading.where(level: 1)}`のような、より複雑なセレクター
/// - `{selector(heading).before(here())}`
///

Copilot uses AI. Check for mistakes.

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.

ご対応いただきありがとうございます。コメントを残しました。

/// In general, you should try not to write queries that affect themselves. The
/// same words of caution also apply to other introspection features like
/// [counters]($counter) and [state].
/// ページ番号を取得するために、まず[`location`]($content.location)メソッドを用いて`query`が返す要素の位置を取得します。
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
/// ページ番号を取得するために、まず[`location`]($content.location)メソッドを用いて`query`が返す要素の位置を取得します
/// ページ番号を取得するために、まず[`location`]($content.location)メソッドを用いて`query`が返す要素のロケーションを取得します

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.

2 participants