Hi,
I want to change the language of figure captions from my default (“de”) to “en”.
I added the line
#set text(lang: “en”)
to my document but the caption remains german. Is there a way to fix this?
Thanks
Hi,
I want to change the language of figure captions from my default (“de”) to “en”.
I added the line
#set text(lang: “en”)
to my document but the caption remains german. Is there a way to fix this?
Thanks
We would need more info as the #set text(lang: "en")
is enough to change the figure caption translation if by figure caption you mean the word “Figure” or “Abbildung” and not the actual caption text.
Did you apply the set-rule globally or scope it by accident?
I added the line at the top of my document so it’s definitely not scoped. Yes I want “Figure” instead of “Abbildung”, but somehow the caption text (the supplement) remains the german “Abbildung”
Then, we would need to see a bit more of your document as the default language of a Typst document would be English. Meaning you have a #set text(lang: "de")
somewhere that the new set-rule isn’t overriding for some reason.
Are you using a template maybe?
Hey @gradient, welcome to the forum! I’ve changed your question post’s title to better fit our guidelines: How to post in the Questions category
For future posts, please make sure your title is a question you’d ask to a friend about Typst.
(In addition, I’ve removed the tables tag since it doesn’t seem to be related to this post.)