Skip to content

Commit 0b989d6

Browse files
committed
/docs/reference/layout/scaleの翻訳
1 parent 1fe6112 commit 0b989d6

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

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

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,44 +111,43 @@ impl Show for Packed<RotateElem> {
111111
}
112112
}
113113

114-
/// Scales content without affecting layout.
114+
/// レイアウトに影響を与えないコンテンツの拡大縮小。
115115
///
116-
/// Lets you mirror content by specifying a negative scale on a single axis.
116+
/// 単一の軸で負のスケールを指定することで、コンテンツを反転表示できます。
117117
///
118-
/// # Example
118+
/// #
119119
/// ```example
120120
/// #set align(center)
121121
/// #scale(x: -100%)[This is mirrored.]
122122
/// #scale(x: -100%, reflow: true)[This is mirrored.]
123123
/// ```
124124
#[elem(Show)]
125125
pub struct ScaleElem {
126-
/// The scaling factor for both axes, as a positional argument. This is just
127-
/// an optional shorthand notation for setting `x` and `y` to the same
128-
/// value.
126+
/// 位置引数として両方の軸の拡大縮小率を設定します。
127+
/// これは`x`と`y`を同じ値で設定する単なる省略記法です。
129128
#[external]
130129
#[positional]
131130
#[default(Smart::Custom(ScaleAmount::Ratio(Ratio::one())))]
132131
pub factor: Smart<ScaleAmount>,
133132

134-
/// The horizontal scaling factor.
133+
/// 水平方向の拡大縮小率。
135134
///
136-
/// The body will be mirrored horizontally if the parameter is negative.
135+
/// 負の値が指定された場合は本文が水平方向に反転します。
137136
#[parse(
138137
let all = args.find()?;
139138
args.named("x")?.or(all)
140139
)]
141140
#[default(Smart::Custom(ScaleAmount::Ratio(Ratio::one())))]
142141
pub x: Smart<ScaleAmount>,
143142

144-
/// The vertical scaling factor.
143+
/// 垂直方向の拡大縮小率。
145144
///
146-
/// The body will be mirrored vertically if the parameter is negative.
145+
/// 負の値が指定された場合は本文が垂直方向に反転します。
147146
#[parse(args.named("y")?.or(all))]
148147
#[default(Smart::Custom(ScaleAmount::Ratio(Ratio::one())))]
149148
pub y: Smart<ScaleAmount>,
150149

151-
/// The origin of the transformation.
150+
/// 変換の原点。
152151
///
153152
/// ```example
154153
/// A#box(scale(75%)[A])A \
@@ -158,19 +157,18 @@ pub struct ScaleElem {
158157
#[default(HAlignment::Center + VAlignment::Horizon)]
159158
pub origin: Alignment,
160159

161-
/// Whether the scaling impacts the layout.
160+
/// 拡大縮小がレイアウトに影響を与えるかどうか。
162161
///
163-
/// If set to `{false}`, the scaled content will be allowed to overlap
164-
/// other content. If set to `{true}`, it will compute the new size of
165-
/// the scaled content and adjust the layout accordingly.
162+
/// `{false}`の場合、拡大縮小したコンテンツが他のコンテンツと重なることを許可します。
163+
/// `{true}`の場合、拡大縮小したコンテンツの新しい大きさを計算し、それに応じてレイアウトを調整します。
166164
///
167165
/// ```example
168166
/// Hello #scale(x: 20%, y: 40%, reflow: true)[World]!
169167
/// ```
170168
#[default(false)]
171169
pub reflow: bool,
172170

173-
/// The content to scale.
171+
/// 拡大縮小するコンテンツ。
174172
#[required]
175173
pub body: Content,
176174
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"/docs/reference/layout/relative/": "translated",
125125
"/docs/reference/layout/repeat/": "translated",
126126
"/docs/reference/layout/rotate/": "translated",
127-
"/docs/reference/layout/scale/": "untranslated",
127+
"/docs/reference/layout/scale/": "translated",
128128
"/docs/reference/layout/skew/": "untranslated",
129129
"/docs/reference/layout/h/": "translated",
130130
"/docs/reference/layout/v/": "translated",

0 commit comments

Comments
 (0)