Fix translator for indonesian

This commit is contained in:
世界 2021-01-02 10:40:08 +08:00
parent 32444f2f2f
commit ec0ed609ab
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 4 additions and 2 deletions

View File

@ -82,10 +82,12 @@ interface Translator {
}
if (toLang == "in") toLang = "id"
val translator = when (NekoConfig.translationProvider) {
in 1..2 -> GoogleAppTranslator
3 -> LingoTranslator
4 -> YandexTranslator
3 -> YandexTranslator
4 -> LingoTranslator
else -> throw IllegalArgumentException()
}