Skip to content

Allow passing region to LocalName - #926

Merged
laurmaedje merged 16 commits into
typst:mainfrom
pan93412:localname-improve
Apr 26, 2023
Merged

laurmaedje merged 16 commits into
typst:mainfrom
pan93412:localname-improve

Conversation

@pan93412

Copy link
Copy Markdown
Contributor

Implement #911 (comment):

I prefer to leverage our already-have region property, so we won't touch our Lang enumeration. How do you think?

We may need to refactor LocalName trait to allow passing region into this method.

#set text(lang: "zh", region: "TW")

Comment thread src/doc.rs Resolved
Comment thread src/doc.rs Resolved
Comment thread tests/typ/text/lang-with-region.typ Resolved
Comment thread library/src/meta/outline.rs Resolved
@reknih
reknih force-pushed the main branch 4 times, most recently from 102fa05 to b79121d Compare April 23, 2023 17:35
@pan93412
pan93412 force-pushed the localname-improve branch from 192d60b to d0ef412 Compare April 26, 2023 01:11
@pan93412
pan93412 requested a review from laurmaedje April 26, 2023 01:11
@pan93412
pan93412 force-pushed the localname-improve branch from d0ef412 to 4e2b2d3 Compare April 26, 2023 01:14
@laurmaedje
laurmaedje merged commit a6df909 into typst:main Apr 26, 2023
@pan93412
pan93412 deleted the localname-improve branch April 27, 2023 01:07
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants