Skip to content

Commit

Permalink
Added Mozhi #840
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Oct 24, 2023
1 parent a194f5c commit 8c3c716
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 0 deletions.
154 changes: 154 additions & 0 deletions src/assets/images/mozhi-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ function redirect(url, type, initiator, forceRedirection) {
case "simplyTranslate": {
return `${randomInstance}/${url.search}`
}
case "mozhi": {
return `${randomInstance}`
}
case "libreTranslate": {
let search = url.search
.replace("sl", "source")
Expand Down Expand Up @@ -659,6 +662,7 @@ const defaultInstances = {
'quetre': ['https://quetre.iket.me'],
'libremdb': ['https://libremdb.iket.me'],
'simplyTranslate': ['https://simplytranslate.org'],
'mozhi': ['https://mozhi.aryak.me'],
'searxng': ['https://search.bus-hit.me'],
'4get': ['https://4get.ca'],
'rimgo': ['https://rimgo.vern.cc'],
Expand Down
6 changes: 6 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,12 @@
"url": "https://git.sr.ht/~metalune/simplytranslate_web",
"localhost": true
},
"mozhi": {
"name": "Mozhi",
"instanceList": true,
"url": "https://codeberg.org/aryak/mozhi",
"localhost": false
},
"libreTranslate": {
"name": "LibreTranslate",
"instanceList": true,
Expand Down

0 comments on commit 8c3c716

Please sign in to comment.