Skip to content

Commit 6efc8e4

Browse files
authored
/docs/reference/layout/hideの翻訳 (#186)
1 parent 43608fb commit 6efc8e4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

crates/typst-library/src/layout/hide.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@ use crate::diag::SourceResult;
22
use crate::engine::Engine;
33
use crate::foundations::{elem, Content, Packed, Show, StyleChain};
44

5-
/// Hides content without affecting layout.
5+
/// レイアウトに影響を与えないコンテンツの隠蔽。
66
///
7-
/// The `hide` function allows you to hide content while the layout still 'sees'
8-
/// it. This is useful to create whitespace that is exactly as large as some
9-
/// content. It may also be useful to redact content because its arguments are
10-
/// not included in the output.
7+
/// `hide`関数を用いると、レイアウトにコンテンツを「認識」させながらコンテンツを隠すことができます。
8+
/// これは何らかのコンテンツと全く同じ大きさを持つ空白を作る際に便利です。
9+
/// 引数が出力に含まれないため、コンテンツを削除する際にも便利かもしれません。
1110
///
12-
/// # Example
11+
/// #
1312
/// ```example
1413
/// Hello Jane \
1514
/// #hide[Hello] Joe
1615
/// ```
1716
#[elem(Show)]
1817
pub struct HideElem {
19-
/// The content to hide.
18+
/// 隠したいコンテンツ。
2019
#[required]
2120
pub body: Content,
2221

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"/docs/reference/layout/direction/": "translated",
112112
"/docs/reference/layout/fraction/": "untranslated",
113113
"/docs/reference/layout/grid/": "untranslated",
114-
"/docs/reference/layout/hide/": "untranslated",
114+
"/docs/reference/layout/hide/": "translated",
115115
"/docs/reference/layout/layout/": "untranslated",
116116
"/docs/reference/layout/length/": "untranslated",
117117
"/docs/reference/layout/measure/": "untranslated",

0 commit comments

Comments
 (0)