mirror of
https://github.com/searxng/searxng.git
synced 2026-01-14 10:35:28 +00: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:
@@ -32,7 +32,7 @@
|
||||
search_on_category_select: script.getAttribute('data-search-on-category-select') === 'true',
|
||||
infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true',
|
||||
static_path: script.getAttribute('data-static-path'),
|
||||
no_item_found: script.getAttribute('data-no-item-found')
|
||||
translations: JSON.parse(script.getAttribute('data-translations')),
|
||||
}
|
||||
|
||||
// update the css
|
||||
|
||||
Reference in New Issue
Block a user