[mod] replace /translations.js by embedded JSON

In webapp.py, there is a new function "get_translations" lists available translations

Close #2064
This commit is contained in:
Alexandre Flament 2021-03-16 11:07:04 +01:00
parent cb3b379161
commit 6553c79029
17 changed files with 30 additions and 27 deletions

View file

@ -73,7 +73,7 @@
if (searx.autocompleter) {
searx.autocomplete = AutoComplete.call(w, {
Url: "./autocompleter",
EmptyMessage: searx.no_item_found,
EmptyMessage: searx.translations.no_item_found,
HttpMethod: searx.method,
HttpHeaders: {
"Content-type": "application/x-www-form-urlencoded",