backwards compat with gtranslate
This commit is contained in:
parent
8cfae44371
commit
0149b74882
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue