Skip to content

Commit 02817f9

Browse files
authored
/docs/reference/math/rootsの翻訳 (typst-jp#175)
1 parent 4296913 commit 02817f9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

crates/typst-library/src/math/root.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@ use typst_syntax::Span;
33
use crate::foundations::{elem, func, Content, NativeElement};
44
use crate::math::Mathy;
55

6-
/// A square root.
6+
/// 平方根。
77
///
88
/// ```example
99
/// $ sqrt(3 - 2 sqrt(2)) = sqrt(2) - 1 $
1010
/// ```
1111
#[func(title = "Square Root")]
1212
pub fn sqrt(
1313
span: Span,
14-
/// The expression to take the square root of.
14+
/// 平方根を取る対象の式。
1515
radicand: Content,
1616
) -> Content {
1717
RootElem::new(radicand).pack().spanned(span)
1818
}
1919

20-
/// A general root.
20+
/// 累乗根。
2121
///
2222
/// ```example
2323
/// $ root(3, x) $
2424
/// ```
2525
#[elem(Mathy)]
2626
pub struct RootElem {
27-
/// Which root of the radicand to take.
27+
/// 被開方数の何乗根を取るか。
2828
#[positional]
2929
pub index: Option<Content>,
3030

31-
/// The expression to take the root of.
31+
/// 根を取る対象の式。
3232
#[required]
3333
pub radicand: Content,
3434
}

docs/reference/groups.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
path: ["math"]
6464
filter: ["root", "sqrt"]
6565
details: |
66-
Square and non-square roots.
66+
平方根とその他の累乗根。
6767
68-
# Example
68+
#
6969
```example
7070
$ sqrt(3 - 2 sqrt(2)) = sqrt(2) - 1 $
7171
$ root(3, x) $

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"/docs/reference/math/lr": "untranslated",
9090
"/docs/reference/math/mat/": "untranslated",
9191
"/docs/reference/math/primes/": "untranslated",
92-
"/docs/reference/math/roots": "untranslated",
92+
"/docs/reference/math/roots": "translated",
9393
"/docs/reference/math/sizes": "untranslated",
9494
"/docs/reference/math/stretch/": "untranslated",
9595
"/docs/reference/math/styles": "untranslated",

0 commit comments

Comments
 (0)