mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 04:05:57 +03:00
[PR #360] [MERGED] Add lingva translation support in search #857
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/benbusby/whoogle-search/pull/360
Author: @benbusby
Created: 6/14/2021
Status: ✅ Merged
Merged: 6/15/2021
Merged by: @benbusby
Base:
main← Head:feature/lingva-support📝 Commits (4)
41e6109Add support for Lingva translations in results955fce8Add basic test for lingva resultsae4fbecAllow user specified lingva instances through csp frame-src7ae7a48Fix pep8 issue📊 Changes
11 files changed (+109 additions, -42 deletions)
View changed files
📝
Dockerfile(+2 -0)📝
README.md(+2 -0)📝
app.json(+5 -0)📝
app/__init__.py(+10 -0)📝
app/routes.py(+17 -3)📝
app/static/css/search.css(+6 -0)📝
app/static/settings/translations.json(+43 -35)📝
app/templates/display.html(+6 -0)📝
docker-compose.yml(+1 -0)📝
test/test_results.py(+16 -4)📝
whoogle.env(+1 -0)📄 Description
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_TLenv var, orwill fall back to the official Lingva instance url (lingva.ml).
For more info, visit https://github.com/TheDavidDelta/lingva-translate
Closes #258
Closes #348
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.