diff options
| author | Shunsuke KIMURA <kimushun1101@gmail.com> | 2025-05-28 22:29:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-28 13:29:45 +0000 |
| commit | 9bbfa5ae0593333b1f0afffd71fec198d61742a6 (patch) | |
| tree | cf1d538ad281f7ebc4c3a7e02cd6f93a112da5b9 /crates/typst-library/src | |
| parent | 6e0f48e192ddbd934d3aadd056810c86bcc3defd (diff) | |
Clarify localization of reference labels based on lang setting (#6249)
Signed-off-by: Shunsuke Kimura <kimushun1101@gmail.com>
Diffstat (limited to 'crates/typst-library/src')
| -rw-r--r-- | crates/typst-library/src/model/reference.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/typst-library/src/model/reference.rs b/crates/typst-library/src/model/reference.rs index 31661768..7d44cccc 100644 --- a/crates/typst-library/src/model/reference.rs +++ b/crates/typst-library/src/model/reference.rs @@ -21,9 +21,10 @@ use crate::text::TextElem; /// /// The default, a `{"normal"}` reference, produces a textual reference to a /// label. For example, a reference to a heading will yield an appropriate -/// string such as "Section 1" for a reference to the first heading. The -/// references are also links to the respective element. Reference syntax can -/// also be used to [cite] from a bibliography. +/// string such as "Section 1" for a reference to the first heading. The word +/// "Section" depends on the [`lang`]($text.lang) setting and is localized +/// accordingly. The references are also links to the respective element. +/// Reference syntax can also be used to [cite] from a bibliography. /// /// As the default form requires a supplement and numbering, the label must be /// attached to a _referenceable element_. Referenceable elements include |
