Skip to content

Commit 39b485e

Browse files
authored
/docs/reference/layout/directionの翻訳 (#183)
1 parent b10d737 commit 39b485e

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

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

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ use ecow::EcoString;
33
use crate::foundations::{func, scope, ty, Repr};
44
use crate::layout::{Axis, Side};
55

6-
/// The four directions into which content can be laid out.
6+
/// コンテンツをレイアウトできる4つの向き。
77
///
8-
/// Possible values are:
9-
/// - `{ltr}`: Left to right.
10-
/// - `{rtl}`: Right to left.
11-
/// - `{ttb}`: Top to bottom.
12-
/// - `{btt}`: Bottom to top.
8+
/// 取りうる値は以下の通りです。
9+
/// - `{ltr}`: 左から右。
10+
/// - `{rtl}`: 右から左。
11+
/// - `{ttb}`: 上から下。
12+
/// - `{btt}`: 下から上。
1313
///
14-
/// These values are available globally and
15-
/// also in the direction type's scope, so you can write either of the following
16-
/// two:
14+
/// これらの値はグローバルスコープでも、direction型のスコープでも用いることができます。
15+
/// したがって、以下の2つのどちらでも書くことができます。
1716
/// ```example
1817
/// #stack(dir: rtl)[A][B][C]
1918
/// #stack(dir: direction.rtl)[A][B][C]
@@ -50,8 +49,7 @@ impl Dir {
5049
pub const TTB: Self = Self::TTB;
5150
pub const BTT: Self = Self::BTT;
5251

53-
/// The axis this direction belongs to, either `{"horizontal"}` or
54-
/// `{"vertical"}`.
52+
/// このdirectionが属する軸。`{"horizontal"}`か`{"vertical"}`のいずれかになります。
5553
///
5654
/// ```example
5755
/// #ltr.axis() \
@@ -65,7 +63,7 @@ impl Dir {
6563
}
6664
}
6765

68-
/// The start point of this direction, as an alignment.
66+
/// このdirectionの始点をalignmentとして返します。
6967
///
7068
/// ```example
7169
/// #ltr.start() \
@@ -83,7 +81,7 @@ impl Dir {
8381
}
8482
}
8583

86-
/// The end point of this direction, as an alignment.
84+
/// このdirectionの終点をalignmentとして返します。
8785
///
8886
/// ```example
8987
/// #ltr.end() \
@@ -101,7 +99,7 @@ impl Dir {
10199
}
102100
}
103101

104-
/// The inverse direction.
102+
/// 逆の向き。
105103
///
106104
/// ```example
107105
/// #ltr.inv() \

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"/docs/reference/layout/box/": "translated",
109109
"/docs/reference/layout/colbreak/": "untranslated",
110110
"/docs/reference/layout/columns/": "untranslated",
111-
"/docs/reference/layout/direction/": "untranslated",
111+
"/docs/reference/layout/direction/": "translated",
112112
"/docs/reference/layout/fraction/": "untranslated",
113113
"/docs/reference/layout/grid/": "untranslated",
114114
"/docs/reference/layout/hide/": "untranslated",

0 commit comments

Comments
 (0)