Open feuermandel opened 1 week ago
Did you change the language in the typst document?
#set text(lang: "de", region: "DE")
The languages
parameter is just to map the lang: "de"
to de-DE
, because the region is not saved by typst.
Well, yes I did.
But not via #set text(lang: "de")
but with a TOML file:
Within the template, I use:
#let Variablen = toml("/Variablen.toml")
#set text(lang: str(Variablen.Generic.Sprache))
This seems to work with typst.
But I do not include the template file in each included document. And I do not do a explicit
#let Variablen = toml("/Variablen.toml")
#set text(lang: str(Variablen.Generic.Sprache))
Do I have to specify the lang-Parameter in each file?
To make it even worse: Sometimes (right now) the language "de-DE" is checked (not "en-GB"), but a few hours ago, the same document gets corrected with "en-GB"
If you specify a main file, only this file with dependencies is compiled and the language should work for included files.
I fixed a bug with the diagnostic cache for same text with different languages, but I don't think this is the problem.
Hey Anton,
I did just compile the latest version on typstlanguagetool with the remote-server feature.
Settings in settions.json (VSCodium) are:
` "generic-lsp.configuration": [
`
Serverlogs on local languagetool-server are:
Diagnostics are "Possioble spelling mistake found. )MORFOLOGIK_RULE_EN_GB)"
What do I do wrong to let typstlangaugetool check my test in en_GB instead of german?