diff --git a/crates/typst-library/src/text/lorem.rs b/crates/typst-library/src/text/lorem.rs index 5d01a550df..e019f41052 100644 --- a/crates/typst-library/src/text/lorem.rs +++ b/crates/typst-library/src/text/lorem.rs @@ -1,13 +1,13 @@ use crate::foundations::{func, Str}; -/// Creates blind text. +/// ダミーテキストの作成。 /// -/// This function yields a Latin-like _Lorem Ipsum_ blind text with the given -/// number of words. The sequence of words generated by the function is always -/// the same but randomly chosen. As usual for blind texts, it does not make any -/// sense. Use it as a placeholder to try layouts. +/// この関数は与えられた単語数だけラテン語風のダミーテキストである _Lorem Ipsum_ を生成します。 +/// この関数で生成される単語の並びはランダムに選ばれますが、生成のたびに同じものになります。 +/// 通常のダミーテキストと同様に、意味のないテキストです。 +/// レイアウトを試すプレースホルダーとして使用してください。 /// -/// # Example +/// # 例 /// ```example /// = Blind Text /// #lorem(30) @@ -17,7 +17,7 @@ use crate::foundations::{func, Str}; /// ``` #[func(keywords = ["Blind Text"])] pub fn lorem( - /// The length of the blind text in words. + /// ダミーテキストの単語数。 words: usize, ) -> Str { lipsum::lipsum(words).replace("--", "–").into() diff --git a/website/translation-status.json b/website/translation-status.json index 63cd9215d7..294276c4b5 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -65,7 +65,7 @@ "/docs/reference/text/": "untranslated", "/docs/reference/text/highlight/": "translated", "/docs/reference/text/linebreak/": "translated", - "/docs/reference/text/lorem/": "untranslated", + "/docs/reference/text/lorem/": "translated", "/docs/reference/text/lower/": "untranslated", "/docs/reference/text/overline/": "translated", "/docs/reference/text/raw/": "untranslated",