Skip to content

Commit b3d8e94

Browse files
authored
layout/alignの翻訳を追加 (#165)
1 parent e3e351b commit b3d8e94

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

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

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ use crate::foundations::{
1111
use crate::layout::{Abs, Axes, Axis, Dir, Side};
1212
use crate::text::TextElem;
1313

14-
/// Aligns content horizontally and vertically.
14+
/// コンテンツを水平方向・垂直方向に配置。
1515
///
16-
/// # Example
17-
/// Let's start with centering our content horizontally:
16+
/// #
17+
/// コンテンツを水平方向に中央揃えにすることから始めましょう。
1818
/// ```example
1919
/// #set page(height: 120pt)
2020
/// #set align(center)
@@ -25,7 +25,7 @@ use crate::text::TextElem;
2525
/// A work of art, a visual throne
2626
/// ```
2727
///
28-
/// To center something vertically, use _horizon_ alignment:
28+
/// 垂直方向に中央揃えにするには _horizon_ 配置を使用します。
2929
/// ```example
3030
/// #set page(height: 120pt)
3131
/// #set align(horizon)
@@ -35,10 +35,9 @@ use crate::text::TextElem;
3535
/// a new paragraph.
3636
/// ```
3737
///
38-
/// # Combining alignments
39-
/// You can combine two alignments with the `+` operator. Let's also only apply
40-
/// this to one piece of content by using the function form instead of a set
41-
/// rule:
38+
/// # 配置の組み合わせ
39+
/// `+`演算子を用いて2種類の配置を組み合わせることができます。
40+
/// setルールの代わりに関数形式を用いて1つのコンテンツのみに適用してみましょう。
4241
/// ```example
4342
/// #set page(height: 120pt)
4443
/// Though left in the beginning ...
@@ -50,9 +49,9 @@ use crate::text::TextElem;
5049
/// ]
5150
/// ```
5251
///
53-
/// # Nested alignment
54-
/// You can use varying alignments for layout containers and the elements within
55-
/// them. This way, you can create intricate layouts:
52+
/// # 配置のネスト
53+
/// レイアウトコンテナおよびその内部要素に様々な配置設定を適用できます。
54+
/// このようにすることで複雑なレイアウトを作成できます。
5655
///
5756
/// ```example
5857
/// #align(center, block[
@@ -65,17 +64,16 @@ use crate::text::TextElem;
6564
/// ])
6665
/// ```
6766
///
68-
/// # Alignment within the same line
69-
/// The `align` function performs block-level alignment and thus always
70-
/// interrupts the current paragraph. To have different alignment for parts
71-
/// of the same line, you should use [fractional spacing]($h) instead:
67+
/// # 同一行での配置設定
68+
/// `align` 関数はブロックレベルで配置を実行するため、常に現在のパラグラフを中断します。
69+
/// 同じ行の一部を異なる配置にするためには、代わりに[比率間隔]($h)を使用しなければなりません。
7270
///
7371
/// ```example
7472
/// Start #h(1fr) End
7573
/// ```
7674
#[elem(Show)]
7775
pub struct AlignElem {
78-
/// The [alignment] along both axes.
76+
/// 両方の軸に沿った[alignment]
7977
///
8078
/// ```example
8179
/// #set page(height: 6cm)
@@ -92,7 +90,7 @@ pub struct AlignElem {
9290
#[default]
9391
pub alignment: Alignment,
9492

95-
/// The content to align.
93+
/// 配置するコンテンツ。
9694
#[required]
9795
pub body: Content,
9896
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"/docs/reference/symbols/sym/": "untranslated",
102102
"/docs/reference/symbols/emoji/": "untranslated",
103103
"/docs/reference/layout/": "untranslated",
104-
"/docs/reference/layout/align/": "untranslated",
104+
"/docs/reference/layout/align/": "translated",
105105
"/docs/reference/layout/alignment/": "untranslated",
106106
"/docs/reference/layout/angle/": "untranslated",
107107
"/docs/reference/layout/block/": "untranslated",

0 commit comments

Comments
 (0)