We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9145bb4 commit 0c7e2dfCopy full SHA for 0c7e2df
1 file changed
tools/searxng.html
@@ -51,9 +51,9 @@
51
};
52
53
const detectLang = query => {
54
- const detection = detectAll(query, { only: ['en', 'ru'] });
55
- console.log('langs', detection)
56
- const good = detection.filter(item => item.accuracy > 0.01);
+ const all = detectAll(query, { only: ['en', 'ru'] });
+ console.log('detected languages', all)
+ const good = all.filter(i => i.accuracy > 0.01);
57
let lang = 'en';
58
if (good.length > 0) {
59
good.sort((a, b) => b.accuracy - a.accuracy);
0 commit comments