mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-23 04:32:58 +05:30
backwards compat with gtranslate
This commit is contained in:
parent
8cfae44371
commit
0149b74882
@ -45,6 +45,12 @@ func HandleIndex(c *fiber.Ctx) error {
|
||||
originalText := utils.GetQueryOrFormValue(c, "text")
|
||||
to := utils.GetQueryOrFormValue(c, "to")
|
||||
from := utils.GetQueryOrFormValue(c, "from")
|
||||
if from == "" {
|
||||
from = utils.GetQueryOrFormValue(c, "sl")
|
||||
}
|
||||
if to == "" {
|
||||
to = utils.GetQueryOrFormValue(c, "tl")
|
||||
}
|
||||
|
||||
var translation libmozhi.LangOut
|
||||
var translationExists bool
|
||||
|
Loading…
Reference in New Issue
Block a user