set eng as default language

This commit is contained in:
Carlosokumu 2024-11-20 17:14:25 +03:00
parent 451b15fb6b
commit 7880294c6f
Signed by untrusted user: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -154,7 +154,8 @@ func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (r
code := strings.Split(symbol, "_")[1]
if !utils.IsValidISO639(code) {
return res, nil
//Fallback to english instead?
code = "eng"
}
res.FlagSet = append(res.FlagSet, state.FLAG_LANG)
res.Content = code