Respect element lang attribute if present
Should parts of the document specify language, use it for grammar checking.
This commit is contained in:
parent
5aaf30934a
commit
c0605e4a60
@ -45,7 +45,7 @@ async function besProof(el) {
|
|||||||
x.markup ? { markup: x.text } : { text: x.text }
|
x.markup ? { markup: x.text } : { text: x.text }
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
language: 'sl',
|
language: el.lang ? el.lang : 'sl',
|
||||||
level: 'picky'
|
level: 'picky'
|
||||||
}
|
}
|
||||||
const request = new Request(besUrl, {
|
const request = new Request(besUrl, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user