Skip to content

Heading references uses incorrect language and region #8756

Open

Description

@kendrew-gut

Description

  1. Set lang of document to "zh", region to "HK"
  2. Set heading numbering
  3. Attach a tag to the heading
  4. Reference the tag
  5. The reference shows up as simplified Chinese, even though "zh-HK" uses traditional Chinese
#set text(lang: "zh", region: "HK")
#set heading(numbering: "1. ")
= 序言 <prelude>
@prelude
Image

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Aug 18, 2026
  2. kendrew-gut commented on Aug 18, 2026

    @kendrew-gut
    Author

    The expected traditional Chinese reference text is "小節1", or indeed "第1節" as is the convention in zh-HK.

  3. kendrew-gut commented on Aug 18, 2026

    @kendrew-gut
    Author

    For now, I am using

    第#ref(<prelude>, supplement: none)節

    as workaround

  4. added
    i18n
    on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugi18n

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions