Skip to content

Conversation

ultimatile
Copy link
Contributor

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

@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

「/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)から現在位置を直接取得する低レベルな構成要素と考えることができます。
/// いくつかの他の関数が内部で使用しています。
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] 文の主語述語が不自然です。受け身にすると自然な日本語になります。提案: 『いくつかの他の関数でも内部で使用されています。』

Suggested change
/// いくつかの他の関数が内部で使用しています
/// いくつかの他の関数でも内部で使用されています

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)から現在位置を直接取得する低レベルな構成要素と考えることができます。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hereはlocation型を返すのでこれはロケーションのことです。

Suggested change
/// `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()}`は表示する要素の位置にマッチします。
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
/// [ロケータブル]($location/#locatable)要素に対するshowルールにおいて、`{here()}`は表示する要素の位置にマッチします
/// [ロケータブル]($location/#locatable)要素に対するshowルールにおいて、`{here()}`は表示する要素のロケーションにマッチします

use crate::introspection::Location;

/// Provides the current location in the document.
/// 文書中における現在位置を提供。
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