whoogle-search/app
Ben Busby bcb1d8ecc9
Add lingva translation support in search (#360)
* Add support for Lingva translations in results

Searches that contain the word "translate" and are normal search queries
(i.e. not news/images/video/etc) now create an iframe to a Lingva url to
translate the user's search using their configured search language.

The Lingva url can be configured using the WHOOGLE_ALT_TL env var, or
will fall back to the official Lingva instance url (lingva.ml).

For more info, visit https://github.com/TheDavidDelta/lingva-translate

* Add basic test for lingva results

* Allow user specified lingva instances through csp frame-src

* Fix pep8 issue
2021-06-15 10:14:42 -04:00
..
models Support basic localization (#325) 2021-05-24 17:03:02 -04:00
static Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00
templates Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00
utils Hotfix: remove site filter for maps links 2021-05-27 12:01:57 -04:00
__init__.py Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Add fallback interface/search lang + cleanup 2021-06-04 11:09:30 -04:00
request.py Revert changes to default language config 2021-06-06 13:39:06 -04:00
routes.py Add lingva translation support in search (#360) 2021-06-15 10:14:42 -04:00