mirror of
https://github.com/searxng/searxng.git
synced 2026-06-02 07:57:16 +02:00
[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:
@@ -25,6 +25,7 @@ window.searx = (function(d) {
|
||||
|
||||
return {
|
||||
autocompleter: script.getAttribute('data-autocompleter') === 'true',
|
||||
method: script.getAttribute('data-method')
|
||||
method: script.getAttribute('data-method'),
|
||||
translations: JSON.parse(script.getAttribute('data-translations'))
|
||||
};
|
||||
})(document);
|
||||
|
||||
Reference in New Issue
Block a user