Respect element lang attribute if present

Should parts of the document specify language, use it for grammar
checking.
This commit is contained in:
Simon Rozman 2024-02-02 11:10:54 +01:00
parent 5aaf30934a
commit c0605e4a60

View File

@ -45,7 +45,7 @@ async function besProof(el) {
x.markup ? { markup: x.text } : { text: x.text }
)
}),
language: 'sl',
language: el.lang ? el.lang : 'sl',
level: 'picky'
}
const request = new Request(besUrl, {