From 733b1c16bf445a5403b1965e24e60c4ae4d8826c Mon Sep 17 00:00:00 2001 From: Obsidian <108832807+Obsidianninja11@users.noreply.github.com> Date: Sat, 7 Dec 2024 23:18:23 -0900 Subject: [PATCH] Fix sl and tl being swapped in shtranslateadvanced --- .../hannibal2/skyhanni/features/chat/translation/Translator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/translation/Translator.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/translation/Translator.kt index deffc0ad1596..ae2962da9727 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/translation/Translator.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/translation/Translator.kt @@ -186,7 +186,7 @@ object Translator { val targetLanguage = args[1] val message = args.drop(2).joinToString(" ") - val translation = getTranslation(message, sourceLanguage, targetLanguage) + val translation = getTranslation(message, targetLanguage, sourceLanguage) val translatedMessage = translation?.get(0) ?: "Error!" val detectedLanguage = if (sourceLanguage == "auto") " ${translation?.get(1) ?: "Error!"}" else ""