Skip to content

Commit c9dc67c

Browse files
ultimatile3w36zj6
andauthored
/docs/reference/layout/repeatの翻訳 (#218)
Co-authored-by: 3w36zj6 <[email protected]>
1 parent 20bf99a commit c9dc67c

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ use crate::engine::Engine;
33
use crate::foundations::{elem, Content, NativeElement, Packed, Show, StyleChain};
44
use crate::layout::{BlockElem, Length};
55

6-
/// Repeats content to the available space.
6+
/// 利用可能なスペースでのコンテンツの繰り返し。
77
///
8-
/// This can be useful when implementing a custom index, reference, or outline.
8+
/// これは独自の索引、参考文献、目次を作成する際に便利です。
99
///
10-
/// Space may be inserted between the instances of the body parameter, so be
11-
/// sure to adjust the [`justify`]($repeat.justify) parameter accordingly.
10+
/// bodyパラメーターの実体の間に空白が挿入される可能性があるため、[`justify`]($repeat.justify)パラメーターを正しく調整しているか確かめてください。
1211
///
13-
/// Errors if there are no bounds on the available space, as it would create
14-
/// infinite content.
12+
/// 利用可能なスペースに上限がない場合は、コンテンツを無限に生成してしまうためエラーになります。
1513
///
16-
/// # Example
14+
/// #
1715
/// ```example
1816
/// Sign on the dotted line:
1917
/// #box(width: 1fr, repeat[.])
@@ -26,16 +24,15 @@ use crate::layout::{BlockElem, Length};
2624
/// ```
2725
#[elem(Show)]
2826
pub struct RepeatElem {
29-
/// The content to repeat.
27+
/// 繰り返すコンテンツ。
3028
#[required]
3129
pub body: Content,
3230

33-
/// The gap between each instance of the body.
31+
/// 本文の実体間の間隔。
3432
#[default]
3533
pub gap: Length,
3634

37-
/// Whether to increase the gap between instances to completely fill the
38-
/// available space.
35+
/// 利用可能なスペースを完全に埋めるために、実体間の間隔を大きくするかどうか。
3936
#[default(true)]
4037
pub justify: bool,
4138
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"/docs/reference/layout/place/": "translated",
123123
"/docs/reference/layout/ratio/": "untranslated",
124124
"/docs/reference/layout/relative/": "untranslated",
125-
"/docs/reference/layout/repeat/": "untranslated",
125+
"/docs/reference/layout/repeat/": "translated",
126126
"/docs/reference/layout/rotate/": "untranslated",
127127
"/docs/reference/layout/scale/": "untranslated",
128128
"/docs/reference/layout/skew/": "untranslated",

0 commit comments

Comments
 (0)