Skip to content

Commit 89ff983

Browse files
committed
/docs/reference/introspection/metadataの翻訳
1 parent 43ca3e3 commit 89ff983

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

crates/typst-library/src/introspection/metadata.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ use crate::engine::Engine;
33
use crate::foundations::{elem, Content, Packed, Show, StyleChain, Value};
44
use crate::introspection::Locatable;
55

6-
/// Exposes a value to the query system without producing visible content.
6+
/// 可視コンテンツの生成を伴わないクエリシステムへの値の公開。
77
///
8-
/// This element can be retrieved with the [`query`] function and from the
9-
/// command line with
10-
/// [`typst query`]($reference/introspection/query/#command-line-queries). Its
11-
/// purpose is to expose an arbitrary value to the introspection system. To
12-
/// identify a metadata value among others, you can attach a [`label`] to it and
13-
/// query for that label.
8+
/// この要素は[`query`]関数や[`typst query`]($reference/introspection/query/#command-line-queries)を用いてコマンドラインから取得できます。
9+
/// その目的は任意の値を内省システムに公開することです。
10+
/// メタデータの値を他と識別するために、[`label`]を付けて、それを検索することができます。
1411
///
15-
/// The `metadata` element is especially useful for command line queries because
16-
/// it allows you to expose arbitrary values to the outside world.
12+
/// `metadata`要素は、外部に任意の値を公開できるため、特にコマンドラインクエリで便利です。
1713
///
1814
/// ```example
1915
/// // Put metadata somewhere.
@@ -26,7 +22,7 @@ use crate::introspection::Locatable;
2622
/// ```
2723
#[elem(Show, Locatable)]
2824
pub struct MetadataElem {
29-
/// The value to embed into the document.
25+
/// 文書に埋め込む値。
3026
#[required]
3127
pub value: Value,
3228
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"/docs/reference/introspection/here/": "untranslated",
149149
"/docs/reference/introspection/locate/": "untranslated",
150150
"/docs/reference/introspection/location/": "untranslated",
151-
"/docs/reference/introspection/metadata/": "untranslated",
151+
"/docs/reference/introspection/metadata/": "translated",
152152
"/docs/reference/introspection/query/": "untranslated",
153153
"/docs/reference/introspection/state/": "untranslated",
154154
"/docs/reference/data-loading/": "translated",

0 commit comments

Comments
 (0)