From c0605e4a6070c4e016bf3daa7fc70a5814cc966f Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 2 Feb 2024 11:10:54 +0100 Subject: [PATCH] Respect element lang attribute if present Should parts of the document specify language, use it for grammar checking. --- online-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/online-editor.js b/online-editor.js index 50d688a..8acecb0 100644 --- a/online-editor.js +++ b/online-editor.js @@ -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, {