Skip to content

Commit

Permalink
Fix: Arguments being swapped in shtranslateadvanced (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Obsidianninja11 authored Dec 8, 2024
1 parent 3111d93 commit 0a3991e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down

0 comments on commit 0a3991e

Please sign in to comment.