diff --git a/crates/typst-library/src/math/matrix.rs b/crates/typst-library/src/math/matrix.rs index b6c4654ed7..69a706233f 100644 --- a/crates/typst-library/src/math/matrix.rs +++ b/crates/typst-library/src/math/matrix.rs @@ -216,11 +216,11 @@ pub struct MatElem { pub rows: Vec>, } -/// A case distinction. +/// 場合分け。 /// -/// Content across different branches can be aligned with the `&` symbol. +/// `&`記号を用いると異なる分岐に属するコンテンツを整列できます。 /// -/// # Example +/// # 例 /// ```example /// $ f(x, y) := cases( /// 1 "if" (x dot y)/2 <= 0, @@ -231,11 +231,10 @@ pub struct MatElem { /// ``` #[elem(Mathy)] pub struct CasesElem { - /// The delimiter to use. + /// 使用する区切り文字。 /// - /// Can be a single character specifying the left delimiter, in which case - /// the right delimiter is inferred. Otherwise, can be an array containing a - /// left and a right delimiter. + /// 単一の文字で左区切り文字を指定する場合、右区切り文字は自動的に推論されます。 + /// それ以外の場合は、左区切り文字と右区切り文字を含む配列を指定します。 /// /// ```example /// #set math.cases(delim: "[") @@ -244,7 +243,7 @@ pub struct CasesElem { #[default(DelimiterPair::BRACE)] pub delim: DelimiterPair, - /// Whether the direction of cases should be reversed. + /// 場合分けの向きを反転させるかどうか。 /// /// ```example /// #set math.cases(reverse: true) @@ -253,7 +252,7 @@ pub struct CasesElem { #[default(false)] pub reverse: bool, - /// The gap between branches. + /// 分岐間の間隔。 /// /// ```example /// #set math.cases(gap: 1em) @@ -263,7 +262,7 @@ pub struct CasesElem { #[default(DEFAULT_ROW_GAP.into())] pub gap: Rel, - /// The branches of the case distinction. + /// 場合分けの各分岐を表す子要素。 #[variadic] pub children: Vec, } diff --git a/website/translation-status.json b/website/translation-status.json index 81e95d57ce..36838c3eb5 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -82,7 +82,7 @@ "/docs/reference/math/attach/": "untranslated", "/docs/reference/math/binom/": "untranslated", "/docs/reference/math/cancel/": "untranslated", - "/docs/reference/math/cases/": "untranslated", + "/docs/reference/math/cases/": "translated", "/docs/reference/math/class/": "untranslated", "/docs/reference/math/equation/": "translated", "/docs/reference/math/frac/": "translated",