Skip to content

Commit 0d08ca1

Browse files
committed
/docs/reference/layout/stackの翻訳を追加
1 parent 6241307 commit 0d08ca1

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

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

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ use crate::engine::Engine;
55
use crate::foundations::{cast, elem, Content, NativeElement, Packed, Show, StyleChain};
66
use crate::layout::{BlockElem, Dir, Spacing};
77

8-
/// Arranges content and spacing horizontally or vertically.
8+
/// コンテンツと間隔を垂直方向または水平方向に配置。
99
///
10-
/// The stack places a list of items along an axis, with optional spacing
11-
/// between each item.
10+
/// スタックは、ある軸に沿ってアイテムのリストを配置し、各アイテム間に任意の間隔を設定します。
1211
///
13-
/// # Example
12+
/// #
1413
/// ```example
1514
/// #stack(
1615
/// dir: ttb,
@@ -21,28 +20,25 @@ use crate::layout::{BlockElem, Dir, Spacing};
2120
/// ```
2221
#[elem(Show)]
2322
pub struct StackElem {
24-
/// The direction along which the items are stacked. Possible values are:
23+
/// アイテムを積み重ねる方向。可能な値は以下の通りです。
2524
///
26-
/// - `{ltr}`: Left to right.
27-
/// - `{rtl}`: Right to left.
28-
/// - `{ttb}`: Top to bottom.
29-
/// - `{btt}`: Bottom to top.
25+
/// - `{ltr}`: 左から右。
26+
/// - `{rtl}`: 右から左。
27+
/// - `{ttb}`: 上から下。
28+
/// - `{btt}`: 下から上。
3029
///
31-
/// You can use the `start` and `end` methods to obtain the initial and
32-
/// final points (respectively) of a direction, as `alignment`. You can also
33-
/// use the `axis` method to determine whether a direction is
34-
/// `{"horizontal"}` or `{"vertical"}`. The `inv` method returns a
35-
/// direction's inverse direction.
30+
/// `alignment`と同様に、向きの始点と終点を(それぞれ)取得するために、`start`と`end`メソッドを使用できます。
31+
/// 方向が`{"horizontal"}` or `{"vertical"}`のどちらかを決定するために`axis`メソッドも使用できます。
32+
/// `inv`メソッドは逆の向きを返します。
3633
///
37-
/// For example, `{ttb.start()}` is `top`, `{ttb.end()}` is `bottom`,
38-
/// `{ttb.axis()}` is `{"vertical"}` and `{ttb.inv()}` is equal to `btt`.
34+
/// 例えば、`{ttb.start()}`は`top`、`{ttb.end()}`は`bottom`、`{ttb.axis()}`は`{"vertical"}`となり、`{ttb.inv()}`は`btt`に等しくなります。
3935
#[default(Dir::TTB)]
4036
pub dir: Dir,
4137

42-
/// Spacing to insert between items where no explicit spacing was provided.
38+
/// 明示的に間隔が与えられなかった場合にアイテム間に挿入される間隔。
4339
pub spacing: Option<Spacing>,
4440

45-
/// The children to stack along the axis.
41+
/// 軸に沿って積み重ねる子。
4642
#[variadic]
4743
pub children: Vec<StackChild>,
4844
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"/docs/reference/layout/skew/": "untranslated",
129129
"/docs/reference/layout/h/": "untranslated",
130130
"/docs/reference/layout/v/": "untranslated",
131-
"/docs/reference/layout/stack/": "untranslated",
131+
"/docs/reference/layout/stack/": "translated",
132132
"/docs/reference/visualize/": "untranslated",
133133
"/docs/reference/visualize/circle/": "untranslated",
134134
"/docs/reference/visualize/color/": "untranslated",

0 commit comments

Comments
 (0)